oneie 3.6.13 → 3.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/AUDIT-agent-ops-alignment.md +379 -0
- package/.claude/agents/NEWS-QUICKSTART.md +321 -0
- package/.claude/agents/NEWS-README.md +353 -0
- package/.claude/agents/agent-backend.md +1 -1
- package/.claude/agents/agent-builder.md +220 -151
- package/.claude/agents/agent-clean.md +39 -31
- package/.claude/agents/agent-clone.md +107 -54
- package/.claude/agents/agent-designer.md +76 -71
- package/.claude/agents/agent-director.md +164 -1
- package/.claude/agents/agent-documenter.md +169 -132
- package/.claude/agents/agent-frontend.md +442 -446
- package/.claude/agents/agent-integrator.md +30 -23
- package/.claude/agents/agent-lawyer.md +145 -98
- package/.claude/agents/agent-news.md +363 -0
- package/.claude/agents/agent-onboard.md +99 -69
- package/.claude/agents/agent-ontology.md +585 -0
- package/.claude/agents/agent-ops.md +178 -171
- package/.claude/agents/agent-problem-solver.md +132 -115
- package/.claude/agents/agent-quality.md +94 -77
- package/.claude/agents/agent-sales.md +89 -67
- package/.claude/commands/release.md +3 -1
- package/.claude/hooks/README-knowledge-hooks.md +266 -80
- package/.claude/hooks/README-root-cleanup.md +200 -0
- package/.claude/hooks/README.md +284 -0
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +169 -32
- package/.claude/hooks/clean-post.py +195 -28
- package/.claude/hooks/clean-pre.py +96 -11
- package/.claude/hooks/done.py +74 -13
- package/.claude/hooks/format-hook.sh +105 -17
- package/.claude/hooks/hook-logger.sh +121 -7
- package/.claude/hooks/knowledge-post.py +136 -32
- package/.claude/hooks/knowledge-pre.py +129 -34
- package/.claude/hooks/notification-hook.sh +184 -17
- package/.claude/hooks/root-cleanup.py +181 -39
- package/.claude/hooks/security-hook.sh +248 -8
- package/.claude/hooks/tag-all-docs.py +175 -49
- package/.claude/hooks/test-validate-ontology.sh +170 -0
- package/.claude/hooks/todo.py +92 -22
- package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
- package/.claude/hooks/validate-ontology-structure.py +83 -20
- package/AGENTS.md +60 -245
- package/CLAUDE.md +70 -1
- package/README.md +25 -0
- package/one/.claude/settings.local.json +11 -0
- package/one/.obsidian/community-plugins.json +3 -1
- package/one/.obsidian/plugins/editing-toolbar/data.json +328 -0
- package/one/.obsidian/plugins/editing-toolbar/main.js +12 -0
- package/one/.obsidian/plugins/editing-toolbar/manifest.json +10 -0
- package/one/.obsidian/plugins/editing-toolbar/styles.css +1338 -0
- package/one/.obsidian/plugins/terminal/data.json +154 -0
- package/one/.obsidian/plugins/terminal/main.js +197 -0
- package/one/.obsidian/plugins/terminal/manifest.json +14 -0
- package/one/.obsidian/plugins/terminal/styles.css +32 -0
- package/one/.obsidian/workspace.json +71 -45
- package/one/README.md +18 -0
- package/one/connections/a2a.md +49 -0
- package/one/connections/acp.md +47 -0
- package/one/connections/acps.md +18 -0
- package/one/connections/agentkit.md +18 -0
- package/one/connections/agui.md +18 -0
- package/one/connections/any-backend.md +39 -21
- package/one/connections/ap2.md +74 -0
- package/one/connections/api/queries-reference.md +18 -0
- package/one/connections/api-docs.md +18 -0
- package/one/connections/api-reference.md +18 -0
- package/one/connections/api.md +18 -0
- package/one/connections/architecture-diagram.md +18 -0
- package/one/connections/communications.md +18 -0
- package/one/connections/connections.md +18 -0
- package/one/connections/copilotkit.md +18 -0
- package/one/connections/cryptonetworks.md +18 -0
- package/one/connections/documentation.md +18 -0
- package/one/connections/effect.md +18 -0
- package/one/connections/elizaos.md +18 -0
- package/one/connections/groups.md +814 -0
- package/one/connections/inference.md +18 -0
- package/one/connections/integration-examples.md +18 -0
- package/one/connections/integration-guide.md +18 -0
- package/one/connections/integration-phase2.md +32 -14
- package/one/connections/kyc.md +18 -0
- package/one/connections/mcp.md +18 -0
- package/one/connections/membership.md +18 -0
- package/one/connections/middleware.md +18 -0
- package/one/connections/multitenant.md +18 -0
- package/one/connections/n8n.md +18 -0
- package/one/connections/patterns.md +18 -0
- package/one/connections/protocols.md +20 -2
- package/one/connections/relationships.md +18 -0
- package/one/connections/schema.md +18 -0
- package/one/connections/service-layer.md +18 -0
- package/one/connections/vectors.md +18 -0
- package/one/connections/wordpress.md +18 -0
- package/one/connections/workflow-copy.md +18 -0
- package/one/connections/workflow-examples.md +18 -0
- package/one/connections/workflow-onboarding.md +18 -0
- package/one/connections/workflow.md +18 -0
- package/one/connections/workflows/delegation.md +18 -0
- package/one/connections/workflows/frontend.md +18 -0
- package/one/connections/workflows/strategy.md +18 -0
- package/one/connections/workflows/tasks.md +18 -0
- package/one/connections/x402-baazar.md +131 -0
- package/one/connections/x402.md +268 -164
- package/one/events/2024-10-14-deployment-plan.md +15 -16
- package/one/events/2024-10-14-deployment-success.md +15 -16
- package/one/events/2024-10-14-final-sync-complete.md +15 -16
- package/one/events/2024-10-14-release-v2.0.6.md +15 -16
- package/one/events/2024-10-15-agent-clean-v2-summary.md +15 -16
- package/one/events/2024-10-15-handoff-to-clean.md +15 -16
- package/one/events/2024-10-15-package-manager-tests.md +15 -16
- package/one/events/2024-10-15-release-command-complete.md +15 -16
- package/one/events/2025-10-15-private-files-secured.md +18 -0
- package/one/events/2025-10-15-unignore-public-group-docs.md +18 -0
- package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +335 -0
- package/one/events/ALIGNMENT_SUMMARY.md +280 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +18 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +18 -0
- package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +598 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +18 -0
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +18 -0
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +18 -0
- package/one/events/CLAUDE copy.md +897 -0
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +18 -0
- package/one/events/CONNECTIONS_DEMO.md +18 -0
- package/one/events/CREATE-WEBSITE.md +18 -0
- package/one/events/CRITICAL-FIXES-COMPLETE.md +18 -0
- package/one/events/CUSTOM-DOMAIN.md +18 -0
- package/one/events/DELIVERABLES.md +18 -0
- package/one/events/DEMO-GROUPS-PAGE.md +18 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +18 -0
- package/one/events/DEMO_COMPONENTS.md +18 -0
- package/one/events/DEMO_HOOKS_INDEX.md +18 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +18 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +18 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +18 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +18 -0
- package/one/events/DEMO_SETUP.md +18 -0
- package/one/events/DEPLOYMENT copy.md +18 -0
- package/one/events/DEPLOYMENT.md +18 -0
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +16 -0
- package/one/events/ECOMMERCE-DEMO-PLAN.md +18 -0
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +18 -0
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +18 -0
- package/one/events/ECOMMERCE-LIVE-DEMO.md +18 -0
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +18 -0
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +18 -0
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +18 -0
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +18 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +18 -0
- package/one/events/FEATURE-2-4-COMPLETE.md +18 -0
- package/one/events/FEATURE_2_3_COMPLETE.md +18 -0
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +18 -0
- package/one/events/GROUPS-MIGRATION.md +18 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +18 -0
- package/one/events/HANDOFF.md +18 -0
- package/one/events/HOOKS-DEMO.md +18 -0
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +18 -0
- package/one/events/IMPLEMENTATION_SUMMARY.md +18 -0
- package/one/events/INSTALL-TESTS.md +18 -0
- package/one/events/INSTALLATION_FOLDERS.md +18 -0
- package/one/events/INSTALLATION_FOLDERS_FILES.md +18 -0
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +18 -0
- package/one/events/INTEGRATION-ARCHITECTURE.md +18 -0
- package/one/events/INTEGRATION-CHECKLIST.md +18 -0
- package/one/events/INTEGRATION-ORCHESTRATION.md +18 -0
- package/one/events/INTEGRATION-SUMMARY.md +18 -0
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +18 -0
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +18 -0
- package/one/events/LANDING-PAGE-QUICKSTART.md +18 -0
- package/one/events/LICENSE.md +18 -0
- package/one/events/MCP-CONFIGURATION.md +18 -0
- package/one/events/MCP-SETUP-COMPLETE.md +18 -0
- package/one/events/MIGRATION-REPORT.md +18 -0
- package/one/events/MIGRATION.md +18 -0
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +18 -0
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +18 -0
- package/one/events/NODE-UPGRADE.md +18 -0
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +18 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +18 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +18 -0
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +18 -0
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +18 -0
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +18 -0
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +18 -0
- package/one/events/PACKAGE-STRUCTURE.md +18 -0
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +18 -0
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +18 -0
- package/one/events/QA-CHECKLIST.md +18 -0
- package/one/events/QUICK-START-ONTOLOGY.md +18 -0
- package/one/events/README-archived.md +18 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +18 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +18 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +18 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +18 -0
- package/one/events/SECURITY-AUDIT-FIXES.md +18 -0
- package/one/events/SECURITY-SCAN-COMPLETE.md +18 -0
- package/one/events/SHOP-BUILD-STATUS.md +18 -0
- package/one/events/SHOP-PREMIUM-UPDATE.md +16 -0
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +18 -0
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +18 -0
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +18 -0
- package/one/events/STRIPE-INTEGRATION.md +18 -0
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +18 -0
- package/one/events/STRIPE-SETUP-GUIDE.md +18 -0
- package/one/events/TEST-PLAN-INDEX.md +18 -0
- package/one/events/TEST-PLAN.md +18 -0
- package/one/events/TEST-SUMMARY.md +18 -0
- package/one/events/TESTS-QUICK-REF.md +18 -0
- package/one/events/TRANSITIONS-QUICK-START.md +18 -0
- package/one/events/TRANSPARENCY-FIXES.md +18 -0
- package/one/events/TYPESCRIPT_FIXES.md +18 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +18 -0
- package/one/events/VIEW-TRANSITIONS.md +18 -0
- package/one/events/agent-director-enhancement-summary.md +18 -0
- package/one/events/agent-onboard-implementation-summary.md +18 -0
- package/one/events/agent-ontology-alignment-completion.md +263 -0
- package/one/events/backend-integration-tests.md +18 -0
- package/one/events/clean-agent-ontology-cleanup-report.md +18 -0
- package/one/events/clean-agent-todo-analysis-summary.md +336 -0
- package/one/events/cloudflare-automation-complete.md +18 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +18 -0
- package/one/events/contact-page-complete.md +18 -0
- package/one/events/convex-analysis-index.md +18 -0
- package/one/events/convex-structure-analysis.md +18 -0
- package/one/events/deployment-installation-folders.md +18 -0
- package/one/events/deployment-ops-summary.md +18 -0
- package/one/events/deployment-verification.md +18 -0
- package/one/events/design-spec-complete.md +18 -0
- package/one/events/documentation-audit-index.md +473 -0
- package/one/events/documentation-audit-summary.md +417 -0
- package/one/events/documentation-improvement-roadmap.md +906 -0
- package/one/events/documentation-standards-compliance-report.md +538 -0
- package/one/events/events.md +18 -0
- package/one/events/frontend-effects-complete.md +584 -0
- package/one/events/frontend-effects-orchestration.md +1356 -0
- package/one/events/frontend-effects-risk-register.md +1055 -0
- package/one/events/frontend-effects-week1-assignments.md +1594 -0
- package/one/events/hook-ontology-alignment-summary.md +528 -0
- package/one/events/installation-folders-workflow-integration.md +18 -0
- package/one/events/landing-page-generator.md +18 -0
- package/one/events/legal-assessment-2025-10-16.md +18 -0
- package/one/events/onboarding-implementation-complete.md +18 -0
- package/one/events/ontology-test-examples.md +18 -0
- package/one/events/phase1-backend-implementation-complete.md +18 -0
- package/one/events/release.md +18 -0
- package/one/events/root-cleanup-alignment-report.md +265 -0
- package/one/events/separate-implementation-status.md +18 -0
- package/one/events/session-summary-2025-10-18.md +18 -0
- package/one/events/skills-complete.md +18 -0
- package/one/events/skills-infer-6-10-summary.md +18 -0
- package/one/events/skills-phase1-complete.md +18 -0
- package/one/events/structural-analysis-architecture-vs-plans.md +559 -0
- package/one/events/test-dashboard.md +18 -0
- package/one/events/test-index.md +18 -0
- package/one/events/test-report-ontology.md +18 -0
- package/one/events/testing-summary.md +18 -0
- package/one/events/todo-refactoring-complete.md +408 -0
- package/one/events/wave1-backend-implementation-complete.md +698 -0
- package/one/groups/features.md +26 -0
- package/one/groups/groups.md +83 -39
- package/one/groups/one.md +47 -27
- package/one/groups/{strategy copy.md → strategy-copy.md} +23 -5
- package/one/knowledge/.obsidian/ecommerce-ontology.md +18 -0
- package/one/knowledge/100-inference-quick-reference.md +18 -0
- package/one/knowledge/agent-onboard-usage.md +18 -0
- package/one/knowledge/agentic-commerce.md +146 -0
- package/one/knowledge/ai-agents-vs-memecoins-thesis.md +683 -0
- package/one/knowledge/ai-platform.md +18 -0
- package/one/knowledge/ai-token-crypto-analysis-framework.md +1191 -0
- package/one/knowledge/ai-token-paradigm-shift-2025.md +732 -0
- package/one/knowledge/altcoin-cycle-prediction-ontology.md +884 -0
- package/one/knowledge/altcoin-cycle-trading-strategy.md +642 -0
- package/one/knowledge/architecture-any-backend.md +265 -42
- package/one/knowledge/architecture-diagram.md +404 -94
- package/one/knowledge/architecture-frontend.md +130 -51
- package/one/knowledge/architecture.md +1496 -1831
- package/one/knowledge/{ontology.md.backup → archived/ontology.old.md} +18 -0
- package/one/knowledge/astro-effect-complete-vision.md +2148 -0
- package/one/knowledge/astro-effect-simple-architecture.md +717 -0
- package/one/knowledge/audit-agent-onboard-alignment.md +481 -0
- package/one/knowledge/audit-agent-sales-alignment.md +444 -0
- package/one/knowledge/backend-api-reference.md +18 -0
- package/one/knowledge/cli-claude-handoff.md +18 -0
- package/one/knowledge/context-engineering.md +610 -0
- package/one/knowledge/crypto-analysis-strategy.md +1276 -0
- package/one/knowledge/crypto-cycle-2024-2025-analysis.md +44 -0
- package/one/knowledge/crypto.md +18 -0
- package/one/knowledge/docs.md +627 -0
- package/one/knowledge/dsl.md +18 -0
- package/one/knowledge/files.md +18 -0
- package/one/knowledge/frontend.md +18 -0
- package/one/knowledge/hono.md +18 -0
- package/one/knowledge/implementation-examples.md +18 -0
- package/one/knowledge/installation-folders.md +18 -0
- package/one/knowledge/institutional-cycle-paradigm-2025.md +555 -0
- package/one/knowledge/knowledge.md +18 -0
- package/one/knowledge/language.md +18 -0
- package/one/knowledge/lessons-learned.md +18 -0
- package/one/knowledge/lessons-website-building-focus.md +18 -0
- package/one/knowledge/merge-report.md +254 -0
- package/one/knowledge/nine-padel-playbook.md +18 -0
- package/one/knowledge/ontology-blog.yaml +42 -26
- package/one/knowledge/ontology-cheatsheet.md +18 -0
- package/one/knowledge/ontology-community.yaml +60 -37
- package/one/knowledge/ontology-core-universal.md +19 -1
- package/one/knowledge/ontology-core.yaml +58 -45
- package/one/knowledge/ontology-courses.yaml +71 -48
- package/one/knowledge/ontology-creator.md +30 -4
- package/one/knowledge/ontology-crypto.md +1603 -0
- package/one/knowledge/ontology-developer-guide.md +18 -0
- package/one/knowledge/ontology-documentation.md +46 -25
- package/one/knowledge/ontology-ecommerce.md +24 -6
- package/one/knowledge/ontology-education.md +18 -0
- package/one/knowledge/ontology-engineering-specification.md +22 -4
- package/one/knowledge/ontology-engineering.md +67 -43
- package/one/knowledge/ontology-files.yaml +525 -0
- package/one/knowledge/ontology-frontend-master.md +2898 -0
- package/one/knowledge/ontology-frontend-specifications.md +57 -49
- package/one/knowledge/ontology-frontend.md +40 -22
- package/one/knowledge/ontology-index.md +18 -0
- package/one/knowledge/ontology-minimal.yaml +18 -16
- package/one/knowledge/ontology-portfolio.yaml +40 -26
- package/one/knowledge/ontology-quickstart.md +18 -0
- package/one/knowledge/ontology-release.md +317 -0
- package/one/knowledge/ontology-shop.yaml +146 -119
- package/one/knowledge/ontology-tokens.yaml +46 -27
- package/one/knowledge/ontology-tutorial.md +18 -0
- package/one/knowledge/ontology-video-script.md +18 -0
- package/one/knowledge/ontology-visual-guide.md +20 -2
- package/one/knowledge/ontology.md +1329 -304
- package/one/knowledge/ontology.yaml +763 -275
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +48 -18
- package/one/knowledge/patterns/backend/convex-query-pattern.md +78 -23
- package/one/knowledge/patterns/backend/mutation-template.md +28 -10
- package/one/knowledge/patterns/backend/query-template.md +44 -25
- package/one/knowledge/patterns/backend/service-template.md +35 -14
- package/one/knowledge/patterns/design/component-architecture.md +45 -9
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +37 -3
- package/one/knowledge/patterns/design/wireframe-template.md +36 -2
- package/one/knowledge/patterns/frontend/component-template.md +91 -40
- package/one/knowledge/patterns/frontend/form-template.md +131 -59
- package/one/knowledge/patterns/frontend/page-template.md +59 -28
- package/one/knowledge/patterns/frontend/react-component-pattern.md +87 -27
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +28 -10
- package/one/knowledge/patterns/test/technical-test-template.md +48 -26
- package/one/knowledge/patterns/test/test-driven-pattern.md +25 -5
- package/one/knowledge/patterns/test/user-flow-template.md +18 -0
- package/one/knowledge/provider-agnostic-content.md +995 -0
- package/one/knowledge/provider-creation-guide.md +18 -0
- package/one/knowledge/quality-loop.md +18 -0
- package/one/knowledge/readme-architecture.md +158 -0
- package/one/knowledge/readme.md +18 -0
- package/one/knowledge/rules.md +18 -0
- package/one/knowledge/score.md +18 -0
- package/one/knowledge/specifications.md +18 -0
- package/one/knowledge/tags.md +18 -0
- package/one/knowledge/todo-template.md +18 -0
- package/one/knowledge/todo.md +18 -0
- package/one/knowledge/typescript-patterns.md +18 -0
- package/one/knowledge/universal-generation-language.md +827 -0
- package/one/knowledge/x402-research.md +104 -0
- package/one/license.md +18 -0
- package/one/people/anthony-o-connell.md +48 -19
- package/one/people/people.md +54 -31
- package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +401 -0
- package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +588 -0
- package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +461 -0
- package/one/things/CHECKLIST.md +51 -0
- package/one/things/IMPLEMENTATION_STATUS.md +379 -0
- package/one/things/ONE.md +19 -1
- package/one/things/agents/agent-backend.md +198 -98
- package/one/things/agents/agent-builder.md +267 -158
- package/one/things/agents/agent-clean.md +40 -15
- package/one/things/agents/agent-clone.md +33 -50
- package/one/things/agents/agent-deploy.md +59 -11
- package/one/things/agents/agent-designer.md +274 -146
- package/one/things/agents/agent-director.md +20 -2
- package/one/things/agents/agent-documenter.md +126 -46
- package/one/things/agents/agent-frontend.md +104 -22
- package/one/things/agents/agent-integrator.md +153 -76
- package/one/things/agents/agent-lawyer.md +197 -92
- package/one/things/agents/agent-problem-solver.md +302 -224
- package/one/things/agents/agent-quality.md +149 -19
- package/one/things/agents/agent-sales.md +95 -7
- package/one/things/cascade/cascade.yaml +20 -3
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +53 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +50 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +76 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +49 -3
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +45 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +32 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +45 -3
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +44 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +40 -1
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +81 -25
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +41 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +91 -16
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +136 -73
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +43 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +88 -4
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +52 -3
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +44 -1
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +78 -14
- package/one/things/cascade/docs/examples/readme.md +37 -0
- package/one/things/cascade/docs/getting-started.md +18 -0
- package/one/things/cascade/docs/workflow.md +18 -12
- package/one/things/cascade/readme.md +43 -0
- package/one/things/cascade/templates/feature-template.md +28 -6
- package/one/things/claude/agents/advocacy-activation-manager.md +64 -39
- package/one/things/claude/agents/advocacy-campaign-designer.md +64 -39
- package/one/things/claude/agents/analyst.md +64 -39
- package/one/things/claude/agents/architect.md +64 -39
- package/one/things/claude/agents/brand-identity-specialist.md +64 -39
- package/one/things/claude/agents/bstp-token-strategist.md +48 -25
- package/one/things/claude/agents/builder-repo.md +69 -26
- package/one/things/claude/agents/bullstamp-community-builder.md +48 -25
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +48 -25
- package/one/things/claude/agents/bulltilt-platform-growth.md +48 -25
- package/one/things/claude/agents/company-bullstamp-character.md +45 -30
- package/one/things/claude/agents/company-bullstamp-community.md +45 -30
- package/one/things/claude/agents/company-bullstamp-marketing.md +45 -30
- package/one/things/claude/agents/company-bullstamp-token.md +45 -30
- package/one/things/claude/agents/company-bulltilt-growth.md +45 -30
- package/one/things/claude/agents/content-bibliography-formatter.md +48 -25
- package/one/things/claude/agents/content-calendar-planner.md +59 -34
- package/one/things/claude/agents/content-chapter-formatter.md +60 -35
- package/one/things/claude/agents/content-formatter.md +59 -34
- package/one/things/claude/agents/content-hook-specialist.md +54 -31
- package/one/things/claude/agents/content-image-formatter.md +59 -34
- package/one/things/claude/agents/content-introduction-formatter.md +59 -34
- package/one/things/claude/agents/content-multiplication-engine.md +54 -31
- package/one/things/claude/agents/content-playbook-writer.md +60 -35
- package/one/things/claude/agents/content-team-manager.md +59 -34
- package/one/things/claude/agents/content-toc-formatter.md +60 -35
- package/one/things/claude/agents/convex-backend-specialist.md +380 -216
- package/one/things/claude/agents/core-manager.md +59 -34
- package/one/things/claude/agents/core-master.md +55 -32
- package/one/things/claude/agents/cross-functional-manager.md +46 -41
- package/one/things/claude/agents/crypto-airdrop-strategist.md +74 -54
- package/one/things/claude/agents/crypto-analytics-educator.md +73 -30
- package/one/things/claude/agents/crypto-architecture-specialist.md +70 -39
- package/one/things/claude/agents/crypto-community-analyst.md +47 -31
- package/one/things/claude/agents/crypto-community-psychologist.md +68 -31
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +72 -31
- package/one/things/claude/agents/crypto-dex-optimizer.md +45 -30
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +69 -30
- package/one/things/claude/agents/crypto-diamond-hands.md +45 -30
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +73 -30
- package/one/things/claude/agents/crypto-engagement-specialist.md +71 -30
- package/one/things/claude/agents/crypto-market-researcher.md +45 -30
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +74 -34
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +75 -30
- package/one/things/claude/agents/crypto-optimization-analyst.md +73 -30
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +69 -30
- package/one/things/claude/agents/crypto-team-manager.md +45 -40
- package/one/things/claude/agents/crypto-token-analyst.md +66 -25
- package/one/things/claude/agents/crypto-viral-content-creator.md +64 -61
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +61 -51
- package/one/things/claude/agents/crypto-wallet-identifier.md +45 -30
- package/one/things/claude/agents/customer-journey-designer.md +51 -58
- package/one/things/claude/agents/customer-success-manager.md +51 -58
- package/one/things/claude/agents/dev.md +51 -58
- package/one/things/claude/agents/documenter.md +71 -69
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +45 -52
- package/one/things/claude/agents/engagement-specialist.md +45 -52
- package/one/things/claude/agents/engineering-architect.md +54 -54
- package/one/things/claude/agents/engineering-business-analyst.md +46 -56
- package/one/things/claude/agents/engineering-developer.md +51 -52
- package/one/things/claude/agents/engineering-director.md +65 -25
- package/one/things/claude/agents/engineering-ingestor.md +110 -100
- package/one/things/claude/agents/engineering-product-manager.md +43 -55
- package/one/things/claude/agents/engineering-product-owner.md +46 -56
- package/one/things/claude/agents/engineering-project-coordinator.md +44 -56
- package/one/things/claude/agents/engineering-quality-assurance.md +53 -54
- package/one/things/claude/agents/engineering-team-manager.md +46 -43
- package/one/things/claude/agents/engineering-user-experience.md +51 -52
- package/one/things/claude/agents/framework-elevate-manager.md +45 -30
- package/one/things/claude/agents/improver.md +120 -78
- package/one/things/claude/agents/intelligence-team-manager.md +45 -40
- package/one/things/claude/agents/lead-capture-expert.md +45 -52
- package/one/things/claude/agents/lead-magnet-creator.md +45 -52
- package/one/things/claude/agents/market-research-analyst.md +48 -25
- package/one/things/claude/agents/marketing-brand-identity.md +57 -27
- package/one/things/claude/agents/marketing-content-hooks.md +45 -40
- package/one/things/claude/agents/marketing-content-multiplier.md +45 -40
- package/one/things/claude/agents/marketing-content-poster.md +71 -60
- package/one/things/claude/agents/marketing-customer-journey.md +45 -40
- package/one/things/claude/agents/marketing-director.md +46 -41
- package/one/things/claude/agents/marketing-engagement.md +45 -40
- package/one/things/claude/agents/marketing-lead-capture.md +45 -40
- package/one/things/claude/agents/marketing-lead-magnet.md +45 -40
- package/one/things/claude/agents/marketing-network-effects.md +45 -40
- package/one/things/claude/agents/marketing-nurture-campaigns.md +45 -40
- package/one/things/claude/agents/marketing-share-optimizer.md +45 -40
- package/one/things/claude/agents/marketing-team-manager.md +45 -40
- package/one/things/claude/agents/marketing-viral-growth.md +49 -18
- package/one/things/claude/agents/mission-commander.md +45 -40
- package/one/things/claude/agents/network-effect-analyst.md +48 -31
- package/one/things/claude/agents/nextjs-15-specialist.md +209 -122
- package/one/things/claude/agents/npx.md +126 -70
- package/one/things/claude/agents/nurture-campaign-manager.md +48 -25
- package/one/things/claude/agents/one-master.md +48 -25
- package/one/things/claude/agents/one-orchestrator.md +57 -27
- package/one/things/claude/agents/one.md +88 -31
- package/one/things/claude/agents/playbook-generator.md +48 -25
- package/one/things/claude/agents/pm.md +48 -25
- package/one/things/claude/agents/po.md +51 -26
- package/one/things/claude/agents/qa.md +50 -25
- package/one/things/claude/agents/research-foundation-analyst.md +48 -31
- package/one/things/claude/agents/research-intelligence-gatherer.md +59 -32
- package/one/things/claude/agents/research-market-analyst.md +47 -30
- package/one/things/claude/agents/research-team-manager.md +47 -40
- package/one/things/claude/agents/sales-environment-optimizer.md +50 -25
- package/one/things/claude/agents/sales-team-manager.md +47 -40
- package/one/things/claude/agents/sales-upsell-strategist.md +47 -30
- package/one/things/claude/agents/service-advocacy-campaigns.md +47 -30
- package/one/things/claude/agents/service-advocacy-manager.md +47 -30
- package/one/things/claude/agents/service-success-manager.md +47 -30
- package/one/things/claude/agents/service-team-manager.md +45 -40
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +85 -30
- package/one/things/claude/agents/share-optimization-specialist.md +50 -25
- package/one/things/claude/agents/sm.md +50 -25
- package/one/things/claude/agents/story-teller.md +51 -26
- package/one/things/claude/agents/task-master.md +52 -27
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +201 -116
- package/one/things/claude/agents/tester.md +85 -46
- package/one/things/claude/agents/the-bull-character-manager.md +48 -25
- package/one/things/claude/agents/tools-playbook-generator.md +43 -40
- package/one/things/claude/agents/turbo-repo-builder.md +57 -27
- package/one/things/claude/agents/upsell-strategist.md +48 -25
- package/one/things/claude/agents/ux-expert.md +50 -25
- package/one/things/claude/agents/viral-growth-orchestrator.md +50 -27
- package/one/things/claude/commands/agent.md +25 -5
- package/one/things/claude/commands/cascade-status.md +33 -8
- package/one/things/claude/commands/ingest.md +64 -11
- package/one/things/claude/commands/ingestor.md +29 -7
- package/one/things/claude/commands/mission.md +24 -4
- package/one/things/claude/commands/npx.md +30 -7
- package/one/things/claude/commands/one.md +114 -68
- package/one/things/claude/commands/quality-check.md +72 -24
- package/one/things/claude/commands/smart-route.md +45 -4
- package/one/things/claude/commands/start.md +22 -4
- package/one/things/claude/commands/story.md +25 -5
- package/one/things/claude/commands/task.md +21 -1
- package/one/things/cli/cli-code.md +244 -219
- package/one/things/cli/cli-compiler-code.md +244 -219
- package/one/things/cli/cli.md +30 -6
- package/one/things/components/card-shadcn.md +252 -228
- package/one/things/components/card.md +315 -324
- package/one/things/components.md +667 -593
- package/one/things/componets.md +16 -1
- package/one/things/creator-diagram.md +23 -5
- package/one/things/demo-accessibility-animations.md +73 -47
- package/one/things/demo-components.md +225 -219
- package/one/things/demo-design-summary.md +89 -26
- package/one/things/demo-design-system.md +184 -130
- package/one/things/demo-page-layouts.md +52 -25
- package/one/things/designs/accessibility-audit.md +153 -66
- package/one/things/designs/component-specifications.md +163 -65
- package/one/things/designs/design-overview.md +81 -22
- package/one/things/designs/design-tokens.md +127 -93
- package/one/things/designs/wireframes-dashboard.md +64 -7
- package/one/things/docs/api-requests.md +75 -11
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +18 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +57 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +62 -6
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +60 -5
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +95 -27
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +130 -62
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +43 -19
- package/one/things/docs/ecommerce/QUICK-START.md +41 -4
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +75 -6
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +58 -24
- package/one/things/examples/children/lemonade-stand.md +52 -14
- package/one/things/examples/enterprise/crm-saas.md +43 -28
- package/one/things/features/1-1-agent-prompts.md +76 -0
- package/one/things/features/1-2-yaml-orchestrator.md +32 -0
- package/one/things/features/1-3-event-coordination.md +40 -1
- package/one/things/features/1-4-knowledge-management.md +91 -16
- package/one/things/features/1-5-quality-loops.md +88 -4
- package/one/things/features/1-6-numbering-structure.md +78 -14
- package/one/things/features/2-1-dataprovider-interface.md +311 -86
- package/one/things/features/2-2-config-system.md +307 -140
- package/one/things/features/2-3-effectts-services.md +263 -116
- package/one/things/features/2-4-react-hooks.md +217 -201
- package/one/things/features/2-5-auth-migration.md +406 -308
- package/one/things/features/2-6-dashboard-migration.md +112 -13
- package/one/things/features/2-7-alternative-providers.md +138 -65
- package/one/things/features/2-7-implementation-report.md +68 -24
- package/one/things/features/2-cli.md +88 -76
- package/one/things/features/2-design.md +112 -80
- package/one/things/features/2-tests.md +56 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +91 -36
- package/one/things/features/DECOUPLING.md +36 -18
- package/one/things/features/DEPLOYMENT.md +22 -4
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +48 -2
- package/one/things/features/improve.md +47 -29
- package/one/things/features/remove-convex-deps.md +18 -0
- package/one/things/features/top-features.md +28 -20
- package/one/things/features/use-one-backend.md +210 -173
- package/one/things/features-in-english.md +19 -6
- package/one/things/files.yaml +721 -0
- package/one/things/ideas/1-create-workflow.md +18 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +57 -2
- package/one/things/implementation/backend-guide.md +64 -19
- package/one/things/interface.md +43 -0
- package/one/things/landing-page-implementation.md +455 -0
- package/one/things/legal/README.md +44 -0
- package/one/things/legal/privacy-policy.md +186 -23
- package/one/things/legal/terms-of-service.md +164 -3
- package/one/things/master-workflow-plan.md +806 -0
- package/one/things/plans/0-timeline.md +36 -0
- package/one/things/plans/1-create-workflow.md +19 -0
- package/one/things/plans/QUICK-START-SIMPLIFICATION.md +333 -0
- package/one/things/plans/README-SIMPLIFICATION.md +349 -0
- package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +16 -0
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +455 -0
- package/one/things/plans/ai-elements.md +21 -2
- package/one/things/plans/ai-integration.md +108 -59
- package/one/things/plans/ai-sdk.md +85 -48
- package/one/things/plans/ai-tools.md +621 -0
- package/one/things/plans/app.md +142 -71
- package/one/things/plans/architecture-summary.md +34 -5
- package/one/things/plans/async-ai-agents.md +19 -1
- package/one/things/plans/backend-agnostic-frontend.md +70 -8
- package/one/things/plans/backend-cleanup-quickstart.md +52 -18
- package/one/things/plans/backend-ontology-conformance.md +110 -51
- package/one/things/plans/backend-status.md +58 -0
- package/one/things/plans/backend-structure.md +103 -55
- package/one/things/plans/backend-target-structure.md +61 -17
- package/one/things/plans/backend.md +60 -18
- package/one/things/plans/better-auth-any-backend-revised.md +325 -287
- package/one/things/plans/better-auth-any-backend.md +575 -531
- package/one/things/plans/better-auth-available-features.md +43 -5
- package/one/things/plans/big-plan.md +20 -6
- package/one/things/plans/cli-updates-required.md +44 -4
- package/one/things/plans/complete-step-by-step.md +223 -116
- package/one/things/plans/components.md +709 -0
- package/one/things/plans/convex-agents.md +79 -50
- package/one/things/plans/convex-better-auth.md +186 -154
- package/one/things/plans/convex-on-off.md +47 -29
- package/one/things/plans/crypto-token-researcher.md +629 -0
- package/one/things/plans/data-quality-metrics.md +745 -0
- package/one/things/plans/deep-researcher-agent.md +466 -0
- package/one/things/plans/deploy-to-cloudflare.md +55 -13
- package/one/things/plans/deployment-architecture.md +54 -11
- package/one/things/plans/desktop.md +21 -3
- package/one/things/plans/development-plan.md +184 -121
- package/one/things/plans/development-workflow-tldr.md +207 -0
- package/one/things/plans/development-workflow.md +959 -0
- package/one/things/plans/effect-components.md +667 -593
- package/one/things/plans/effect-patterns-reference.md +2235 -0
- package/one/things/plans/effect.md +204 -131
- package/one/things/plans/email.md +21 -8
- package/one/things/plans/enhance-auth.md +64 -41
- package/one/things/plans/execution-strategy.md +1291 -0
- package/one/things/plans/existing-infrastructure.md +712 -0
- package/one/things/plans/feature-based-sites.md +124 -51
- package/one/things/plans/frontend-effects.md +1276 -0
- package/one/things/plans/group-folder-multi-tenancy.md +92 -29
- package/one/things/plans/improve-codebase.md +498 -421
- package/one/things/plans/install-components.md +18 -1
- package/one/things/plans/integrate-frontend-and-backend.md +68 -44
- package/one/things/plans/landing.md +92 -0
- package/one/things/plans/layout.md +45 -1
- package/one/things/plans/mail-backend.md +546 -493
- package/one/things/plans/mail.md +379 -326
- package/one/things/plans/mcp-clear-context-prompt.md +21 -0
- package/one/things/plans/mcp-simple.md +20 -0
- package/one/things/plans/multi-ontology-architecture.md +115 -66
- package/one/things/plans/next-features.md +31 -0
- package/one/things/plans/onboarding.md +20 -1
- package/one/things/plans/one.md +18 -0
- package/one/things/plans/ontology-6-dimensions.md +24 -45
- package/one/things/plans/ontology-compliance-audit.md +315 -0
- package/one/things/plans/ontology-driven-strategy.md +19 -3
- package/one/things/plans/ontology-refine.md +586 -0
- package/one/things/plans/ontology-ui-approach.md +18 -0
- package/one/things/plans/open-agent.md +152 -97
- package/one/things/plans/performace.md +32 -0
- package/one/things/plans/phase-1-foundation.md +620 -0
- package/one/things/plans/phase-3-implementation.md +1037 -0
- package/one/things/plans/quick-wins.md +342 -187
- package/one/things/plans/readme-backend-cleanup.md +54 -13
- package/one/things/plans/release.md +55 -2
- package/one/things/plans/repos.md +22 -0
- package/one/things/plans/separate-copy-2.md +127 -71
- package/one/things/plans/separate-copy-3.md +35 -14
- package/one/things/plans/separate-copy.md +127 -71
- package/one/things/plans/separate-demo.md +37 -3
- package/one/things/plans/separate.md +24 -6
- package/one/things/plans/sequence.md +155 -12
- package/one/things/plans/shadcn-integration-summary.md +104 -44
- package/one/things/plans/sidebar.md +44 -10
- package/one/things/plans/skills.md +103 -0
- package/one/things/plans/small-fixes.md +19 -1
- package/one/things/plans/start-new.md +34 -8
- package/one/things/plans/switch-off-auth.md +22 -0
- package/one/things/plans/sync-checklist.md +30 -0
- package/one/things/plans/test-backend-connection.md +38 -0
- package/one/things/plans/unified-implementation-plan.md +144 -62
- package/one/things/plans/update-demos.md +103 -35
- package/one/things/plans/use-our-backend.md +572 -0
- package/one/things/plans/wave1-onboarding-100-inferences.md +1686 -0
- package/one/things/plans/wave1-onboarding-vision.md +744 -0
- package/one/things/plans/wave1-orchestration-summary.md +604 -0
- package/one/things/plans/wave1-specialist-assignments.md +1413 -0
- package/one/things/plans/workflow-files.md +28 -14
- package/one/things/plans/workflow.md +18 -12
- package/one/things/products/cascade-landing-page.md +150 -46
- package/one/things/products/cascade.md +185 -135
- package/one/things/products/context-engineering.md +411 -350
- package/one/things/products/onthology.md +15 -0
- package/one/things/products/ontology-ui-shadcn.md +375 -353
- package/one/things/products/ontology-ui.md +101 -59
- package/one/things/products/ontology.md +90 -18
- package/one/things/products/sdk.md +181 -165
- package/one/things/promptkit.md +70 -43
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/service-providers-new.md +95 -25
- package/one/things/service-providers.md +231 -202
- package/one/things/structure.md +532 -0
- package/one/things/system.md +18 -0
- package/one/things/templates.md +40 -0
- package/one/things/tests/2-1-dataprovider-interface.md +103 -31
- package/one/things/tests/2-1-test-analysis.md +65 -17
- package/one/things/things.md +48 -13
- package/one/things/todo-acp-integration.md +744 -0
- package/one/things/todo-ai.md +933 -0
- package/one/things/todo-api.md +1078 -0
- package/one/things/todo-assignment.md +580 -0
- package/one/things/todo-buy-chatgpt.md +1450 -0
- package/one/things/todo-components.md +1683 -0
- package/one/things/todo-connections.md +278 -0
- package/one/things/todo-ecommerce-frontend.md +1313 -0
- package/one/things/todo-ecommerce.md +569 -0
- package/one/things/todo-effects.md +1075 -0
- package/one/things/todo-frontend-effects.md +977 -0
- package/one/things/todo-landing-page.md +1091 -0
- package/one/things/todo-mail.md +1160 -0
- package/one/things/todo-master-plan.md +490 -0
- package/one/things/todo-onboard.md +666 -0
- package/one/things/todo-one-ie.md +538 -0
- package/one/things/todo-page.md +606 -0
- package/one/things/todo-plans.md +282 -0
- package/one/things/todo-projects.md +241 -0
- package/one/things/todo-refactoring-plan.md +366 -0
- package/one/things/todo-sequence.md +1621 -0
- package/one/things/todo-use-our-backend.md +1908 -0
- package/one/things/todo-workflow.md +626 -0
- package/one/things/todo-x402.md +2047 -0
- package/one/things/todo.md +459 -1075
- package/one/things/video/scripts-crypto.md +835 -0
- package/one/things/video-script-ontology.md +334 -0
- package/package.json +1 -1
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +0 -49
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/documentation-summary.md +0 -285
- package/one/knowledge/inference-score.md +0 -159
- package/one/knowledge/ontology-frontend-copy-2.md +0 -1492
- package/one/knowledge/ontology-frontend-copy.md +0 -753
- package/one/knowledge/ontology-migration-guide.md +0 -811
- package/one/things/features/0 All Features.md +0 -2
- package/one/things/plans/1-create-workflow-status.md +0 -555
- package/one/things/plans/2-backend-agnostic-frontend.md +0 -546
- package/one/things/plans/2-sites.md +0 -895
- package/one/things/plans/3-groups.md +0 -735
- package/one/things/plans/5-build-frontend.md +0 -0
- package/one/things/plans/5-complete.md +0 -17
- package/one/things/plans/agent-director-100-inference-plans.md +0 -410
- package/one/things/plans/dual-website-strategy.md +0 -612
- package/one/things/plans/releases.md +0 -809
|
@@ -1,6 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Card Shadcn
|
|
3
|
+
dimension: things
|
|
4
|
+
category: components
|
|
5
|
+
tags: frontend, ontology, things
|
|
6
|
+
related_dimensions: connections, events
|
|
7
|
+
scope: global
|
|
8
|
+
created: 2025-11-03
|
|
9
|
+
updated: 2025-11-03
|
|
10
|
+
version: 1.0.0
|
|
11
|
+
ai_context: |
|
|
12
|
+
This document is part of the things dimension in the components category.
|
|
13
|
+
Location: one/things/components/card-shadcn.md
|
|
14
|
+
Purpose: Documents card component (shadcn/ui)
|
|
15
|
+
Related dimensions: connections, events
|
|
16
|
+
For AI agents: Read this to understand card shadcn.
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# Card Component (shadcn/ui)
|
|
2
20
|
|
|
3
21
|
> **⚠️ DEPRECATED:** This document has been superseded by a cleaner approach. Please use:
|
|
22
|
+
>
|
|
4
23
|
> - `one/things/components/card.md` - Card implementation (uses shadcn/ui naturally)
|
|
5
24
|
> - `one/things/features/ontology-ui.md` - Clean UI metadata specification
|
|
6
25
|
> - `one/things/plans/ontology-ui-approach.md` - Philosophy explanation
|
|
@@ -35,8 +54,8 @@ import { ThingCard } from '@/components/generic/ThingCard'
|
|
|
35
54
|
|
|
36
55
|
```tsx
|
|
37
56
|
// frontend/src/components/generic/ThingCard.tsx
|
|
38
|
-
import { type Thing } from
|
|
39
|
-
import { useThingConfig } from
|
|
57
|
+
import { type Thing } from "@one-platform/core";
|
|
58
|
+
import { useThingConfig } from "@/ontology/hooks/useThingConfig";
|
|
40
59
|
import {
|
|
41
60
|
Card,
|
|
42
61
|
CardContent,
|
|
@@ -44,71 +63,73 @@ import {
|
|
|
44
63
|
CardFooter,
|
|
45
64
|
CardHeader,
|
|
46
65
|
CardTitle,
|
|
47
|
-
} from
|
|
48
|
-
import { Separator } from
|
|
49
|
-
import { Field } from
|
|
50
|
-
import { Actions } from
|
|
51
|
-
import { ConnectionBadges } from
|
|
52
|
-
import { cn } from
|
|
66
|
+
} from "@/components/ui/card";
|
|
67
|
+
import { Separator } from "@/components/ui/separator";
|
|
68
|
+
import { Field } from "./Field";
|
|
69
|
+
import { Actions } from "./Actions";
|
|
70
|
+
import { ConnectionBadges } from "./ConnectionBadges";
|
|
71
|
+
import { cn } from "@/lib/utils";
|
|
53
72
|
|
|
54
73
|
interface ThingCardProps {
|
|
55
|
-
thing: Thing
|
|
56
|
-
view?:
|
|
57
|
-
onClick?: (thing: Thing) => void
|
|
58
|
-
showActions?: boolean
|
|
59
|
-
showConnections?: boolean
|
|
60
|
-
className?: string
|
|
74
|
+
thing: Thing;
|
|
75
|
+
view?: "card" | "list" | "detail";
|
|
76
|
+
onClick?: (thing: Thing) => void;
|
|
77
|
+
showActions?: boolean;
|
|
78
|
+
showConnections?: boolean;
|
|
79
|
+
className?: string;
|
|
61
80
|
}
|
|
62
81
|
|
|
63
82
|
export function ThingCard({
|
|
64
83
|
thing,
|
|
65
|
-
view =
|
|
84
|
+
view = "card",
|
|
66
85
|
onClick,
|
|
67
86
|
showActions = true,
|
|
68
87
|
showConnections = true,
|
|
69
|
-
className
|
|
88
|
+
className,
|
|
70
89
|
}: ThingCardProps) {
|
|
71
90
|
// Get UI config from ontology
|
|
72
|
-
const config = useThingConfig(thing.type)
|
|
73
|
-
const viewConfig = config.ui.views[view]
|
|
91
|
+
const config = useThingConfig(thing.type);
|
|
92
|
+
const viewConfig = config.ui.views[view];
|
|
74
93
|
|
|
75
94
|
if (!viewConfig) {
|
|
76
|
-
console.warn(`View "${view}" not defined for type "${thing.type}"`)
|
|
77
|
-
return null
|
|
95
|
+
console.warn(`View "${view}" not defined for type "${thing.type}"`);
|
|
96
|
+
return null;
|
|
78
97
|
}
|
|
79
98
|
|
|
80
99
|
// Get fields to display
|
|
81
|
-
const fields =
|
|
82
|
-
|
|
83
|
-
|
|
100
|
+
const fields =
|
|
101
|
+
viewConfig.fields === "*"
|
|
102
|
+
? Object.keys(config.properties)
|
|
103
|
+
: viewConfig.fields;
|
|
84
104
|
|
|
85
105
|
// Separate header fields (first 2) from body fields
|
|
86
|
-
const headerFields = fields.slice(0, 2)
|
|
87
|
-
const bodyFields = fields.slice(2)
|
|
106
|
+
const headerFields = fields.slice(0, 2);
|
|
107
|
+
const bodyFields = fields.slice(2);
|
|
88
108
|
|
|
89
109
|
// Check if card should be clickable
|
|
90
|
-
const isClickable = onClick || config.ui.actions.primary
|
|
110
|
+
const isClickable = onClick || config.ui.actions.primary;
|
|
91
111
|
|
|
92
112
|
return (
|
|
93
113
|
<Card
|
|
94
114
|
className={cn(
|
|
95
|
-
isClickable &&
|
|
96
|
-
|
|
115
|
+
isClickable &&
|
|
116
|
+
"cursor-pointer transition-all hover:shadow-lg hover:scale-[1.02]",
|
|
117
|
+
className,
|
|
97
118
|
)}
|
|
98
119
|
onClick={() => {
|
|
99
120
|
if (onClick) {
|
|
100
|
-
onClick(thing)
|
|
121
|
+
onClick(thing);
|
|
101
122
|
} else if (config.ui.actions.primary && !showActions) {
|
|
102
123
|
// Execute primary action if actions are hidden
|
|
103
|
-
handlePrimaryAction(thing, config.ui.actions.primary.action)
|
|
124
|
+
handlePrimaryAction(thing, config.ui.actions.primary.action);
|
|
104
125
|
}
|
|
105
126
|
}}
|
|
106
127
|
>
|
|
107
128
|
{/* Header: Typically thumbnail + title */}
|
|
108
129
|
<CardHeader className="space-y-0 pb-3">
|
|
109
|
-
{headerFields.map(fieldName => {
|
|
110
|
-
const fieldConfig = config.ui.fields[fieldName]
|
|
111
|
-
if (fieldConfig?.hidden) return null
|
|
130
|
+
{headerFields.map((fieldName) => {
|
|
131
|
+
const fieldConfig = config.ui.fields[fieldName];
|
|
132
|
+
if (fieldConfig?.hidden) return null;
|
|
112
133
|
|
|
113
134
|
return (
|
|
114
135
|
<Field
|
|
@@ -118,22 +139,22 @@ export function ThingCard({
|
|
|
118
139
|
config={fieldConfig}
|
|
119
140
|
thing={thing}
|
|
120
141
|
/>
|
|
121
|
-
)
|
|
142
|
+
);
|
|
122
143
|
})}
|
|
123
144
|
</CardHeader>
|
|
124
145
|
|
|
125
146
|
{/* Body: Description, price, badges, etc. */}
|
|
126
147
|
{bodyFields.length > 0 && (
|
|
127
148
|
<CardContent className="space-y-2 pb-3">
|
|
128
|
-
{bodyFields.map(fieldName => {
|
|
129
|
-
const fieldConfig = config.ui.fields[fieldName]
|
|
149
|
+
{bodyFields.map((fieldName) => {
|
|
150
|
+
const fieldConfig = config.ui.fields[fieldName];
|
|
130
151
|
|
|
131
152
|
// Skip hidden fields
|
|
132
|
-
if (fieldConfig?.hidden) return null
|
|
153
|
+
if (fieldConfig?.hidden) return null;
|
|
133
154
|
|
|
134
155
|
// Skip showOnlyIf fields that are false
|
|
135
156
|
if (fieldConfig?.showOnlyIf && !thing.properties[fieldName]) {
|
|
136
|
-
return null
|
|
157
|
+
return null;
|
|
137
158
|
}
|
|
138
159
|
|
|
139
160
|
return (
|
|
@@ -144,7 +165,7 @@ export function ThingCard({
|
|
|
144
165
|
config={fieldConfig}
|
|
145
166
|
thing={thing}
|
|
146
167
|
/>
|
|
147
|
-
)
|
|
168
|
+
);
|
|
148
169
|
})}
|
|
149
170
|
</CardContent>
|
|
150
171
|
)}
|
|
@@ -154,50 +175,48 @@ export function ThingCard({
|
|
|
154
175
|
<>
|
|
155
176
|
<Separator className="mb-3" />
|
|
156
177
|
<CardContent className="pt-0 pb-3">
|
|
157
|
-
<ConnectionBadges
|
|
158
|
-
thing={thing}
|
|
159
|
-
config={config.ui.connections}
|
|
160
|
-
/>
|
|
178
|
+
<ConnectionBadges thing={thing} config={config.ui.connections} />
|
|
161
179
|
</CardContent>
|
|
162
180
|
</>
|
|
163
181
|
)}
|
|
164
182
|
|
|
165
183
|
{/* Actions footer */}
|
|
166
|
-
{showActions &&
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
184
|
+
{showActions &&
|
|
185
|
+
(config.ui.actions.primary || config.ui.actions.secondary) && (
|
|
186
|
+
<>
|
|
187
|
+
<Separator />
|
|
188
|
+
<CardFooter className="pt-3">
|
|
189
|
+
<Actions
|
|
190
|
+
thing={thing}
|
|
191
|
+
primary={config.ui.actions.primary}
|
|
192
|
+
secondary={config.ui.actions.secondary}
|
|
193
|
+
context={config.ui.actions.context}
|
|
194
|
+
/>
|
|
195
|
+
</CardFooter>
|
|
196
|
+
</>
|
|
197
|
+
)}
|
|
179
198
|
</Card>
|
|
180
|
-
)
|
|
199
|
+
);
|
|
181
200
|
}
|
|
182
201
|
|
|
183
202
|
// Helper function to handle primary action
|
|
184
203
|
function handlePrimaryAction(thing: Thing, action: string) {
|
|
185
204
|
// Route to appropriate handler
|
|
186
205
|
switch (action) {
|
|
187
|
-
case
|
|
188
|
-
case
|
|
189
|
-
case
|
|
206
|
+
case "enroll":
|
|
207
|
+
case "purchase":
|
|
208
|
+
case "addToCart":
|
|
190
209
|
// Navigate to action page
|
|
191
|
-
window.location.href = `/${action}/${thing._id}
|
|
192
|
-
break
|
|
193
|
-
case
|
|
194
|
-
case
|
|
195
|
-
case
|
|
210
|
+
window.location.href = `/${action}/${thing._id}`;
|
|
211
|
+
break;
|
|
212
|
+
case "preview":
|
|
213
|
+
case "read":
|
|
214
|
+
case "viewProfile":
|
|
196
215
|
// Navigate to detail page
|
|
197
|
-
window.location.href = `/${thing.type}/${thing._id}
|
|
198
|
-
break
|
|
216
|
+
window.location.href = `/${thing.type}/${thing._id}`;
|
|
217
|
+
break;
|
|
199
218
|
default:
|
|
200
|
-
console.warn(`Unhandled action: ${action}`)
|
|
219
|
+
console.warn(`Unhandled action: ${action}`);
|
|
201
220
|
}
|
|
202
221
|
}
|
|
203
222
|
```
|
|
@@ -211,7 +230,7 @@ function handlePrimaryAction(thing: Thing, action: string) {
|
|
|
211
230
|
```tsx
|
|
212
231
|
// frontend/src/components/generic/ThingCard.Compact.tsx
|
|
213
232
|
export function ThingCardCompact({ thing }: { thing: Thing }) {
|
|
214
|
-
const config = useThingConfig(thing.type)
|
|
233
|
+
const config = useThingConfig(thing.type);
|
|
215
234
|
|
|
216
235
|
return (
|
|
217
236
|
<Card className="hover:shadow-md transition-shadow">
|
|
@@ -226,9 +245,7 @@ export function ThingCardCompact({ thing }: { thing: Thing }) {
|
|
|
226
245
|
|
|
227
246
|
{/* Title + description */}
|
|
228
247
|
<div className="flex-1 min-w-0">
|
|
229
|
-
<CardTitle className="text-base truncate">
|
|
230
|
-
{thing.name}
|
|
231
|
-
</CardTitle>
|
|
248
|
+
<CardTitle className="text-base truncate">{thing.name}</CardTitle>
|
|
232
249
|
<CardDescription className="text-sm truncate">
|
|
233
250
|
{thing.properties.description}
|
|
234
251
|
</CardDescription>
|
|
@@ -245,7 +262,7 @@ export function ThingCardCompact({ thing }: { thing: Thing }) {
|
|
|
245
262
|
)}
|
|
246
263
|
</CardContent>
|
|
247
264
|
</Card>
|
|
248
|
-
)
|
|
265
|
+
);
|
|
249
266
|
}
|
|
250
267
|
```
|
|
251
268
|
|
|
@@ -254,8 +271,8 @@ export function ThingCardCompact({ thing }: { thing: Thing }) {
|
|
|
254
271
|
```tsx
|
|
255
272
|
// frontend/src/components/generic/ThingCard.Horizontal.tsx
|
|
256
273
|
export function ThingCardHorizontal({ thing }: { thing: Thing }) {
|
|
257
|
-
const config = useThingConfig(thing.type)
|
|
258
|
-
const listView = config.ui.views.list
|
|
274
|
+
const config = useThingConfig(thing.type);
|
|
275
|
+
const listView = config.ui.views.list;
|
|
259
276
|
|
|
260
277
|
return (
|
|
261
278
|
<Card className="hover:shadow-md transition-shadow">
|
|
@@ -273,7 +290,7 @@ export function ThingCardHorizontal({ thing }: { thing: Thing }) {
|
|
|
273
290
|
{/* Right: Content */}
|
|
274
291
|
<div className="flex-1 p-6">
|
|
275
292
|
<div className="space-y-3">
|
|
276
|
-
{listView.fields.slice(1).map(fieldName => (
|
|
293
|
+
{listView.fields.slice(1).map((fieldName) => (
|
|
277
294
|
<Field
|
|
278
295
|
key={fieldName}
|
|
279
296
|
name={fieldName}
|
|
@@ -295,7 +312,7 @@ export function ThingCardHorizontal({ thing }: { thing: Thing }) {
|
|
|
295
312
|
</div>
|
|
296
313
|
</div>
|
|
297
314
|
</Card>
|
|
298
|
-
)
|
|
315
|
+
);
|
|
299
316
|
}
|
|
300
317
|
```
|
|
301
318
|
|
|
@@ -304,7 +321,7 @@ export function ThingCardHorizontal({ thing }: { thing: Thing }) {
|
|
|
304
321
|
```tsx
|
|
305
322
|
// frontend/src/components/generic/ThingCard.Featured.tsx
|
|
306
323
|
export function ThingCardFeatured({ thing }: { thing: Thing }) {
|
|
307
|
-
const config = useThingConfig(thing.type)
|
|
324
|
+
const config = useThingConfig(thing.type);
|
|
308
325
|
|
|
309
326
|
return (
|
|
310
327
|
<Card className="border-primary shadow-lg">
|
|
@@ -323,7 +340,7 @@ export function ThingCardFeatured({ thing }: { thing: Thing }) {
|
|
|
323
340
|
value={thing.properties.thumbnail}
|
|
324
341
|
config={{
|
|
325
342
|
...config.ui.fields.thumbnail,
|
|
326
|
-
aspect:
|
|
343
|
+
aspect: "wide",
|
|
327
344
|
}}
|
|
328
345
|
thing={thing}
|
|
329
346
|
/>
|
|
@@ -363,7 +380,7 @@ export function ThingCardFeatured({ thing }: { thing: Thing }) {
|
|
|
363
380
|
/>
|
|
364
381
|
</CardFooter>
|
|
365
382
|
</Card>
|
|
366
|
-
)
|
|
383
|
+
);
|
|
367
384
|
}
|
|
368
385
|
```
|
|
369
386
|
|
|
@@ -375,38 +392,34 @@ export function ThingCardFeatured({ thing }: { thing: Thing }) {
|
|
|
375
392
|
|
|
376
393
|
```tsx
|
|
377
394
|
// frontend/src/components/generic/ThingGrid.tsx
|
|
378
|
-
import { ThingCard } from
|
|
395
|
+
import { ThingCard } from "./ThingCard";
|
|
379
396
|
|
|
380
397
|
interface ThingGridProps {
|
|
381
|
-
things: Thing[]
|
|
382
|
-
columns?: 2 | 3 | 4
|
|
383
|
-
gap?:
|
|
398
|
+
things: Thing[];
|
|
399
|
+
columns?: 2 | 3 | 4;
|
|
400
|
+
gap?: "sm" | "md" | "lg";
|
|
384
401
|
}
|
|
385
402
|
|
|
386
|
-
export function ThingGrid({
|
|
387
|
-
things,
|
|
388
|
-
columns = 3,
|
|
389
|
-
gap = 'md'
|
|
390
|
-
}: ThingGridProps) {
|
|
403
|
+
export function ThingGrid({ things, columns = 3, gap = "md" }: ThingGridProps) {
|
|
391
404
|
const columnClasses = {
|
|
392
|
-
2:
|
|
393
|
-
3:
|
|
394
|
-
4:
|
|
395
|
-
}
|
|
405
|
+
2: "grid-cols-1 md:grid-cols-2",
|
|
406
|
+
3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
407
|
+
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
408
|
+
};
|
|
396
409
|
|
|
397
410
|
const gapClasses = {
|
|
398
|
-
sm:
|
|
399
|
-
md:
|
|
400
|
-
lg:
|
|
401
|
-
}
|
|
411
|
+
sm: "gap-4",
|
|
412
|
+
md: "gap-6",
|
|
413
|
+
lg: "gap-8",
|
|
414
|
+
};
|
|
402
415
|
|
|
403
416
|
return (
|
|
404
|
-
<div className={cn(
|
|
405
|
-
{things.map(thing => (
|
|
417
|
+
<div className={cn("grid", columnClasses[columns], gapClasses[gap])}>
|
|
418
|
+
{things.map((thing) => (
|
|
406
419
|
<ThingCard key={thing._id} thing={thing} />
|
|
407
420
|
))}
|
|
408
421
|
</div>
|
|
409
|
-
)
|
|
422
|
+
);
|
|
410
423
|
}
|
|
411
424
|
```
|
|
412
425
|
|
|
@@ -414,18 +427,18 @@ export function ThingGrid({
|
|
|
414
427
|
|
|
415
428
|
```tsx
|
|
416
429
|
// frontend/src/components/generic/ThingMasonry.tsx
|
|
417
|
-
import { ThingCard } from
|
|
430
|
+
import { ThingCard } from "./ThingCard";
|
|
418
431
|
|
|
419
432
|
export function ThingMasonry({ things }: { things: Thing[] }) {
|
|
420
433
|
return (
|
|
421
434
|
<div className="columns-1 md:columns-2 lg:columns-3 gap-6">
|
|
422
|
-
{things.map(thing => (
|
|
435
|
+
{things.map((thing) => (
|
|
423
436
|
<div key={thing._id} className="break-inside-avoid mb-6">
|
|
424
437
|
<ThingCard thing={thing} />
|
|
425
438
|
</div>
|
|
426
439
|
))}
|
|
427
440
|
</div>
|
|
428
|
-
)
|
|
441
|
+
);
|
|
429
442
|
}
|
|
430
443
|
```
|
|
431
444
|
|
|
@@ -437,8 +450,8 @@ export function ThingMasonry({ things }: { things: Thing[] }) {
|
|
|
437
450
|
|
|
438
451
|
```tsx
|
|
439
452
|
// frontend/src/components/generic/ThingList.tsx
|
|
440
|
-
import { ThingCard } from
|
|
441
|
-
import { Separator } from
|
|
453
|
+
import { ThingCard } from "./ThingCard";
|
|
454
|
+
import { Separator } from "@/components/ui/separator";
|
|
442
455
|
|
|
443
456
|
export function ThingList({ things }: { things: Thing[] }) {
|
|
444
457
|
return (
|
|
@@ -450,7 +463,7 @@ export function ThingList({ things }: { things: Thing[] }) {
|
|
|
450
463
|
</div>
|
|
451
464
|
))}
|
|
452
465
|
</div>
|
|
453
|
-
)
|
|
466
|
+
);
|
|
454
467
|
}
|
|
455
468
|
```
|
|
456
469
|
|
|
@@ -458,22 +471,25 @@ export function ThingList({ things }: { things: Thing[] }) {
|
|
|
458
471
|
|
|
459
472
|
```tsx
|
|
460
473
|
// frontend/src/components/generic/ThingListGrouped.tsx
|
|
461
|
-
import { ThingCard } from
|
|
462
|
-
import { Separator } from
|
|
474
|
+
import { ThingCard } from "./ThingCard";
|
|
475
|
+
import { Separator } from "@/components/ui/separator";
|
|
463
476
|
|
|
464
477
|
interface ThingListGroupedProps {
|
|
465
|
-
things: Thing[]
|
|
466
|
-
groupBy: string
|
|
478
|
+
things: Thing[];
|
|
479
|
+
groupBy: string; // e.g., 'category', 'level'
|
|
467
480
|
}
|
|
468
481
|
|
|
469
482
|
export function ThingListGrouped({ things, groupBy }: ThingListGroupedProps) {
|
|
470
483
|
// Group things
|
|
471
|
-
const grouped = things.reduce(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
484
|
+
const grouped = things.reduce(
|
|
485
|
+
(acc, thing) => {
|
|
486
|
+
const key = thing.properties[groupBy] || "Other";
|
|
487
|
+
if (!acc[key]) acc[key] = [];
|
|
488
|
+
acc[key].push(thing);
|
|
489
|
+
return acc;
|
|
490
|
+
},
|
|
491
|
+
{} as Record<string, Thing[]>,
|
|
492
|
+
);
|
|
477
493
|
|
|
478
494
|
return (
|
|
479
495
|
<div className="space-y-8">
|
|
@@ -491,7 +507,7 @@ export function ThingListGrouped({ things, groupBy }: ThingListGroupedProps) {
|
|
|
491
507
|
</div>
|
|
492
508
|
))}
|
|
493
509
|
</div>
|
|
494
|
-
)
|
|
510
|
+
);
|
|
495
511
|
}
|
|
496
512
|
```
|
|
497
513
|
|
|
@@ -503,21 +519,21 @@ export function ThingListGrouped({ things, groupBy }: ThingListGroupedProps) {
|
|
|
503
519
|
|
|
504
520
|
```tsx
|
|
505
521
|
// frontend/src/components/generic/ThingCardSelectable.tsx
|
|
506
|
-
import { Checkbox } from
|
|
522
|
+
import { Checkbox } from "@/components/ui/checkbox";
|
|
507
523
|
|
|
508
524
|
interface ThingCardSelectableProps {
|
|
509
|
-
thing: Thing
|
|
510
|
-
selected: boolean
|
|
511
|
-
onSelectedChange: (selected: boolean) => void
|
|
525
|
+
thing: Thing;
|
|
526
|
+
selected: boolean;
|
|
527
|
+
onSelectedChange: (selected: boolean) => void;
|
|
512
528
|
}
|
|
513
529
|
|
|
514
530
|
export function ThingCardSelectable({
|
|
515
531
|
thing,
|
|
516
532
|
selected,
|
|
517
|
-
onSelectedChange
|
|
533
|
+
onSelectedChange,
|
|
518
534
|
}: ThingCardSelectableProps) {
|
|
519
535
|
return (
|
|
520
|
-
<Card className={cn(selected &&
|
|
536
|
+
<Card className={cn(selected && "ring-2 ring-primary")}>
|
|
521
537
|
<div className="absolute top-4 right-4 z-10">
|
|
522
538
|
<Checkbox
|
|
523
539
|
checked={selected}
|
|
@@ -528,7 +544,7 @@ export function ThingCardSelectable({
|
|
|
528
544
|
|
|
529
545
|
<ThingCard thing={thing} showActions={false} />
|
|
530
546
|
</Card>
|
|
531
|
-
)
|
|
547
|
+
);
|
|
532
548
|
}
|
|
533
549
|
```
|
|
534
550
|
|
|
@@ -536,9 +552,9 @@ export function ThingCardSelectable({
|
|
|
536
552
|
|
|
537
553
|
```tsx
|
|
538
554
|
// frontend/src/components/generic/ThingCardDraggable.tsx
|
|
539
|
-
import { useSortable } from
|
|
540
|
-
import { CSS } from
|
|
541
|
-
import { GripVertical } from
|
|
555
|
+
import { useSortable } from "@dnd-kit/sortable";
|
|
556
|
+
import { CSS } from "@dnd-kit/utilities";
|
|
557
|
+
import { GripVertical } from "lucide-react";
|
|
542
558
|
|
|
543
559
|
export function ThingCardDraggable({ thing }: { thing: Thing }) {
|
|
544
560
|
const {
|
|
@@ -547,14 +563,14 @@ export function ThingCardDraggable({ thing }: { thing: Thing }) {
|
|
|
547
563
|
setNodeRef,
|
|
548
564
|
transform,
|
|
549
565
|
transition,
|
|
550
|
-
isDragging
|
|
551
|
-
} = useSortable({ id: thing._id })
|
|
566
|
+
isDragging,
|
|
567
|
+
} = useSortable({ id: thing._id });
|
|
552
568
|
|
|
553
569
|
const style = {
|
|
554
570
|
transform: CSS.Transform.toString(transform),
|
|
555
571
|
transition,
|
|
556
|
-
opacity: isDragging ? 0.5 : 1
|
|
557
|
-
}
|
|
572
|
+
opacity: isDragging ? 0.5 : 1,
|
|
573
|
+
};
|
|
558
574
|
|
|
559
575
|
return (
|
|
560
576
|
<div ref={setNodeRef} style={style}>
|
|
@@ -576,7 +592,7 @@ export function ThingCardDraggable({ thing }: { thing: Thing }) {
|
|
|
576
592
|
</div>
|
|
577
593
|
</Card>
|
|
578
594
|
</div>
|
|
579
|
-
)
|
|
595
|
+
);
|
|
580
596
|
}
|
|
581
597
|
```
|
|
582
598
|
|
|
@@ -588,8 +604,13 @@ export function ThingCardDraggable({ thing }: { thing: Thing }) {
|
|
|
588
604
|
|
|
589
605
|
```tsx
|
|
590
606
|
// frontend/src/components/generic/ThingCard.Skeleton.tsx
|
|
591
|
-
import {
|
|
592
|
-
|
|
607
|
+
import {
|
|
608
|
+
Card,
|
|
609
|
+
CardContent,
|
|
610
|
+
CardFooter,
|
|
611
|
+
CardHeader,
|
|
612
|
+
} from "@/components/ui/card";
|
|
613
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
593
614
|
|
|
594
615
|
export function ThingCardSkeleton() {
|
|
595
616
|
return (
|
|
@@ -609,7 +630,7 @@ export function ThingCardSkeleton() {
|
|
|
609
630
|
<Skeleton className="h-10 w-full" />
|
|
610
631
|
</CardFooter>
|
|
611
632
|
</Card>
|
|
612
|
-
)
|
|
633
|
+
);
|
|
613
634
|
}
|
|
614
635
|
```
|
|
615
636
|
|
|
@@ -617,7 +638,7 @@ export function ThingCardSkeleton() {
|
|
|
617
638
|
|
|
618
639
|
```tsx
|
|
619
640
|
export function ThingsPage() {
|
|
620
|
-
const { things, loading } = useThings()
|
|
641
|
+
const { things, loading } = useThings();
|
|
621
642
|
|
|
622
643
|
if (loading) {
|
|
623
644
|
return (
|
|
@@ -626,12 +647,10 @@ export function ThingsPage() {
|
|
|
626
647
|
<ThingCardSkeleton key={i} />
|
|
627
648
|
))}
|
|
628
649
|
</div>
|
|
629
|
-
)
|
|
650
|
+
);
|
|
630
651
|
}
|
|
631
652
|
|
|
632
|
-
return
|
|
633
|
-
<ThingGrid things={things} />
|
|
634
|
-
)
|
|
653
|
+
return <ThingGrid things={things} />;
|
|
635
654
|
}
|
|
636
655
|
```
|
|
637
656
|
|
|
@@ -641,13 +660,13 @@ export function ThingsPage() {
|
|
|
641
660
|
|
|
642
661
|
```tsx
|
|
643
662
|
// frontend/src/components/generic/ThingCard.Error.tsx
|
|
644
|
-
import { Card, CardContent } from
|
|
645
|
-
import { AlertCircle } from
|
|
646
|
-
import { Button } from
|
|
663
|
+
import { Card, CardContent } from "@/components/ui/card";
|
|
664
|
+
import { AlertCircle } from "lucide-react";
|
|
665
|
+
import { Button } from "@/components/ui/button";
|
|
647
666
|
|
|
648
667
|
interface ThingCardErrorProps {
|
|
649
|
-
error: Error
|
|
650
|
-
onRetry?: () => void
|
|
668
|
+
error: Error;
|
|
669
|
+
onRetry?: () => void;
|
|
651
670
|
}
|
|
652
671
|
|
|
653
672
|
export function ThingCardError({ error, onRetry }: ThingCardErrorProps) {
|
|
@@ -665,7 +684,7 @@ export function ThingCardError({ error, onRetry }: ThingCardErrorProps) {
|
|
|
665
684
|
)}
|
|
666
685
|
</CardContent>
|
|
667
686
|
</Card>
|
|
668
|
-
)
|
|
687
|
+
);
|
|
669
688
|
}
|
|
670
689
|
```
|
|
671
690
|
|
|
@@ -677,16 +696,16 @@ export function ThingCardError({ error, onRetry }: ThingCardErrorProps) {
|
|
|
677
696
|
|
|
678
697
|
```tsx
|
|
679
698
|
// frontend/src/pages/products.tsx
|
|
680
|
-
import { ThingGrid } from
|
|
681
|
-
import { ThingCardSkeleton } from
|
|
682
|
-
import { EmptyState } from
|
|
683
|
-
import { Input } from
|
|
684
|
-
import { Button } from
|
|
685
|
-
import { Filter } from
|
|
699
|
+
import { ThingGrid } from "@/components/generic/ThingGrid";
|
|
700
|
+
import { ThingCardSkeleton } from "@/components/generic/ThingCard.Skeleton";
|
|
701
|
+
import { EmptyState } from "@/components/generic/EmptyState";
|
|
702
|
+
import { Input } from "@/components/ui/input";
|
|
703
|
+
import { Button } from "@/components/ui/button";
|
|
704
|
+
import { Filter } from "lucide-react";
|
|
686
705
|
|
|
687
706
|
export function ProductsPage() {
|
|
688
|
-
const { products, loading, error } = useProducts()
|
|
689
|
-
const config = useThingConfig(
|
|
707
|
+
const { products, loading, error } = useProducts();
|
|
708
|
+
const config = useThingConfig("product");
|
|
690
709
|
|
|
691
710
|
if (loading) {
|
|
692
711
|
return (
|
|
@@ -697,15 +716,15 @@ export function ProductsPage() {
|
|
|
697
716
|
))}
|
|
698
717
|
</div>
|
|
699
718
|
</div>
|
|
700
|
-
)
|
|
719
|
+
);
|
|
701
720
|
}
|
|
702
721
|
|
|
703
722
|
if (error) {
|
|
704
|
-
return <ThingCardError error={error}
|
|
723
|
+
return <ThingCardError error={error} />;
|
|
705
724
|
}
|
|
706
725
|
|
|
707
726
|
if (products.length === 0) {
|
|
708
|
-
return <EmptyState config={config.ui.empty}
|
|
727
|
+
return <EmptyState config={config.ui.empty} />;
|
|
709
728
|
}
|
|
710
729
|
|
|
711
730
|
return (
|
|
@@ -714,10 +733,7 @@ export function ProductsPage() {
|
|
|
714
733
|
<div className="flex items-center justify-between mb-8">
|
|
715
734
|
<h1 className="text-3xl font-bold">Products</h1>
|
|
716
735
|
<div className="flex items-center gap-4">
|
|
717
|
-
<Input
|
|
718
|
-
placeholder="Search products..."
|
|
719
|
-
className="w-64"
|
|
720
|
-
/>
|
|
736
|
+
<Input placeholder="Search products..." className="w-64" />
|
|
721
737
|
<Button variant="outline" size="icon">
|
|
722
738
|
<Filter className="h-4 w-4" />
|
|
723
739
|
</Button>
|
|
@@ -727,7 +743,7 @@ export function ProductsPage() {
|
|
|
727
743
|
{/* Grid */}
|
|
728
744
|
<ThingGrid things={products} columns={4} />
|
|
729
745
|
</div>
|
|
730
|
-
)
|
|
746
|
+
);
|
|
731
747
|
}
|
|
732
748
|
```
|
|
733
749
|
|
|
@@ -735,17 +751,18 @@ export function ProductsPage() {
|
|
|
735
751
|
|
|
736
752
|
```tsx
|
|
737
753
|
// frontend/src/pages/courses.tsx
|
|
738
|
-
import { ThingGrid } from
|
|
739
|
-
import { Badge } from
|
|
740
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from
|
|
754
|
+
import { ThingGrid } from "@/components/generic/ThingGrid";
|
|
755
|
+
import { Badge } from "@/components/ui/badge";
|
|
756
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|
741
757
|
|
|
742
758
|
export function CoursesPage() {
|
|
743
|
-
const { courses } = useCourses()
|
|
744
|
-
const [level, setLevel] = useState(
|
|
759
|
+
const { courses } = useCourses();
|
|
760
|
+
const [level, setLevel] = useState("all");
|
|
745
761
|
|
|
746
|
-
const filtered =
|
|
747
|
-
|
|
748
|
-
|
|
762
|
+
const filtered =
|
|
763
|
+
level === "all"
|
|
764
|
+
? courses
|
|
765
|
+
: courses.filter((c) => c.properties.level === level);
|
|
749
766
|
|
|
750
767
|
return (
|
|
751
768
|
<div className="container mx-auto py-8">
|
|
@@ -767,7 +784,7 @@ export function CoursesPage() {
|
|
|
767
784
|
{/* Course grid */}
|
|
768
785
|
<ThingGrid things={filtered} columns={3} />
|
|
769
786
|
</div>
|
|
770
|
-
)
|
|
787
|
+
);
|
|
771
788
|
}
|
|
772
789
|
```
|
|
773
790
|
|
|
@@ -775,15 +792,15 @@ export function CoursesPage() {
|
|
|
775
792
|
|
|
776
793
|
```tsx
|
|
777
794
|
// frontend/src/pages/blog.tsx
|
|
778
|
-
import { ThingCard } from
|
|
779
|
-
import { ThingCardFeatured } from
|
|
780
|
-
import { ThingList } from
|
|
795
|
+
import { ThingCard } from "@/components/generic/ThingCard";
|
|
796
|
+
import { ThingCardFeatured } from "@/components/generic/ThingCard.Featured";
|
|
797
|
+
import { ThingList } from "@/components/generic/ThingList";
|
|
781
798
|
|
|
782
799
|
export function BlogPage() {
|
|
783
|
-
const { posts } = usePosts()
|
|
800
|
+
const { posts } = usePosts();
|
|
784
801
|
|
|
785
|
-
const featured = posts.filter(p => p.properties.featured)
|
|
786
|
-
const regular = posts.filter(p => !p.properties.featured)
|
|
802
|
+
const featured = posts.filter((p) => p.properties.featured);
|
|
803
|
+
const regular = posts.filter((p) => !p.properties.featured);
|
|
787
804
|
|
|
788
805
|
return (
|
|
789
806
|
<div className="container mx-auto py-8">
|
|
@@ -792,7 +809,7 @@ export function BlogPage() {
|
|
|
792
809
|
<section className="mb-12">
|
|
793
810
|
<h2 className="text-2xl font-bold mb-6">Featured</h2>
|
|
794
811
|
<div className="grid grid-cols-2 gap-8">
|
|
795
|
-
{featured.map(post => (
|
|
812
|
+
{featured.map((post) => (
|
|
796
813
|
<ThingCardFeatured key={post._id} thing={post} />
|
|
797
814
|
))}
|
|
798
815
|
</div>
|
|
@@ -805,7 +822,7 @@ export function BlogPage() {
|
|
|
805
822
|
<ThingList things={regular} />
|
|
806
823
|
</section>
|
|
807
824
|
</div>
|
|
808
|
-
)
|
|
825
|
+
);
|
|
809
826
|
}
|
|
810
827
|
```
|
|
811
828
|
|
|
@@ -817,69 +834,74 @@ export function BlogPage() {
|
|
|
817
834
|
|
|
818
835
|
```tsx
|
|
819
836
|
// For large lists, use virtualization
|
|
820
|
-
import { useVirtualizer } from
|
|
837
|
+
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
821
838
|
|
|
822
839
|
export function VirtualizedThingGrid({ things }: { things: Thing[] }) {
|
|
823
|
-
const parentRef = useRef<HTMLDivElement>(null)
|
|
840
|
+
const parentRef = useRef<HTMLDivElement>(null);
|
|
824
841
|
|
|
825
842
|
const rowVirtualizer = useVirtualizer({
|
|
826
843
|
count: Math.ceil(things.length / 3),
|
|
827
844
|
getScrollElement: () => parentRef.current,
|
|
828
845
|
estimateSize: () => 400,
|
|
829
|
-
overscan: 5
|
|
830
|
-
})
|
|
846
|
+
overscan: 5,
|
|
847
|
+
});
|
|
831
848
|
|
|
832
849
|
return (
|
|
833
850
|
<div ref={parentRef} className="h-screen overflow-auto">
|
|
834
851
|
<div
|
|
835
852
|
style={{
|
|
836
853
|
height: `${rowVirtualizer.getTotalSize()}px`,
|
|
837
|
-
width:
|
|
838
|
-
position:
|
|
854
|
+
width: "100%",
|
|
855
|
+
position: "relative",
|
|
839
856
|
}}
|
|
840
857
|
>
|
|
841
|
-
{rowVirtualizer.getVirtualItems().map(virtualRow => {
|
|
842
|
-
const startIndex = virtualRow.index * 3
|
|
843
|
-
const rowThings = things.slice(startIndex, startIndex + 3)
|
|
858
|
+
{rowVirtualizer.getVirtualItems().map((virtualRow) => {
|
|
859
|
+
const startIndex = virtualRow.index * 3;
|
|
860
|
+
const rowThings = things.slice(startIndex, startIndex + 3);
|
|
844
861
|
|
|
845
862
|
return (
|
|
846
863
|
<div
|
|
847
864
|
key={virtualRow.index}
|
|
848
865
|
style={{
|
|
849
|
-
position:
|
|
866
|
+
position: "absolute",
|
|
850
867
|
top: 0,
|
|
851
868
|
left: 0,
|
|
852
|
-
width:
|
|
869
|
+
width: "100%",
|
|
853
870
|
height: `${virtualRow.size}px`,
|
|
854
|
-
transform: `translateY(${virtualRow.start}px)
|
|
871
|
+
transform: `translateY(${virtualRow.start}px)`,
|
|
855
872
|
}}
|
|
856
873
|
>
|
|
857
874
|
<div className="grid grid-cols-3 gap-6 p-6">
|
|
858
|
-
{rowThings.map(thing => (
|
|
875
|
+
{rowThings.map((thing) => (
|
|
859
876
|
<ThingCard key={thing._id} thing={thing} />
|
|
860
877
|
))}
|
|
861
878
|
</div>
|
|
862
879
|
</div>
|
|
863
|
-
)
|
|
880
|
+
);
|
|
864
881
|
})}
|
|
865
882
|
</div>
|
|
866
883
|
</div>
|
|
867
|
-
)
|
|
884
|
+
);
|
|
868
885
|
}
|
|
869
886
|
```
|
|
870
887
|
|
|
871
888
|
### Memoization
|
|
872
889
|
|
|
873
890
|
```tsx
|
|
874
|
-
import { memo } from
|
|
875
|
-
|
|
876
|
-
export const ThingCard = memo(
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
891
|
+
import { memo } from "react";
|
|
892
|
+
|
|
893
|
+
export const ThingCard = memo(
|
|
894
|
+
function ThingCard({ thing }: ThingCardProps) {
|
|
895
|
+
// ... implementation
|
|
896
|
+
},
|
|
897
|
+
(prevProps, nextProps) => {
|
|
898
|
+
// Custom comparison
|
|
899
|
+
return (
|
|
900
|
+
prevProps.thing._id === nextProps.thing._id &&
|
|
901
|
+
prevProps.thing.updatedAt === nextProps.thing.updatedAt
|
|
902
|
+
);
|
|
903
|
+
},
|
|
904
|
+
);
|
|
883
905
|
```
|
|
884
906
|
|
|
885
907
|
---
|
|
@@ -888,40 +910,42 @@ export const ThingCard = memo(function ThingCard({ thing }: ThingCardProps) {
|
|
|
888
910
|
|
|
889
911
|
```tsx
|
|
890
912
|
// frontend/src/components/generic/__tests__/ThingCard.test.tsx
|
|
891
|
-
import { render, screen } from
|
|
892
|
-
import { ThingCard } from
|
|
913
|
+
import { render, screen } from "@testing-library/react";
|
|
914
|
+
import { ThingCard } from "../ThingCard";
|
|
893
915
|
|
|
894
|
-
describe(
|
|
895
|
-
it(
|
|
916
|
+
describe("ThingCard", () => {
|
|
917
|
+
it("renders course card correctly", () => {
|
|
896
918
|
const course = {
|
|
897
|
-
_id:
|
|
898
|
-
type:
|
|
899
|
-
name:
|
|
919
|
+
_id: "1",
|
|
920
|
+
type: "course",
|
|
921
|
+
name: "Test Course",
|
|
900
922
|
properties: {
|
|
901
|
-
title:
|
|
902
|
-
description:
|
|
923
|
+
title: "Test Course",
|
|
924
|
+
description: "A test course",
|
|
903
925
|
price: 99,
|
|
904
|
-
level:
|
|
905
|
-
}
|
|
906
|
-
}
|
|
926
|
+
level: "beginner",
|
|
927
|
+
},
|
|
928
|
+
};
|
|
907
929
|
|
|
908
|
-
render(<ThingCard thing={course} />)
|
|
930
|
+
render(<ThingCard thing={course} />);
|
|
909
931
|
|
|
910
|
-
expect(screen.getByText(
|
|
911
|
-
expect(screen.getByText(
|
|
912
|
-
expect(screen.getByText(
|
|
913
|
-
})
|
|
932
|
+
expect(screen.getByText("Test Course")).toBeInTheDocument();
|
|
933
|
+
expect(screen.getByText("A test course")).toBeInTheDocument();
|
|
934
|
+
expect(screen.getByText("$99")).toBeInTheDocument();
|
|
935
|
+
});
|
|
914
936
|
|
|
915
|
-
it(
|
|
916
|
-
const onClick = vi.fn()
|
|
917
|
-
const thing = {
|
|
937
|
+
it("handles click events", () => {
|
|
938
|
+
const onClick = vi.fn();
|
|
939
|
+
const thing = {
|
|
940
|
+
/* ... */
|
|
941
|
+
};
|
|
918
942
|
|
|
919
|
-
render(<ThingCard thing={thing} onClick={onClick} />)
|
|
943
|
+
render(<ThingCard thing={thing} onClick={onClick} />);
|
|
920
944
|
|
|
921
|
-
fireEvent.click(screen.getByRole(
|
|
922
|
-
expect(onClick).toHaveBeenCalledWith(thing)
|
|
923
|
-
})
|
|
924
|
-
})
|
|
945
|
+
fireEvent.click(screen.getByRole("article"));
|
|
946
|
+
expect(onClick).toHaveBeenCalledWith(thing);
|
|
947
|
+
});
|
|
948
|
+
});
|
|
925
949
|
```
|
|
926
950
|
|
|
927
951
|
---
|