oneie 2.0.2 → 2.0.5

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.
Files changed (459) hide show
  1. package/AGENTS.md +245 -0
  2. package/CLAUDE.md +725 -0
  3. package/LICENSE.md +84 -0
  4. package/README.md +489 -931
  5. package/folders.yaml +78 -17
  6. package/one/.obsidian/app.json +1 -0
  7. package/one/.obsidian/appearance.json +1 -0
  8. package/one/.obsidian/core-plugins.json +33 -0
  9. package/one/.obsidian/workspace.json +211 -0
  10. package/one/connections/a2a.md +551 -0
  11. package/one/connections/acp.md +761 -0
  12. package/one/connections/acps.md +731 -0
  13. package/one/connections/agentkit.md +349 -0
  14. package/one/connections/agui.md +767 -0
  15. package/one/connections/any-backend.md +1702 -0
  16. package/one/connections/ap2.md +998 -0
  17. package/one/connections/api-docs.md +1891 -0
  18. package/one/connections/api.md +2190 -0
  19. package/one/connections/architecture-diagram.md +94 -0
  20. package/one/connections/communications.md +449 -0
  21. package/one/connections/connections.md +339 -0
  22. package/one/connections/copilotkit.md +1559 -0
  23. package/one/connections/cryptonetworks.md +781 -0
  24. package/one/connections/documentation.md +1120 -0
  25. package/one/connections/effect.md +279 -0
  26. package/one/connections/elizaos.md +1290 -0
  27. package/one/connections/inference.md +58 -0
  28. package/one/connections/kyc.md +632 -0
  29. package/one/connections/mcp.md +842 -0
  30. package/one/connections/membership.md +1152 -0
  31. package/one/connections/middleware.md +1067 -0
  32. package/one/connections/multitenant.md +1341 -0
  33. package/one/connections/n8n.md +1015 -0
  34. package/one/connections/patterns.md +89 -0
  35. package/one/connections/protocols.md +279 -0
  36. package/one/connections/relationships.md +107 -0
  37. package/one/connections/schema.md +587 -0
  38. package/one/connections/service-layer.md +550 -0
  39. package/one/connections/structure.md +0 -0
  40. package/one/connections/vectors.md +207 -0
  41. package/one/connections/wordpress.md +1302 -0
  42. package/one/connections/workflow-copy.md +905 -0
  43. package/one/connections/workflow-examples.md +741 -0
  44. package/one/connections/workflow.md +905 -0
  45. package/one/connections/workflows/delegation.md +885 -0
  46. package/one/connections/workflows/frontend.md +1037 -0
  47. package/one/connections/workflows/strategy.md +903 -0
  48. package/one/connections/workflows/tasks.md +698 -0
  49. package/one/connections/x402.md +1249 -0
  50. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +412 -0
  51. package/one/events/FEATURE-2-4-COMPLETE.md +302 -0
  52. package/one/events/FEATURE_2_3_COMPLETE.md +575 -0
  53. package/one/events/GROUPS-MIGRATION.md +625 -0
  54. package/one/events/INSTALL-TESTS.md +293 -0
  55. package/one/events/INTEGRATION-ARCHITECTURE.md +561 -0
  56. package/one/events/INTEGRATION-CHECKLIST.md +1234 -0
  57. package/one/events/INTEGRATION-ORCHESTRATION.md +2623 -0
  58. package/one/events/INTEGRATION-SUMMARY.md +653 -0
  59. package/one/events/MIGRATION-REPORT.md +435 -0
  60. package/one/events/MIGRATION.md +69 -0
  61. package/one/events/README-archived.md +519 -0
  62. package/one/events/TEST-SUMMARY.md +393 -0
  63. package/one/events/TESTS-QUICK-REF.md +262 -0
  64. package/one/events/events.md +545 -0
  65. package/one/groups/groups.md +543 -0
  66. package/one/groups/one.md +599 -0
  67. package/one/groups/revenue.md +673 -0
  68. package/one/groups/strategy.md +869 -0
  69. package/one/groups/vision.md +98 -0
  70. package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +49 -0
  71. package/one/knowledge/ai-platform.md +305 -0
  72. package/one/knowledge/architecture-any-backend.md +1366 -0
  73. package/one/knowledge/architecture-diagram.md +94 -0
  74. package/one/knowledge/architecture-frontend.md +930 -0
  75. package/one/knowledge/architecture.md +2077 -0
  76. package/one/knowledge/crypto.md +960 -0
  77. package/one/knowledge/docs/flow.md +0 -0
  78. package/one/knowledge/dsl.md +1660 -0
  79. package/one/knowledge/files.md +2471 -0
  80. package/one/knowledge/frontend.md +1038 -0
  81. package/one/knowledge/hono.md +2109 -0
  82. package/one/knowledge/implementation-examples.md +2536 -0
  83. package/one/knowledge/inference-score.md +159 -0
  84. package/one/knowledge/knowledge.md +642 -0
  85. package/one/knowledge/language.md +980 -0
  86. package/one/knowledge/lessons-learned.md +70 -0
  87. package/one/knowledge/ontology-6-dimensions.md +0 -0
  88. package/one/knowledge/ontology-documentation.md +356 -0
  89. package/one/knowledge/ontology-engineering-specification.md +1292 -0
  90. package/one/knowledge/ontology-engineering.md +1652 -0
  91. package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
  92. package/one/knowledge/ontology-frontend-copy.md +753 -0
  93. package/one/knowledge/ontology-frontend-specifications.md +2188 -0
  94. package/one/knowledge/ontology-frontend.md +2427 -0
  95. package/one/knowledge/ontology-minimal.yaml +299 -0
  96. package/one/knowledge/ontology.md +2830 -0
  97. package/one/knowledge/ontology.md.backup +2822 -0
  98. package/one/knowledge/ontology.yaml +1165 -0
  99. package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
  100. package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
  101. package/one/knowledge/patterns/backend/mutation-template.md +231 -0
  102. package/one/knowledge/patterns/backend/query-template.md +267 -0
  103. package/one/knowledge/patterns/backend/service-template.md +237 -0
  104. package/one/knowledge/patterns/design/component-architecture.md +399 -0
  105. package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
  106. package/one/knowledge/patterns/design/wireframe-template.md +216 -0
  107. package/one/knowledge/patterns/frontend/component-template.md +195 -0
  108. package/one/knowledge/patterns/frontend/form-template.md +276 -0
  109. package/one/knowledge/patterns/frontend/page-template.md +178 -0
  110. package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
  111. package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
  112. package/one/knowledge/patterns/test/technical-test-template.md +544 -0
  113. package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
  114. package/one/knowledge/patterns/test/user-flow-template.md +254 -0
  115. package/one/knowledge/provider-creation-guide.md +1064 -0
  116. package/one/knowledge/quality-loop.md +401 -0
  117. package/one/knowledge/readme.md +131 -0
  118. package/one/knowledge/rules.md +626 -0
  119. package/one/knowledge/score.md +67 -0
  120. package/one/knowledge/specifications.md +855 -0
  121. package/one/knowledge/tags.md +130 -0
  122. package/one/knowledge/todo.md +251 -0
  123. package/one/license.md +84 -0
  124. package/one/people/anthony-o-connell.md +440 -0
  125. package/one/people/people.md +567 -0
  126. package/one/things/CHECKLIST.md +356 -0
  127. package/one/things/ONE.md +510 -0
  128. package/one/things/agents/agent-backend.md +1401 -0
  129. package/one/things/agents/agent-builder.md +955 -0
  130. package/one/things/agents/agent-clean.md +709 -0
  131. package/one/things/agents/agent-clone.md +1341 -0
  132. package/one/things/agents/agent-designer.md +2177 -0
  133. package/one/things/agents/agent-director.md +1508 -0
  134. package/one/things/agents/agent-documenter.md +1049 -0
  135. package/one/things/agents/agent-frontend.md +1119 -0
  136. package/one/things/agents/agent-integrator.md +1192 -0
  137. package/one/things/agents/agent-problem-solver.md +1379 -0
  138. package/one/things/agents/agent-quality.md +1353 -0
  139. package/one/things/agents/agent-sales.md +986 -0
  140. package/one/things/cascade/cascade.yaml +464 -0
  141. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
  142. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
  143. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
  144. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
  145. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
  146. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
  147. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
  148. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
  149. package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
  150. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
  151. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
  152. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
  153. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
  154. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
  155. package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
  156. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
  157. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
  158. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
  159. package/one/things/cascade/docs/examples/readme.md +222 -0
  160. package/one/things/cascade/docs/getting-started.md +515 -0
  161. package/one/things/cascade/docs/workflow.md +1372 -0
  162. package/one/things/cascade/readme.md +336 -0
  163. package/one/things/cascade/templates/feature-template.md +267 -0
  164. package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
  165. package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
  166. package/one/things/claude/agents/analyst.md +483 -0
  167. package/one/things/claude/agents/architect.md +480 -0
  168. package/one/things/claude/agents/brand-identity-specialist.md +513 -0
  169. package/one/things/claude/agents/bstp-token-strategist.md +667 -0
  170. package/one/things/claude/agents/builder-repo.md +489 -0
  171. package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
  172. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
  173. package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
  174. package/one/things/claude/agents/company-bullstamp-character.md +587 -0
  175. package/one/things/claude/agents/company-bullstamp-community.md +292 -0
  176. package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
  177. package/one/things/claude/agents/company-bullstamp-token.md +292 -0
  178. package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
  179. package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
  180. package/one/things/claude/agents/content-calendar-planner.md +448 -0
  181. package/one/things/claude/agents/content-chapter-formatter.md +488 -0
  182. package/one/things/claude/agents/content-formatter.md +546 -0
  183. package/one/things/claude/agents/content-hook-specialist.md +462 -0
  184. package/one/things/claude/agents/content-image-formatter.md +535 -0
  185. package/one/things/claude/agents/content-introduction-formatter.md +485 -0
  186. package/one/things/claude/agents/content-multiplication-engine.md +556 -0
  187. package/one/things/claude/agents/content-playbook-writer.md +448 -0
  188. package/one/things/claude/agents/content-team-manager.md +622 -0
  189. package/one/things/claude/agents/content-toc-formatter.md +522 -0
  190. package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
  191. package/one/things/claude/agents/core-manager.md +582 -0
  192. package/one/things/claude/agents/core-master.md +403 -0
  193. package/one/things/claude/agents/cross-functional-manager.md +471 -0
  194. package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
  195. package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
  196. package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
  197. package/one/things/claude/agents/crypto-community-analyst.md +298 -0
  198. package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
  199. package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
  200. package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
  201. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
  202. package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
  203. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
  204. package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
  205. package/one/things/claude/agents/crypto-market-researcher.md +292 -0
  206. package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
  207. package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
  208. package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
  209. package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
  210. package/one/things/claude/agents/crypto-team-manager.md +387 -0
  211. package/one/things/claude/agents/crypto-token-analyst.md +278 -0
  212. package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
  213. package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
  214. package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
  215. package/one/things/claude/agents/customer-journey-designer.md +481 -0
  216. package/one/things/claude/agents/customer-success-manager.md +581 -0
  217. package/one/things/claude/agents/dev.md +413 -0
  218. package/one/things/claude/agents/documenter.md +546 -0
  219. package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
  220. package/one/things/claude/agents/engagement-specialist.md +509 -0
  221. package/one/things/claude/agents/engineering-architect.md +387 -0
  222. package/one/things/claude/agents/engineering-business-analyst.md +537 -0
  223. package/one/things/claude/agents/engineering-developer.md +387 -0
  224. package/one/things/claude/agents/engineering-director.md +282 -0
  225. package/one/things/claude/agents/engineering-ingestor.md +649 -0
  226. package/one/things/claude/agents/engineering-product-manager.md +537 -0
  227. package/one/things/claude/agents/engineering-product-owner.md +537 -0
  228. package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
  229. package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
  230. package/one/things/claude/agents/engineering-team-manager.md +512 -0
  231. package/one/things/claude/agents/engineering-user-experience.md +387 -0
  232. package/one/things/claude/agents/framework-elevate-manager.md +294 -0
  233. package/one/things/claude/agents/improver.md +763 -0
  234. package/one/things/claude/agents/intelligence-team-manager.md +385 -0
  235. package/one/things/claude/agents/lead-capture-expert.md +466 -0
  236. package/one/things/claude/agents/lead-magnet-creator.md +453 -0
  237. package/one/things/claude/agents/market-research-analyst.md +412 -0
  238. package/one/things/claude/agents/marketing-brand-identity.md +314 -0
  239. package/one/things/claude/agents/marketing-content-hooks.md +450 -0
  240. package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
  241. package/one/things/claude/agents/marketing-content-poster.md +361 -0
  242. package/one/things/claude/agents/marketing-customer-journey.md +326 -0
  243. package/one/things/claude/agents/marketing-director.md +397 -0
  244. package/one/things/claude/agents/marketing-engagement.md +326 -0
  245. package/one/things/claude/agents/marketing-lead-capture.md +326 -0
  246. package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
  247. package/one/things/claude/agents/marketing-network-effects.md +326 -0
  248. package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
  249. package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
  250. package/one/things/claude/agents/marketing-team-manager.md +446 -0
  251. package/one/things/claude/agents/marketing-viral-growth.md +201 -0
  252. package/one/things/claude/agents/mission-commander.md +373 -0
  253. package/one/things/claude/agents/network-effect-analyst.md +587 -0
  254. package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
  255. package/one/things/claude/agents/npx.md +890 -0
  256. package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
  257. package/one/things/claude/agents/one-master.md +355 -0
  258. package/one/things/claude/agents/one-orchestrator.md +315 -0
  259. package/one/things/claude/agents/one.md +601 -0
  260. package/one/things/claude/agents/playbook-generator.md +503 -0
  261. package/one/things/claude/agents/pm.md +326 -0
  262. package/one/things/claude/agents/po.md +345 -0
  263. package/one/things/claude/agents/qa.md +336 -0
  264. package/one/things/claude/agents/research-foundation-analyst.md +307 -0
  265. package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
  266. package/one/things/claude/agents/research-market-analyst.md +307 -0
  267. package/one/things/claude/agents/research-team-manager.md +482 -0
  268. package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
  269. package/one/things/claude/agents/sales-team-manager.md +400 -0
  270. package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
  271. package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
  272. package/one/things/claude/agents/service-advocacy-manager.md +307 -0
  273. package/one/things/claude/agents/service-success-manager.md +307 -0
  274. package/one/things/claude/agents/service-team-manager.md +400 -0
  275. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
  276. package/one/things/claude/agents/share-optimization-specialist.md +551 -0
  277. package/one/things/claude/agents/sm.md +327 -0
  278. package/one/things/claude/agents/story-teller.md +473 -0
  279. package/one/things/claude/agents/task-master.md +596 -0
  280. package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
  281. package/one/things/claude/agents/tester.md +556 -0
  282. package/one/things/claude/agents/the-bull-character-manager.md +580 -0
  283. package/one/things/claude/agents/tools-playbook-generator.md +489 -0
  284. package/one/things/claude/agents/turbo-repo-builder.md +316 -0
  285. package/one/things/claude/agents/upsell-strategist.md +480 -0
  286. package/one/things/claude/agents/ux-expert.md +335 -0
  287. package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
  288. package/one/things/claude/claude-code-hooks-development.json +21 -0
  289. package/one/things/claude/claude-code-hooks-production.json +21 -0
  290. package/one/things/claude/claude-code-hooks.json +25 -0
  291. package/one/things/claude/commands/agent.md +104 -0
  292. package/one/things/claude/commands/cascade-status.md +128 -0
  293. package/one/things/claude/commands/ingest.md +290 -0
  294. package/one/things/claude/commands/ingestor.md +136 -0
  295. package/one/things/claude/commands/mission.md +83 -0
  296. package/one/things/claude/commands/npx.md +133 -0
  297. package/one/things/claude/commands/one.md +440 -0
  298. package/one/things/claude/commands/quality-check.md +204 -0
  299. package/one/things/claude/commands/smart-route.md +220 -0
  300. package/one/things/claude/commands/start.md +121 -0
  301. package/one/things/claude/commands/story.md +83 -0
  302. package/one/things/claude/commands/task.md +173 -0
  303. package/one/things/claude/hook-bypass.json +32 -0
  304. package/one/things/claude/hooks/agent-hook-config.json +427 -0
  305. package/one/things/claude/hooks/agent-hook-manager.js +525 -0
  306. package/one/things/claude/hooks/agent-load-balancer.js +271 -0
  307. package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
  308. package/one/things/claude/hooks/build-hook.sh +156 -0
  309. package/one/things/claude/hooks/cascade-feedback.js +297 -0
  310. package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
  311. package/one/things/claude/hooks/cleanup-hook.sh +201 -0
  312. package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
  313. package/one/things/claude/hooks/file-organization-engine.js +427 -0
  314. package/one/things/claude/hooks/file-organization-hook.sh +80 -0
  315. package/one/things/claude/hooks/file-organization-monitor.js +269 -0
  316. package/one/things/claude/hooks/format-hook.sh +43 -0
  317. package/one/things/claude/hooks/hook-bypass.sh +293 -0
  318. package/one/things/claude/hooks/hook-config-manager.js +202 -0
  319. package/one/things/claude/hooks/hook-debouncer.sh +62 -0
  320. package/one/things/claude/hooks/hook-logger.sh +89 -0
  321. package/one/things/claude/hooks/hook-orchestrator.js +662 -0
  322. package/one/things/claude/hooks/hook-performance-report.js +120 -0
  323. package/one/things/claude/hooks/lint-hook.sh +140 -0
  324. package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
  325. package/one/things/claude/hooks/memory-optimizer.js +510 -0
  326. package/one/things/claude/hooks/notification-hook.sh +204 -0
  327. package/one/things/claude/hooks/ontology-compliance.js +394 -0
  328. package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
  329. package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
  330. package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
  331. package/one/things/claude/hooks/performance-metrics.json +25 -0
  332. package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
  333. package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
  334. package/one/things/claude/hooks/security-hook.sh +256 -0
  335. package/one/things/claude/hooks/simple-load-balancer.js +238 -0
  336. package/one/things/claude/hooks/startup-optimizer.js +625 -0
  337. package/one/things/claude/hooks/story-scoring-system.js +445 -0
  338. package/one/things/claude/hooks/story-validation-engine.js +473 -0
  339. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
  340. package/one/things/claude/hooks/story-validation-hook.sh +145 -0
  341. package/one/things/claude/hooks/structure-synchronizer.js +194 -0
  342. package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
  343. package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
  344. package/one/things/claude/hooks/test-hook.sh +145 -0
  345. package/one/things/claude/hooks/test-story-validation.sh +170 -0
  346. package/one/things/claude/hooks/trinity-validation-system.js +392 -0
  347. package/one/things/claude/settings-local.json +86 -0
  348. package/one/things/cli/cli-code.md +652 -0
  349. package/one/things/cli/cli-compiler-code.md +652 -0
  350. package/one/things/cli/cli.md +1068 -0
  351. package/one/things/components/card-shadcn.md +929 -0
  352. package/one/things/components/card.md +1050 -0
  353. package/one/things/components.md +1669 -0
  354. package/one/things/componets.md +4 -0
  355. package/one/things/creator-diagram.md +166 -0
  356. package/one/things/examples/children/lemonade-stand.md +366 -0
  357. package/one/things/examples/enterprise/crm-saas.md +1429 -0
  358. package/one/things/features/1-1-agent-prompts/design.md +470 -0
  359. package/one/things/features/1-1-agent-prompts/tests.md +264 -0
  360. package/one/things/features/1-1-agent-prompts.md +486 -0
  361. package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
  362. package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
  363. package/one/things/features/1-2-yaml-orchestrator.md +516 -0
  364. package/one/things/features/1-3-event-coordination/design.md +544 -0
  365. package/one/things/features/1-3-event-coordination/tests.md +223 -0
  366. package/one/things/features/1-3-event-coordination.md +508 -0
  367. package/one/things/features/1-4-knowledge-management/design.md +609 -0
  368. package/one/things/features/1-4-knowledge-management/tests.md +195 -0
  369. package/one/things/features/1-4-knowledge-management.md +577 -0
  370. package/one/things/features/1-5-quality-loops/design.md +797 -0
  371. package/one/things/features/1-5-quality-loops/tests.md +212 -0
  372. package/one/things/features/1-5-quality-loops.md +641 -0
  373. package/one/things/features/1-6-numbering-structure/design.md +610 -0
  374. package/one/things/features/1-6-numbering-structure/tests.md +213 -0
  375. package/one/things/features/1-6-numbering-structure.md +575 -0
  376. package/one/things/features/2-1-dataprovider-interface.md +2358 -0
  377. package/one/things/features/2-2-config-system.md +3075 -0
  378. package/one/things/features/2-3-effectts-services.md +1498 -0
  379. package/one/things/features/2-4-react-hooks.md +2120 -0
  380. package/one/things/features/2-5-auth-migration.md +2046 -0
  381. package/one/things/features/2-6-dashboard-migration.md +1985 -0
  382. package/one/things/features/2-7-alternative-providers.md +2505 -0
  383. package/one/things/features/2-7-implementation-report.md +680 -0
  384. package/one/things/features/2-cli.md +1235 -0
  385. package/one/things/features/2-design.md +1738 -0
  386. package/one/things/features/2-tests.md +520 -0
  387. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +521 -0
  388. package/one/things/features/DECOUPLING.md +272 -0
  389. package/one/things/features/DEPLOYMENT.md +452 -0
  390. package/one/things/features/IMPLEMENTATION_SUMMARY.md +316 -0
  391. package/one/things/features/dataprovider-interface/1-tests.md +1522 -0
  392. package/one/things/features/improve.md +843 -0
  393. package/one/things/features/remove-convex-deps.md +45 -0
  394. package/one/things/features/top-features.md +79 -0
  395. package/one/things/features/use-one-backend.md +1180 -0
  396. package/one/things/ideas/1-create-workflow.md +189 -0
  397. package/one/things/ideas/2-backend-agnostic-frontend.md +384 -0
  398. package/one/things/plans/1-create-workflow-status.md +555 -0
  399. package/one/things/plans/1-create-workflow.md +713 -0
  400. package/one/things/plans/2-backend-agnostic-frontend.md +543 -0
  401. package/one/things/plans/3-groups.md +502 -0
  402. package/one/things/plans/app.md +761 -0
  403. package/one/things/plans/backend-agnostic-frontend.md +323 -0
  404. package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
  405. package/one/things/plans/better-auth-any-backend.md +1852 -0
  406. package/one/things/plans/better-auth-available-features.md +235 -0
  407. package/one/things/plans/big-plan.md +38 -0
  408. package/one/things/plans/convex-better-auth.md +1109 -0
  409. package/one/things/plans/convex-on-off.md +389 -0
  410. package/one/things/plans/deploy-to-cloudflare.md +581 -0
  411. package/one/things/plans/desktop.md +1121 -0
  412. package/one/things/plans/effect-components.md +1669 -0
  413. package/one/things/plans/effect.md +973 -0
  414. package/one/things/plans/email.md +953 -0
  415. package/one/things/plans/enhance-auth.md +1669 -0
  416. package/one/things/plans/install-components.md +198 -0
  417. package/one/things/plans/landing.md +728 -0
  418. package/one/things/plans/layout.md +205 -0
  419. package/one/things/plans/mail-backend.md +1308 -0
  420. package/one/things/plans/mail.md +2624 -0
  421. package/one/things/plans/next-features.md +83 -0
  422. package/one/things/plans/one.md +658 -0
  423. package/one/things/plans/ontology-6-dimensions.md +2216 -0
  424. package/one/things/plans/ontology-driven-strategy.md +866 -0
  425. package/one/things/plans/ontology-ui-approach.md +357 -0
  426. package/one/things/plans/open-agent.md +785 -0
  427. package/one/things/plans/organizations-to-groups.md +705 -0
  428. package/one/things/plans/performace.md +90 -0
  429. package/one/things/plans/release.md +432 -0
  430. package/one/things/plans/releases.md +809 -0
  431. package/one/things/plans/repos.md +76 -0
  432. package/one/things/plans/separate-copy-2.md +1293 -0
  433. package/one/things/plans/separate-copy-3.md +2458 -0
  434. package/one/things/plans/separate-copy.md +1293 -0
  435. package/one/things/plans/separate.md +1983 -0
  436. package/one/things/plans/shadcn-integration-summary.md +450 -0
  437. package/one/things/plans/sidebar.md +172 -0
  438. package/one/things/plans/small-fixes.md +5 -0
  439. package/one/things/plans/test-backend-connection.md +476 -0
  440. package/one/things/plans/workflow-files.md +1196 -0
  441. package/one/things/plans/workflow.md +1372 -0
  442. package/one/things/products/cascade-landing-page.md +737 -0
  443. package/one/things/products/cascade.md +1518 -0
  444. package/one/things/products/context-engineering.md +1427 -0
  445. package/one/things/products/onthology.md +0 -0
  446. package/one/things/products/ontology-ui-shadcn.md +1280 -0
  447. package/one/things/products/ontology-ui.md +1387 -0
  448. package/one/things/products/ontology.md +717 -0
  449. package/one/things/products/sdk.md +557 -0
  450. package/one/things/promptkit.md +903 -0
  451. package/one/things/service-providers-new.md +982 -0
  452. package/one/things/service-providers.md +1092 -0
  453. package/one/things/system.md +600 -0
  454. package/one/things/tests/2-1-dataprovider-interface.md +1144 -0
  455. package/one/things/tests/2-1-test-analysis.md +496 -0
  456. package/one/things/things.md +349 -0
  457. package/one/things/todo.md +1248 -0
  458. package/one/things/vision/elegant-interface.md +214 -0
  459. package/package.json +5 -2
@@ -0,0 +1,761 @@
1
+ # App Interface Plan: Matching Figma Design
2
+
3
+ ## Vision
4
+
5
+ Transform the mail UI into `src/pages/app/index.astro` - matching the exact Figma design at `/public/screenshots/App.png`. A clean, minimal 3-panel interface where users interact with **things, connections, events, and tags**.
6
+
7
+ ## Design Analysis (from Figma)
8
+
9
+ ### Layout Structure
10
+
11
+ ```
12
+ ┌──────────────────────────────────────────────────────────────────────────────┐
13
+ │ ┌─────────────┬────────────────────────┬──────────────────────────────┐ │
14
+ │ │ │ │ │ │
15
+ │ │ LEFT │ MIDDLE PANEL │ RIGHT PANEL │ │
16
+ │ │ SIDEBAR │ (List View) │ (Detail View) │ │
17
+ │ │ │ │ │ │
18
+ │ │ Profile │ [Now|Top|ToDo|Done] │ ┌────────────────────┐ │ │
19
+ │ │ + Avatar │ │ │ 📧 Company │ │ │
20
+ │ │ │ [Search............] │ │ Subtitle │ │ │
21
+ │ │ ● Messages │ │ └────────────────────┘ │ │
22
+ │ │ 128 │ [Hook] [Gift] │ │ │
23
+ │ │ │ │ [Avatar Group] │ │
24
+ │ │ □ Groups │ ┌─────────────────┐ │ Message content... │ │
25
+ │ │ 9 │ │ Company 1min│ │ Message content... │ │
26
+ │ │ │ │ Character CHS │ │ Message content... │ │
27
+ │ │ 👥 Agents │ │ Gather insight..│ │ │ │
28
+ │ │ 20 │ │ [Found][Company]│ │ Thanks, Emily │ │
29
+ │ │ │ └─────────────────┘ │ │ │
30
+ │ │ ⚙ Tools │ ┌─────────────────┐ │ [Add][Reply][Forward]... │ │
31
+ │ │ 10 │ │ Welcome 2days│ │ │ │
32
+ │ │ │ │ Weekend Plans │ │ @Teacher One @Anthony │ │
33
+ │ │ 👤 People │ │ Any plans for...│ │ │ │
34
+ │ │ 128 │ │ [Weekend][Work] │ │ [Add][Invite][Share]... │ │
35
+ │ │ │ └─────────────────┘ │ │ │
36
+ │ │ │ ┌─────────────────┐ │ │ │
37
+ │ │ │ │ Marketer ● 3day│ │ │ │
38
+ │ │ │ │ Re: Question... │ │ │ │
39
+ │ │ │ │ [Budget][About] │ │ │ │
40
+ │ └─────────────┴────────────────────────┴──────────────────────────────┘ │
41
+ │ │
42
+ │ Bottom Categories: Hook, Gift, Identify, Engage, Sell, Nurture, Upsell... │
43
+ └──────────────────────────────────────────────────────────────────────────────┘
44
+ ```
45
+
46
+ ## Key Design Elements to Match
47
+
48
+ ### 1. Left Sidebar (Narrow, Icon + Text)
49
+
50
+ **Design:**
51
+ - Fixed narrow width (~250px)
52
+ - White background with subtle borders
53
+ - Profile section at top with avatar + name + dropdown
54
+ - Navigation items with:
55
+ - Icon on left
56
+ - Label in middle
57
+ - Count badge on right
58
+ - Active state: black background, white text, rounded
59
+ - Inactive: gray text, hover effect
60
+
61
+ **Navigation Items:**
62
+ ```
63
+ - Messages (128) [active: black bg]
64
+ - Groups (9)
65
+ - Agents (20)
66
+ - Tools (10)
67
+ - People (128)
68
+ ```
69
+
70
+ **Ontology Mapping:**
71
+ ```
72
+ Messages → Things (all entities)
73
+ Groups → Org View (organization-scoped)
74
+ Agents → AI Agents (type: "agent")
75
+ Tools → Protocols (integrations/services)
76
+ People → Users (type: "user")
77
+ ```
78
+
79
+ ### 2. Middle Panel (List View)
80
+
81
+ **Top Section:**
82
+ - **Tabs:** `Now | Top | ToDo | Done` (horizontal tabs, subtle)
83
+ - **Search:** Full-width search input with icon
84
+ - **Filter Pills:** Black rounded pills (e.g., "Hook", "Gift")
85
+
86
+ **List Items Design:**
87
+ ```
88
+ ┌─────────────────────────────────────┐
89
+ │ Title timestamp │
90
+ │ Character Code (e.g., CHS) │
91
+ │ Subtitle/description │
92
+ │ Preview text truncated... │
93
+ │ [Tag1] [Tag2] [Tag3] │ ← Black rounded pills
94
+ └─────────────────────────────────────┘
95
+ ```
96
+
97
+ **Features:**
98
+ - Blue dot (●) for unread/new items
99
+ - White background cards with border
100
+ - Hover effect
101
+ - Selected state: subtle background change
102
+ - Timestamp on top right
103
+ - Tags as black pills at bottom
104
+
105
+ ### 3. Right Panel (Detail View)
106
+
107
+ **Header:**
108
+ ```
109
+ ┌──────────────────────────────┐
110
+ │ 📧 Title │
111
+ │ Subtitle/description │
112
+ └──────────────────────────────┘
113
+ ```
114
+
115
+ **Content Area:**
116
+ - Avatar groups (overlapping circles)
117
+ - Message threads/content
118
+ - Clean typography
119
+ - Spacious padding
120
+
121
+ **Action Buttons:**
122
+ - **Primary row:** `Add | Reply | Forward | Share | Save | Copy | Complete`
123
+ - **Secondary row:** `Add | Invite | Share | Save | Complete`
124
+ - All buttons are subtle, minimal style
125
+
126
+ **@Mentions Section:**
127
+ - Pills with @ symbol
128
+ - e.g., `@Teacher One` `@Anthony O'Connell`
129
+
130
+ ### 4. Bottom Categories
131
+
132
+ **Design:**
133
+ - Horizontal list of category names
134
+ - Subtle text, minimal style
135
+ - Categories: Hook, Gift, Identify, Engage, Sell, Nurture, Upsell, Educate, Share
136
+
137
+ ## Figma → Ontology Mapping
138
+
139
+ ```
140
+ ┌─────────────────────────────────────────────────────────────┐
141
+ │ FIGMA DESIGN → ONTOLOGY APP │
142
+ ├─────────────────────────────────────────────────────────────┤
143
+ │ Profile + Avatar → User Context + Org Switcher │
144
+ │ "Anthony O'Connell" Current user + active org │
145
+ ├─────────────────────────────────────────────────────────────┤
146
+ │ Messages (128) → Things View │
147
+ │ Groups (9) → Org Things / Workspaces │
148
+ │ Agents (20) → AI Agents (type: "agent") │
149
+ │ Tools (10) → Protocols / Integrations │
150
+ │ People (128) → Users (type: "user") │
151
+ ├─────────────────────────────────────────────────────────────┤
152
+ │ Now | Top | ToDo | Done → Entity Filters │
153
+ │ - Now: Recent/active │
154
+ │ - Top: Most important/starred │
155
+ │ - ToDo: Status = "pending" │
156
+ │ - Done: Status = "completed" │
157
+ ├─────────────────────────────────────────────────────────────┤
158
+ │ Hook, Gift pills → Ontology Stages │
159
+ │ (filter buttons) Hook → Identify → Engage... │
160
+ │ (The 8 customer journey stages)│
161
+ ├─────────────────────────────────────────────────────────────┤
162
+ │ Card: Company → Thing Entity Card │
163
+ │ - Character CHS - Type indicator │
164
+ │ - "Gather insight..." - Name + description │
165
+ │ - [Foundation][Company] - Tags from `tags` table │
166
+ ├─────────────────────────────────────────────────────────────┤
167
+ │ Detail: Message thread → Entity Detail + Activity │
168
+ │ - Avatar groups - Connected users │
169
+ │ - Content - Properties + data │
170
+ │ - Actions - CRUD operations │
171
+ │ - @mentions - Related entities │
172
+ └─────────────────────────────────────────────────────────────┘
173
+ ```
174
+
175
+ ## File Cloning Strategy
176
+
177
+ ### Phase 1: Clone Core Structure
178
+
179
+ ```bash
180
+ # 1. Create app directory structure
181
+ mkdir -p src/pages/app
182
+ mkdir -p src/components/app
183
+ mkdir -p src/data/app-data.ts
184
+ mkdir -p src/layouts/AppLayout.astro
185
+
186
+ # 2. Clone files with new names
187
+ src/pages/mail.astro → src/pages/app/index.astro
188
+ src/layouts/MailLayout.astro → src/layouts/AppLayout.astro
189
+ src/components/mail/MailLayout.tsx → src/components/app/AppLayout.tsx
190
+ src/components/mail/MailList.tsx → src/components/app/EntityList.tsx
191
+ src/components/mail/MailDisplay.tsx → src/components/app/EntityDisplay.tsx
192
+ src/components/mail/use-mail.ts → src/components/app/use-app.ts
193
+ src/data/mail-data.ts → src/data/app-data.ts
194
+ ```
195
+
196
+ ### Phase 2: Data Layer (Match Figma Design)
197
+
198
+ **Card Data Structure:**
199
+ ```typescript
200
+ import { type Id } from "@/convex/_generated/dataModel"
201
+
202
+ export interface EntityCard {
203
+ _id: Id<"things">
204
+
205
+ // Card display
206
+ title: string // e.g., "Company"
207
+ characterCode?: string // e.g., "CHS" (Character High Status?)
208
+ subtitle: string // e.g., "Gather insight and data for your company"
209
+ preview: string // First line of content/description
210
+
211
+ // Metadata
212
+ timestamp: number // For "1 min ago", "2 days ago"
213
+ unread: boolean // Blue dot indicator
214
+
215
+ // Tags (black pills)
216
+ tags: string[] // e.g., ["Foundation", "Company"]
217
+
218
+ // Ontology data
219
+ type: string // "company", "agent", "course", etc.
220
+ status: "now" | "top" | "todo" | "done"
221
+
222
+ // Full entity data
223
+ properties: Record<string, any>
224
+ createdAt: number
225
+ updatedAt: number
226
+ createdBy?: Id<"things">
227
+
228
+ // Computed fields
229
+ connectionCount?: number
230
+ recentActivityCount?: number
231
+ }
232
+
233
+ // Left sidebar navigation
234
+ export type NavigationView =
235
+ | "messages" // All things
236
+ | "groups" // Org-scoped things
237
+ | "agents" // type: "agent"
238
+ | "tools" // Protocols/integrations
239
+ | "people" // type: "user"
240
+
241
+ // Top tabs in middle panel
242
+ export type StatusFilter = "now" | "top" | "todo" | "done"
243
+
244
+ // Customer journey stages (filter pills)
245
+ export const JOURNEY_STAGES = [
246
+ "Hook",
247
+ "Gift",
248
+ "Identify",
249
+ "Engage",
250
+ "Sell",
251
+ "Nurture",
252
+ "Upsell",
253
+ "Educate",
254
+ "Share"
255
+ ] as const
256
+
257
+ export type JourneyStage = typeof JOURNEY_STAGES[number]
258
+ ```
259
+
260
+ ### Phase 3: State Management (Figma-Aligned)
261
+
262
+ **New:** `src/components/app/use-app.ts`
263
+ ```typescript
264
+ import { atom, useAtom } from "jotai"
265
+ import { type Id } from "@/convex/_generated/dataModel"
266
+ import { type NavigationView, type StatusFilter, type JourneyStage } from "@/data/app-data"
267
+
268
+ type AppState = {
269
+ // Left sidebar navigation
270
+ activeView: NavigationView // "messages" | "groups" | "agents" | "tools" | "people"
271
+
272
+ // Middle panel filters
273
+ statusFilter: StatusFilter // "now" | "top" | "todo" | "done"
274
+ journeyStages: JourneyStage[] // ["Hook", "Gift", ...] selected pills
275
+ searchQuery: string
276
+
277
+ // Selected entity
278
+ selectedEntityId: Id<"things"> | null
279
+
280
+ // UI state
281
+ showDetail: boolean // Show right panel (mobile)
282
+ }
283
+
284
+ const appStateAtom = atom<AppState>({
285
+ activeView: "messages",
286
+ statusFilter: "now",
287
+ journeyStages: [],
288
+ searchQuery: "",
289
+ selectedEntityId: null,
290
+ showDetail: false,
291
+ })
292
+
293
+ export function useApp() {
294
+ return useAtom(appStateAtom)
295
+ }
296
+ ```
297
+
298
+ ### Phase 4: Component Transformations (Exact Figma Match)
299
+
300
+ #### 4.1 ProfileHeader (Top of Left Sidebar)
301
+
302
+ **Design from Figma:**
303
+ ```
304
+ ┌─────────────────────────┐
305
+ │ M Anthony O'Connell ▼ │ ← Avatar + Name + Dropdown
306
+ └─────────────────────────┘
307
+ ```
308
+
309
+ **Component:** `src/components/app/ProfileHeader.tsx`
310
+ ```typescript
311
+ interface ProfileHeaderProps {
312
+ user: {
313
+ name: string
314
+ avatar?: string
315
+ email: string
316
+ }
317
+ orgs: { id: string; name: string }[]
318
+ activeOrg?: string
319
+ onOrgChange: (orgId: string) => void
320
+ }
321
+
322
+ // Renders:
323
+ // - Avatar with first initial
324
+ // - User name
325
+ // - Dropdown for org switching
326
+ // - Dropdown styling matches Figma exactly
327
+ ```
328
+
329
+ #### 4.2 Navigation (Left Sidebar Items)
330
+
331
+ **Design from Figma:**
332
+ ```
333
+ ● Messages 128 ← Active: black bg, white text
334
+ □ Groups 9
335
+ 👥 Agents 20
336
+ ⚙ Tools 10
337
+ 👤 People 128
338
+ ```
339
+
340
+ **Component:** `src/components/app/Navigation.tsx`
341
+ ```typescript
342
+ const navigationItems = [
343
+ {
344
+ id: "messages",
345
+ icon: MessageSquare, // or custom message icon
346
+ label: "Messages",
347
+ count: 128, // Total things count
348
+ active: true, // Black background style
349
+ },
350
+ {
351
+ id: "groups",
352
+ icon: Grid3x3, // or folder icon
353
+ label: "Groups",
354
+ count: 9, // Orgs/workspaces count
355
+ },
356
+ {
357
+ id: "agents",
358
+ icon: Bot, // AI agent icon
359
+ label: "Agents",
360
+ count: 20, // Agents count
361
+ },
362
+ {
363
+ id: "tools",
364
+ icon: Wrench, // Tools/integrations icon
365
+ label: "Tools",
366
+ count: 10, // Protocols count
367
+ },
368
+ {
369
+ id: "people",
370
+ icon: Users, // People icon
371
+ label: "People",
372
+ count: 128, // Users count
373
+ },
374
+ ]
375
+
376
+ // Styling:
377
+ // Active: bg-black text-white rounded-lg
378
+ // Inactive: text-gray-600 hover:bg-gray-100
379
+ // Count badge: text-sm text-gray-500 ml-auto
380
+ ```
381
+
382
+ #### 4.3 EntityCard (Middle Panel List Items)
383
+
384
+ **Design from Figma:**
385
+ ```
386
+ ┌──────────────────────────────────┐
387
+ │ Company 1 min ago │ ← Title + Timestamp
388
+ │ Character CHS │ ← Subtitle/code
389
+ │ Gather insight and data for... │ ← Description/preview
390
+ │ [Foundation] [Company] │ ← Black pill tags
391
+ │ ● │ ← Blue dot if unread
392
+ └──────────────────────────────────┘
393
+ ```
394
+
395
+ **Component:** `src/components/app/EntityCard.tsx`
396
+ ```typescript
397
+ interface EntityCardProps {
398
+ title: string // "Company"
399
+ characterCode?: string // "CHS"
400
+ subtitle: string // "Gather insight and data for your company"
401
+ preview?: string // First line of description
402
+ timestamp: number // For "1 min ago"
403
+ tags: string[] // ["Foundation", "Company"]
404
+ unread?: boolean // Blue dot
405
+ selected?: boolean // Background highlight
406
+ onClick: () => void
407
+ }
408
+
409
+ // Styling:
410
+ // - White bg with border, rounded corners
411
+ // - Hover: slight background change
412
+ // - Selected: bg-muted
413
+ // - Title: font-semibold
414
+ // - Timestamp: text-xs text-muted-foreground, top-right
415
+ // - Character code: text-sm
416
+ // - Tags: BLACK pills (bg-black text-white rounded-full px-2 py-1 text-xs)
417
+ // - Blue dot: absolute top-right, bg-blue-500 w-2 h-2 rounded-full
418
+ ```
419
+
420
+ #### 4.4 EntityDisplay (Right Panel)
421
+
422
+ **Design from Figma:**
423
+ ```
424
+ ┌────────────────────────────────┐
425
+ │ 📧 Company │ ← Icon + Title
426
+ │ Gather insight and data... │ ← Subtitle
427
+ ├────────────────────────────────┤
428
+ │ [Avatar Group - 3 people] │ ← Overlapping avatars
429
+ │ │
430
+ │ Hi, let's have a meeting... │ ← Message/content thread
431
+ │ Hi, let's have a meeting... │
432
+ │ Hi, let's have a meeting... │
433
+ │ │
434
+ │ Thanks, Emily │
435
+ ├────────────────────────────────┤
436
+ │ Add Reply Forward Share Save │ ← Action buttons row
437
+ │ Copy Complete │
438
+ ├────────────────────────────────┤
439
+ │ @Teacher One @Anthony O'Connell│ ← @mentions
440
+ ├────────────────────────────────┤
441
+ │ Add Invite Share Save Complete │ ← Secondary actions
442
+ └────────────────────────────────┘
443
+ ```
444
+
445
+ **Component:** `src/components/app/EntityDisplay.tsx`
446
+ ```typescript
447
+ interface EntityDisplayProps {
448
+ entity: EntityCard | null
449
+ }
450
+
451
+ // Structure:
452
+ // 1. Header (icon + title + subtitle)
453
+ // 2. Content area:
454
+ // - Avatar group (connected users/agents)
455
+ // - Message thread / entity activity
456
+ // - Properties display
457
+ // 3. Action bar 1: Add | Reply | Forward | Share | Save | Copy | Complete
458
+ // 4. @Mentions section (related entities)
459
+ // 5. Action bar 2: Add | Invite | Share | Save | Complete
460
+
461
+ // Styling:
462
+ // - Clean, minimal
463
+ // - Spacious padding
464
+ // - Action buttons: text-only, subtle hover
465
+ // - @mentions: bg-muted rounded-full px-3 py-1 text-sm
466
+ ```
467
+
468
+ #### 4.5 StatusTabs (Middle Panel Top)
469
+
470
+ **Design from Figma:**
471
+ ```
472
+ [Now] [Top] [ToDo] [Done]
473
+ ```
474
+
475
+ **Component:** `src/components/app/StatusTabs.tsx`
476
+ ```typescript
477
+ const statusTabs = [
478
+ { value: "now", label: "Now" },
479
+ { value: "top", label: "Top" },
480
+ { value: "todo", label: "ToDo" },
481
+ { value: "done", label: "Done" },
482
+ ]
483
+
484
+ // Renders:
485
+ // - Horizontal tabs (subtle style)
486
+ // - Active tab: underline or subtle background
487
+ // - Changes `statusFilter` in app state
488
+ ```
489
+
490
+ #### 4.6 JourneyStageFilters (Black Pills)
491
+
492
+ **Design from Figma:**
493
+ ```
494
+ [Hook] [Gift] [more pills...]
495
+ ```
496
+
497
+ **Component:** `src/components/app/JourneyStageFilters.tsx`
498
+ ```typescript
499
+ const JOURNEY_STAGES = [
500
+ "Hook", "Gift", "Identify", "Engage",
501
+ "Sell", "Nurture", "Upsell", "Educate", "Share"
502
+ ]
503
+
504
+ // Renders:
505
+ // - Horizontal scrollable list of pills
506
+ // - Selected pills: bg-black text-white
507
+ // - Unselected pills: bg-white text-black border
508
+ // - Multiple selection allowed
509
+ // - Updates `journeyStages` array in app state
510
+ ```
511
+
512
+ ## Implementation Phases (Figma-Aligned)
513
+
514
+ ### Phase 1: Foundation (2 hours)
515
+ - [ ] Clone mail files to `src/pages/app/`, `src/components/app/`
516
+ - [ ] Create `app-data.ts` with EntityCard, NavigationView, StatusFilter types
517
+ - [ ] Create `use-app.ts` with Jotai state management
518
+ - [ ] Verify basic 3-panel layout renders
519
+
520
+ ### Phase 2: Left Sidebar (2-3 hours)
521
+ - [ ] Build ProfileHeader component (avatar + name + dropdown)
522
+ - [ ] Build Navigation component with 5 items (Messages, Groups, Agents, Tools, People)
523
+ - [ ] Style active/inactive states (black bg for active)
524
+ - [ ] Wire up view switching
525
+
526
+ ### Phase 3: Middle Panel - Top Section (2 hours)
527
+ - [ ] Build StatusTabs component (Now, Top, ToDo, Done)
528
+ - [ ] Add search bar with icon
529
+ - [ ] Build JourneyStageFilters component (black pills)
530
+ - [ ] Wire up all filters to state
531
+
532
+ ### Phase 4: Middle Panel - Entity Cards (3-4 hours)
533
+ - [ ] Build EntityCard component matching Figma design
534
+ - Title + timestamp layout
535
+ - Character code display
536
+ - Subtitle + preview
537
+ - Black pill tags
538
+ - Blue dot for unread
539
+ - Selected state styling
540
+ - [ ] Build EntityList with scrollable area
541
+ - [ ] Connect to Convex queries
542
+ - [ ] Add filtering logic (status + journey stages + search)
543
+
544
+ ### Phase 5: Right Panel - Entity Display (3-4 hours)
545
+ - [ ] Build EntityDisplay header (icon + title + subtitle)
546
+ - [ ] Add avatar group display
547
+ - [ ] Add content/activity area
548
+ - [ ] Build action button rows
549
+ - Primary: Add | Reply | Forward | Share | Save | Copy | Complete
550
+ - Secondary: Add | Invite | Share | Save | Complete
551
+ - [ ] Add @mentions section
552
+ - [ ] Style to match Figma spacing and typography
553
+
554
+ ### Phase 6: Convex Integration (3-4 hours)
555
+ - [ ] Create queries for entities filtered by view + status + stages
556
+ - [ ] Add count queries for navigation badges
557
+ - [ ] Implement real-time subscriptions
558
+ - [ ] Add loading and error states
559
+ - [ ] Add optimistic updates
560
+
561
+ ### Phase 7: Mobile Responsiveness (2 hours)
562
+ - [ ] Test mobile layout (show/hide panels)
563
+ - [ ] Add back button on mobile detail view
564
+ - [ ] Ensure touch-friendly tap targets
565
+ - [ ] Test horizontal scroll for filter pills
566
+
567
+ ### Phase 8: Polish (2-3 hours)
568
+ - [ ] Perfect spacing to match Figma pixel-perfect
569
+ - [ ] Add transitions and hover effects
570
+ - [ ] Test dark mode
571
+ - [ ] Add keyboard shortcuts (j/k navigation, esc to close)
572
+ - [ ] Add empty states
573
+
574
+ ## Key Design Principles
575
+
576
+ ### 1. Visual Hierarchy from Figma
577
+
578
+ The design has 3 clear levels:
579
+ 1. **Navigation** (left sidebar) - 5 main views with counts
580
+ 2. **Filtering** (middle panel top) - Status tabs + journey stage pills + search
581
+ 3. **Content** (cards + detail) - Clean, minimal, action-oriented
582
+
583
+ ### 2. Black Pills as Visual Anchor
584
+
585
+ Black rounded pills appear in two key places:
586
+ - **Filter pills** (Hook, Gift, etc.) - selectable journey stages
587
+ - **Tag pills** (on cards) - entity categorization
588
+
589
+ This creates visual consistency and makes filtering/categorization intuitive.
590
+
591
+ ### 3. Minimal Action Buttons
592
+
593
+ Action buttons are text-only with subtle styling:
594
+ - **Not** icon buttons with heavy backgrounds
595
+ - **Simple** text labels with spacing
596
+ - **Consistent** between primary and secondary action rows
597
+
598
+ ### 4. Status via Color Coding
599
+
600
+ - **Blue dot** = unread/new
601
+ - **Black background** = active navigation item
602
+ - **Black pills** = selected filters/tags
603
+ - **White pills** = unselected filters
604
+ - **Muted text** = timestamps and metadata
605
+
606
+ ### 5. Three-Column Responsive Layout
607
+
608
+ The mail UI's resizable 3-panel system is perfect:
609
+ - **Left:** Fixed ~250px for navigation
610
+ - **Middle:** Flexible for card list
611
+ - **Right:** Flexible for detail view
612
+ - **Mobile:** Stacked with smart show/hide
613
+
614
+ ## Example User Flows (Based on Figma)
615
+
616
+ ### Flow 1: View and Filter Entities
617
+
618
+ 1. User lands on app → **Messages** view active (shows all things)
619
+ 2. Click **Top** tab → see most important/starred entities
620
+ 3. Click **Hook** filter pill → see only entities in "Hook" journey stage
621
+ 4. Type "company" in search → see filtered results
622
+ 5. Click entity card → see detail in right panel
623
+ 6. Click **Complete** → entity moves to "Done" status
624
+
625
+ ### Flow 2: Navigate Between Views
626
+
627
+ 1. User clicks **Groups** in left sidebar
628
+ 2. Middle panel shows org-scoped entities
629
+ 3. Click an org entity → see details + team members
630
+ 4. Click **@Teacher One** mention → navigate to that person's entity
631
+ 5. Click **People** in left sidebar → see all users
632
+ 6. Click user → see their profile and activity
633
+
634
+ ### Flow 3: Multi-Stage Filtering
635
+
636
+ 1. User clicks **ToDo** tab → see pending items
637
+ 2. Select multiple journey stage pills: **[Hook]** **[Gift]** **[Identify]**
638
+ 3. Search "marketing" → results filtered by status + stages + search
639
+ 4. Click through cards to process them
640
+ 5. Click **Complete** on each → they move to "Done"
641
+
642
+ ## Technical Architecture (Simplified)
643
+
644
+ ```
645
+ src/pages/app/index.astro
646
+ └─> AppLayout.tsx (client:only="react")
647
+ ├─> Left Panel
648
+ │ ├─> ProfileHeader
649
+ │ └─> Navigation (5 items)
650
+ │
651
+ ├─> Middle Panel
652
+ │ ├─> StatusTabs (Now/Top/ToDo/Done)
653
+ │ ├─> Search
654
+ │ ├─> JourneyStageFilters (pills)
655
+ │ └─> EntityList
656
+ │ └─> EntityCard (repeated)
657
+ │
658
+ └─> Right Panel
659
+ └─> EntityDisplay
660
+ ├─> Header
661
+ ├─> Content/Activity
662
+ ├─> Action Buttons
663
+ └─> @Mentions
664
+
665
+ State: Jotai (use-app.ts)
666
+ Data: Convex queries (real-time)
667
+ Styling: Tailwind v4 (matches Figma exactly)
668
+ ```
669
+
670
+ ## File Structure (Figma-Based)
671
+
672
+ ```
673
+ src/
674
+ ├── pages/app/
675
+ │ └── index.astro # Main app page
676
+ │
677
+ ├── components/app/
678
+ │ ├── AppLayout.tsx # Main 3-panel layout (from MailLayout)
679
+ │ │
680
+ │ ├── ProfileHeader.tsx # Avatar + name + org dropdown
681
+ │ ├── Navigation.tsx # 5 nav items (Messages, Groups, Agents, Tools, People)
682
+ │ │
683
+ │ ├── StatusTabs.tsx # Now | Top | ToDo | Done
684
+ │ ├── JourneyStageFilters.tsx # Black pills (Hook, Gift, etc.)
685
+ │ │
686
+ │ ├── EntityList.tsx # Scrollable list of cards
687
+ │ ├── EntityCard.tsx # Individual card matching Figma
688
+ │ │
689
+ │ ├── EntityDisplay.tsx # Right panel detail view
690
+ │ │
691
+ │ └── use-app.ts # Jotai state management
692
+ │
693
+ ├── data/
694
+ │ └── app-data.ts # Types: EntityCard, NavigationView, StatusFilter, JourneyStage
695
+ │
696
+ └── layouts/
697
+ └── AppLayout.astro # Wrapper layout (optional)
698
+
699
+ convex/
700
+ └── queries/
701
+ └── app.ts # Queries for entities by view/status/stages
702
+ ```
703
+
704
+ ## Critical Styling Details (Match Figma Exactly)
705
+
706
+ ### Left Sidebar
707
+ - Width: ~250px fixed
708
+ - Active item: `bg-black text-white rounded-lg px-3 py-2`
709
+ - Inactive item: `text-gray-600 hover:bg-gray-100 rounded-lg px-3 py-2`
710
+ - Count badge: `ml-auto text-sm text-gray-500`
711
+ - Profile dropdown: subtle border, centered text
712
+
713
+ ### Entity Cards
714
+ - White background with subtle border
715
+ - Padding: `p-4`
716
+ - Title: `font-semibold text-base`
717
+ - Character code: `text-sm text-gray-600`
718
+ - Timestamp: `text-xs text-gray-500 absolute top-4 right-4`
719
+ - Tags: `bg-black text-white text-xs px-2 py-1 rounded-full`
720
+ - Blue dot: `w-2 h-2 bg-blue-500 rounded-full absolute top-2 right-2`
721
+ - Hover: `hover:bg-gray-50`
722
+ - Selected: `bg-muted border-l-4 border-l-black`
723
+
724
+ ### Filter Pills (Journey Stages)
725
+ - Selected: `bg-black text-white px-3 py-1 rounded-full text-sm`
726
+ - Unselected: `bg-white text-black border border-gray-300 px-3 py-1 rounded-full text-sm hover:bg-gray-50`
727
+
728
+ ### Action Buttons
729
+ - Simple text buttons with spacing
730
+ - No heavy backgrounds or borders
731
+ - `text-sm text-gray-700 hover:text-black px-2`
732
+ - Separated by `|` divider or subtle gap
733
+
734
+ ## Next Steps
735
+
736
+ 1. ✅ **Plan approved** - Figma design analyzed and mapped
737
+ 2. 🚀 **Start Phase 1:** Clone mail files to `src/components/app/`
738
+ 3. 🎨 **Build component by component** following the 8 phases
739
+ 4. 🔍 **Pixel-perfect matching** - compare with Figma screenshot
740
+ 5. 📊 **Connect Convex data** - use ontology queries
741
+ 6. 🎯 **Test each view** - Messages, Groups, Agents, Tools, People
742
+
743
+ ## Why This Works
744
+
745
+ The mail UI is **the perfect foundation**:
746
+
747
+ ✅ **Already has** 3-panel resizable layout
748
+ ✅ **Already has** mobile-responsive behavior
749
+ ✅ **Already has** state management with Jotai
750
+ ✅ **Already has** shadcn/ui components
751
+ ✅ **Already has** search and filtering
752
+ ✅ **Already has** card-based list view
753
+
754
+ We're **adapting existing patterns**, not reinventing the wheel.
755
+
756
+ **The genius move:** Using mail.astro as the base means we inherit all the polish and functionality for free. We just need to:
757
+ 1. Change the data shape (Mail → EntityCard)
758
+ 2. Update the styling (match Figma colors/spacing)
759
+ 3. Add ontology-specific features (journey stages, navigation views)
760
+
761
+ **Estimated total time:** 16-24 hours to complete all 8 phases.