oneie 3.6.40 → 3.7.0

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 (559) hide show
  1. package/CLAUDE.md +128 -319
  2. package/README.md +19 -0
  3. package/dist/admin/build.d.ts +15 -0
  4. package/dist/admin/build.d.ts.map +1 -0
  5. package/dist/admin/build.js +295 -0
  6. package/dist/admin/build.js.map +1 -0
  7. package/dist/admin/index.d.ts +24 -0
  8. package/dist/admin/index.d.ts.map +1 -0
  9. package/dist/admin/index.js +98 -0
  10. package/dist/admin/index.js.map +1 -0
  11. package/dist/admin/list.d.ts +14 -0
  12. package/dist/admin/list.d.ts.map +1 -0
  13. package/dist/admin/list.js +90 -0
  14. package/dist/admin/list.js.map +1 -0
  15. package/dist/admin/manifest.d.ts +86 -0
  16. package/dist/admin/manifest.d.ts.map +1 -0
  17. package/dist/admin/manifest.js +183 -0
  18. package/dist/admin/manifest.js.map +1 -0
  19. package/dist/admin/monorepo.d.ts +25 -0
  20. package/dist/admin/monorepo.d.ts.map +1 -0
  21. package/dist/admin/monorepo.js +59 -0
  22. package/dist/admin/monorepo.js.map +1 -0
  23. package/dist/admin/release.d.ts +17 -0
  24. package/dist/admin/release.d.ts.map +1 -0
  25. package/dist/admin/release.js +144 -0
  26. package/dist/admin/release.js.map +1 -0
  27. package/dist/admin/sync.d.ts +14 -0
  28. package/dist/admin/sync.d.ts.map +1 -0
  29. package/dist/admin/sync.js +104 -0
  30. package/dist/admin/sync.js.map +1 -0
  31. package/dist/admin/validate.d.ts +15 -0
  32. package/dist/admin/validate.d.ts.map +1 -0
  33. package/dist/admin/validate.js +169 -0
  34. package/dist/admin/validate.js.map +1 -0
  35. package/dist/commands/ask.d.ts +4 -0
  36. package/dist/commands/ask.d.ts.map +1 -0
  37. package/dist/commands/ask.js +8 -0
  38. package/dist/commands/ask.js.map +1 -0
  39. package/dist/commands/claw.d.ts +4 -0
  40. package/dist/commands/claw.d.ts.map +1 -0
  41. package/dist/commands/claw.js +14 -0
  42. package/dist/commands/claw.js.map +1 -0
  43. package/dist/commands/deploy.d.ts +4 -0
  44. package/dist/commands/deploy.d.ts.map +1 -0
  45. package/dist/commands/deploy.js +10 -0
  46. package/dist/commands/deploy.js.map +1 -0
  47. package/dist/commands/fade.d.ts +4 -0
  48. package/dist/commands/fade.d.ts.map +1 -0
  49. package/dist/commands/fade.js +11 -0
  50. package/dist/commands/fade.js.map +1 -0
  51. package/dist/commands/forget.d.ts +4 -0
  52. package/dist/commands/forget.d.ts.map +1 -0
  53. package/dist/commands/forget.js +16 -0
  54. package/dist/commands/forget.js.map +1 -0
  55. package/dist/commands/frontier.d.ts +4 -0
  56. package/dist/commands/frontier.d.ts.map +1 -0
  57. package/dist/commands/frontier.js +11 -0
  58. package/dist/commands/frontier.js.map +1 -0
  59. package/dist/commands/highways.d.ts +4 -0
  60. package/dist/commands/highways.d.ts.map +1 -0
  61. package/dist/commands/highways.js +11 -0
  62. package/dist/commands/highways.js.map +1 -0
  63. package/dist/commands/know.d.ts +4 -0
  64. package/dist/commands/know.d.ts.map +1 -0
  65. package/dist/commands/know.js +8 -0
  66. package/dist/commands/know.js.map +1 -0
  67. package/dist/commands/launch.d.ts +4 -0
  68. package/dist/commands/launch.d.ts.map +1 -0
  69. package/dist/commands/launch.js +16 -0
  70. package/dist/commands/launch.js.map +1 -0
  71. package/dist/commands/mark.d.ts +4 -0
  72. package/dist/commands/mark.d.ts.map +1 -0
  73. package/dist/commands/mark.js +15 -0
  74. package/dist/commands/mark.js.map +1 -0
  75. package/dist/commands/recall.d.ts +4 -0
  76. package/dist/commands/recall.d.ts.map +1 -0
  77. package/dist/commands/recall.js +12 -0
  78. package/dist/commands/recall.js.map +1 -0
  79. package/dist/commands/reveal.d.ts +4 -0
  80. package/dist/commands/reveal.d.ts.map +1 -0
  81. package/dist/commands/reveal.js +11 -0
  82. package/dist/commands/reveal.js.map +1 -0
  83. package/dist/commands/select.d.ts +4 -0
  84. package/dist/commands/select.d.ts.map +1 -0
  85. package/dist/commands/select.js +19 -0
  86. package/dist/commands/select.js.map +1 -0
  87. package/dist/commands/signal.d.ts +4 -0
  88. package/dist/commands/signal.d.ts.map +1 -0
  89. package/dist/commands/signal.js +8 -0
  90. package/dist/commands/signal.js.map +1 -0
  91. package/dist/commands/sync.d.ts +4 -0
  92. package/dist/commands/sync.d.ts.map +1 -0
  93. package/dist/commands/sync.js +20 -0
  94. package/dist/commands/sync.js.map +1 -0
  95. package/dist/commands/warn.d.ts +4 -0
  96. package/dist/commands/warn.d.ts.map +1 -0
  97. package/dist/commands/warn.js +15 -0
  98. package/dist/commands/warn.js.map +1 -0
  99. package/dist/create-org-profile.js +2 -2
  100. package/dist/create-user-profile.js +2 -2
  101. package/dist/index.js +75 -7
  102. package/dist/index.js.map +1 -1
  103. package/dist/lib/args.d.ts +10 -0
  104. package/dist/lib/args.d.ts.map +1 -0
  105. package/dist/lib/args.js +54 -0
  106. package/dist/lib/args.js.map +1 -0
  107. package/dist/lib/config.d.ts +12 -0
  108. package/dist/lib/config.d.ts.map +1 -0
  109. package/dist/lib/config.js +38 -0
  110. package/dist/lib/config.js.map +1 -0
  111. package/dist/lib/http.d.ts +9 -0
  112. package/dist/lib/http.d.ts.map +1 -0
  113. package/dist/lib/http.js +25 -0
  114. package/dist/lib/http.js.map +1 -0
  115. package/dist/lib/telemetry.d.ts +4 -0
  116. package/dist/lib/telemetry.d.ts.map +1 -0
  117. package/dist/lib/telemetry.js +61 -0
  118. package/dist/lib/telemetry.js.map +1 -0
  119. package/dist/utils/file-resolver.js +1 -3
  120. package/dist/utils/file-resolver.js.map +1 -1
  121. package/dist/utils/installation-setup.js +8 -8
  122. package/dist/utils/installation-setup.js.map +1 -1
  123. package/one/events/0-changes.md +2764 -0
  124. package/one/events/1-PROJECTS-START-HERE.md +384 -0
  125. package/one/events/1-projects-developer-quickstart.md +620 -0
  126. package/one/events/1-projects-feature.md +2047 -0
  127. package/one/events/1-projects-team-briefing.md +583 -0
  128. package/one/events/2024-10-14-deployment-plan.md +330 -0
  129. package/one/events/2024-10-14-deployment-success.md +447 -0
  130. package/one/events/2024-10-14-final-sync-complete.md +250 -0
  131. package/one/events/2024-10-14-release-v2.0.6.md +414 -0
  132. package/one/events/2024-10-15-agent-clean-v2-summary.md +495 -0
  133. package/one/events/2024-10-15-handoff-to-clean.md +347 -0
  134. package/one/events/2024-10-15-package-manager-tests.md +442 -0
  135. package/one/events/2024-10-15-release-command-complete.md +416 -0
  136. package/one/events/2025-10-15-private-files-secured.md +359 -0
  137. package/one/events/2025-10-15-unignore-public-group-docs.md +298 -0
  138. package/one/events/2025-11-08-backend-claude-refactor.md +242 -0
  139. package/one/events/2025-11-08-parallel-agent-implementation.md +620 -0
  140. package/one/events/2025-11-10-ai-integration-status-report.md +241 -0
  141. package/one/events/ACCESSIBILITY_CHECKLIST.md +275 -0
  142. package/one/events/ACCESSIBILITY_FIXES_SUMMARY.md +293 -0
  143. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +335 -0
  144. package/one/events/ALIGNMENT_SUMMARY.md +280 -0
  145. package/one/events/API_ROUTES_FIXES_SUMMARY.md +280 -0
  146. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +654 -0
  147. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +598 -0
  148. package/one/events/AUDIT_PLAN_COMPLETION-20251108-125555.md +262 -0
  149. package/one/events/BEFORE_AFTER_COMPARISON.md +978 -0
  150. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +372 -0
  151. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +430 -0
  152. package/one/events/CHARTS-READY-TO-USE-20251106-080939.md +184 -0
  153. package/one/events/CHARTS-SUMMARY-20251106-080938.md +196 -0
  154. package/one/events/CLAUDE copy.md +897 -0
  155. package/one/events/CLEANUP-RELEASE-V2.0.8.md +308 -0
  156. package/one/events/CLOUDFLARE-FS-FIX-20251106-100516.md +75 -0
  157. package/one/events/COMPONENT_SHOWCASE-20251106-080938.md +629 -0
  158. package/one/events/CONNECTIONS_DEMO.md +519 -0
  159. package/one/events/CREATE-WEBSITE.md +460 -0
  160. package/one/events/CRITICAL-FIXES-COMPLETE.md +571 -0
  161. package/one/events/CUSTOM-DOMAIN.md +375 -0
  162. package/one/events/DELIVERABLES.md +450 -0
  163. package/one/events/DELIVERABLES.txt +273 -0
  164. package/one/events/DEMO-GROUPS-PAGE.md +410 -0
  165. package/one/events/DEMO-TESTING-SUMMARY.md +536 -0
  166. package/one/events/DEMO_COMPONENTS.md +505 -0
  167. package/one/events/DEMO_HOOKS_INDEX.md +352 -0
  168. package/one/events/DEMO_INFRASTRUCTURE.md +923 -0
  169. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +588 -0
  170. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +449 -0
  171. package/one/events/DEMO_QUICK_REFERENCE.md +459 -0
  172. package/one/events/DEMO_SETUP.md +494 -0
  173. package/one/events/DEPLOYMENT copy.md +444 -0
  174. package/one/events/DEPLOYMENT.md +196 -0
  175. package/one/events/DESIGN-DELIVERABLES-20251106-080938.md +557 -0
  176. package/one/events/DESIGN-EXECUTIVE-SUMMARY-20251106-080938.md +484 -0
  177. package/one/events/DOCS-SYSTEM-GUIDE-20251105-142103.md +458 -0
  178. package/one/events/DOCUMENTER-DELIVERY-SUMMARY.md +481 -0
  179. package/one/events/DOCUMENTER-EXECUTION-GUIDE.md +394 -0
  180. package/one/events/DOCUMENTER-TASK-BREAKDOWN.md +783 -0
  181. package/one/events/ECOMMERCE-BEFORE-AFTER.md +267 -0
  182. package/one/events/ECOMMERCE-DEMO-PLAN.md +243 -0
  183. package/one/events/ECOMMERCE-ENHANCEMENTS.md +594 -0
  184. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +439 -0
  185. package/one/events/ECOMMERCE-LIVE-DEMO.md +381 -0
  186. package/one/events/ECOMMERCE-QUICKSTART.md +376 -0
  187. package/one/events/ECOMMERCE-README.md +354 -0
  188. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +214 -0
  189. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +414 -0
  190. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +753 -0
  191. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +941 -0
  192. package/one/events/EFFECT_TS_API_PATTERN.md +496 -0
  193. package/one/events/EXECUTION-READY.md +359 -0
  194. package/one/events/EXECUTION-SUMMARY.md +478 -0
  195. package/one/events/FEATURE-2-4-COMPLETE.md +320 -0
  196. package/one/events/FEATURE_2_3_COMPLETE.md +593 -0
  197. package/one/events/FILE-REFERENCE-20251105-142103.md +325 -0
  198. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +241 -0
  199. package/one/events/GROUPS-MIGRATION.md +643 -0
  200. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +432 -0
  201. package/one/events/HANDOFF.md +331 -0
  202. package/one/events/HOOKS-DEMO.md +459 -0
  203. package/one/events/IMPLEMENTATION-CHECKLIST-20251105-142103.md +274 -0
  204. package/one/events/IMPLEMENTATION-REPORT-DOCS-20251105-142102.md +394 -0
  205. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +568 -0
  206. package/one/events/IMPLEMENTATION_SUMMARY-20251106-080938.md +571 -0
  207. package/one/events/IMPLEMENTATION_SUMMARY.md +547 -0
  208. package/one/events/INDEX-ALL-AGENTS.md +190 -0
  209. package/one/events/INDEX-FRONTEND-TESTING.md +524 -0
  210. package/one/events/INDEX-PROBLEM-SOLVER.md +488 -0
  211. package/one/events/INDEX-QUALITY-AGENT-INFER65.md +455 -0
  212. package/one/events/INDEX.md +295 -0
  213. package/one/events/INDEX_QUICK_START_REDESIGN-20251106-080939.md +342 -0
  214. package/one/events/INSTALL-TESTS.md +311 -0
  215. package/one/events/INSTALLATION_FOLDERS.md +534 -0
  216. package/one/events/INSTALLATION_FOLDERS_FILES.md +223 -0
  217. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +437 -0
  218. package/one/events/INTEGRATION-ARCHITECTURE.md +579 -0
  219. package/one/events/INTEGRATION-CHECKLIST.md +1252 -0
  220. package/one/events/INTEGRATION-ORCHESTRATION.md +2641 -0
  221. package/one/events/INTEGRATION-SUMMARY.md +671 -0
  222. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +684 -0
  223. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +660 -0
  224. package/one/events/LANDING-PAGE-QUICKSTART.md +425 -0
  225. package/one/events/LICENSE.md +107 -0
  226. package/one/events/MASTER-COORDINATION-PLAN.md +613 -0
  227. package/one/events/MASTER-ORCHESTRATION-INFER65.md +441 -0
  228. package/one/events/MASTER-PLAN-SUMMARY.md +309 -0
  229. package/one/events/MCP-CONFIGURATION.md +354 -0
  230. package/one/events/MCP-SETUP-COMPLETE.md +223 -0
  231. package/one/events/MIGRATION-REPORT.md +453 -0
  232. package/one/events/MIGRATION.md +87 -0
  233. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1663 -0
  234. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +643 -0
  235. package/one/events/NEWS-COMMANDS.md +506 -0
  236. package/one/events/NEWS-SYSTEM-SUMMARY.md +480 -0
  237. package/one/events/NODE-UPGRADE.md +129 -0
  238. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +416 -0
  239. package/one/events/ONTOLOGY-HOOKS-README.md +718 -0
  240. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +383 -0
  241. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +569 -0
  242. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +491 -0
  243. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +504 -0
  244. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +221 -0
  245. package/one/events/PACKAGE-STRUCTURE.md +328 -0
  246. package/one/events/PLAN-COMPLETE.md +429 -0
  247. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +349 -0
  248. package/one/events/PROBLEM-SOLVER-EXECUTIVE-SUMMARY.md +484 -0
  249. package/one/events/PROBLEM-SOLVER-QUICKSTART.md +420 -0
  250. package/one/events/PROJECTS-PLAN-SUMMARY.md +480 -0
  251. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +585 -0
  252. package/one/events/QA-CHECKLIST.md +692 -0
  253. package/one/events/QUALITY-AGENT-SUMMARY.md +334 -0
  254. package/one/events/QUALITY-EXECUTION-CHECKLIST.md +593 -0
  255. package/one/events/QUICK-REFERENCE-FRONTEND-TESTING.md +475 -0
  256. package/one/events/QUICK-START-ONTOLOGY.md +426 -0
  257. package/one/events/QUICK_START_REDESIGN-20251106-080938.md +400 -0
  258. package/one/events/README-PROBLEM-SOLVER.md +394 -0
  259. package/one/events/README-archived.md +537 -0
  260. package/one/events/README_QUICK_START_REDESIGN-20251106-080938.md +484 -0
  261. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +657 -0
  262. package/one/events/SEARCH_DEMO_DELIVERY.md +433 -0
  263. package/one/events/SEARCH_DEMO_SUMMARY.md +321 -0
  264. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +399 -0
  265. package/one/events/SECURITY-AUDIT-FIXES.md +394 -0
  266. package/one/events/SECURITY-SCAN-COMPLETE.md +299 -0
  267. package/one/events/SHOP-BUILD-STATUS.md +132 -0
  268. package/one/events/SHOP-PREMIUM-UPDATE.md +165 -0
  269. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +280 -0
  270. package/one/events/SITE-WIDE-GRADIENT-FIX.md +317 -0
  271. package/one/events/SPECIALIST-QUICK-REFERENCE.md +678 -0
  272. package/one/events/STORE-PRODUCTION-READY-STATUS.md +377 -0
  273. package/one/events/STRIPE-INTEGRATION.md +432 -0
  274. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +447 -0
  275. package/one/events/STRIPE-SETUP-GUIDE.md +480 -0
  276. package/one/events/TEST-PLAN-INDEX.md +364 -0
  277. package/one/events/TEST-PLAN.md +1435 -0
  278. package/one/events/TEST-SUMMARY.md +411 -0
  279. package/one/events/TESTING-DELIVERY.txt +372 -0
  280. package/one/events/TESTS-QUICK-REF.md +280 -0
  281. package/one/events/TRANSITIONS-QUICK-START.md +159 -0
  282. package/one/events/TRANSPARENCY-FIXES.md +293 -0
  283. package/one/events/TYPESCRIPT_FIXES.md +170 -0
  284. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  285. package/one/events/TYPESCRIPT_FIXES_INDEX.md +359 -0
  286. package/one/events/VERIFICATION_CHECKLIST-20251106-080938.md +326 -0
  287. package/one/events/VIEW-TRANSITIONS.md +446 -0
  288. package/one/events/agent-command-implementation.md +305 -0
  289. package/one/events/agent-director-enhancement-summary.md +404 -0
  290. package/one/events/agent-director-routing-update.md +214 -0
  291. package/one/events/agent-onboard-implementation-summary.md +475 -0
  292. package/one/events/agent-ontology-alignment-completion.md +263 -0
  293. package/one/events/ai-integration-complete.md +294 -0
  294. package/one/events/ai-integration-lessons-learned.md +511 -0
  295. package/one/events/backend-integration-tests.md +624 -0
  296. package/one/events/backend-structure-diagram.txt +393 -0
  297. package/one/events/backend-structure-summary.txt +269 -0
  298. package/one/events/bullfm-video-podcast-analysis.md +319 -0
  299. package/one/events/clean-agent-ontology-cleanup-report.md +371 -0
  300. package/one/events/clean-agent-todo-analysis-summary.md +336 -0
  301. package/one/events/cloudflare-automation-complete.md +350 -0
  302. package/one/events/cloudflare-pages-infrastructure-setup.md +282 -0
  303. package/one/events/contact-page-complete.md +316 -0
  304. package/one/events/convex-analysis-index.md +322 -0
  305. package/one/events/convex-structure-analysis.md +718 -0
  306. package/one/events/creation-instructions-9-todos.md +906 -0
  307. package/one/events/cycle-3-video-player-port-20251108.md +368 -0
  308. package/one/events/cycle-3-video-player-port-complete-20251108.md +334 -0
  309. package/one/events/deployment-installation-folders.md +178 -0
  310. package/one/events/deployment-ops-summary.md +386 -0
  311. package/one/events/deployment-verification.md +366 -0
  312. package/one/events/design-spec-complete.md +226 -0
  313. package/one/events/documentation-audit-index.md +473 -0
  314. package/one/events/documentation-audit-summary.md +417 -0
  315. package/one/events/documentation-improvement-roadmap.md +906 -0
  316. package/one/events/documentation-standards-compliance-report.md +538 -0
  317. package/one/events/documentation-updates.md +370 -0
  318. package/one/events/events.md +563 -0
  319. package/one/events/fix-product-hydration-20251106.md +211 -0
  320. package/one/events/frontend-effects-complete.md +584 -0
  321. package/one/events/frontend-effects-orchestration.md +1356 -0
  322. package/one/events/frontend-effects-risk-register.md +1055 -0
  323. package/one/events/frontend-effects-week1-assignments.md +1594 -0
  324. package/one/events/hook-ontology-alignment-summary.md +528 -0
  325. package/one/events/installation-folders-workflow-integration.md +458 -0
  326. package/one/events/landing-page-generator.md +476 -0
  327. package/one/events/legal-assessment-2025-10-16.md +1917 -0
  328. package/one/events/master-coordination-plan.json +1078 -0
  329. package/one/events/master-plan-9-todos.md +900 -0
  330. package/one/events/mobile-performance-optimization.md +179 -0
  331. package/one/events/onboarding-implementation-complete.md +523 -0
  332. package/one/events/ontology-audit-agent-clone.md +323 -0
  333. package/one/events/ontology-test-examples.md +580 -0
  334. package/one/events/phase1-backend-implementation-complete.md +536 -0
  335. package/one/events/plan-completion-audit.md +707 -0
  336. package/one/events/plan-files-updated.md +273 -0
  337. package/one/events/production-readiness-plan.md +389 -0
  338. package/one/events/readme.md +100 -0
  339. package/one/events/release.md +272 -0
  340. package/one/events/root-cleanup-alignment-report.md +265 -0
  341. package/one/events/security-fixes-2025-01-15.md +226 -0
  342. package/one/events/separate-implementation-status.md +555 -0
  343. package/one/events/server-command-optimization-20251108.md +150 -0
  344. package/one/events/session-summary-2025-10-18.md +366 -0
  345. package/one/events/skills-complete.md +351 -0
  346. package/one/events/skills-infer-6-10-summary.md +70 -0
  347. package/one/events/skills-phase1-complete.md +281 -0
  348. package/one/events/specialist-assignments.md +766 -0
  349. package/one/events/structural-analysis-architecture-vs-plans.md +600 -0
  350. package/one/events/test-dashboard.md +363 -0
  351. package/one/events/test-index.md +421 -0
  352. package/one/events/test-report-ontology.md +611 -0
  353. package/one/events/testing-summary.md +388 -0
  354. package/one/events/todo-agent-builder.md +1180 -0
  355. package/one/events/todo-agent-director.md +164 -0
  356. package/one/events/todo-agent-documenter.md +1815 -0
  357. package/one/events/todo-agent-frontend.md +1542 -0
  358. package/one/events/todo-agent-problem-solver.md +1682 -0
  359. package/one/events/todo-agent-quality.md +1647 -0
  360. package/one/events/todo-refactoring-complete.md +408 -0
  361. package/one/events/wave1-backend-implementation-complete.md +698 -0
  362. package/one/events/web-AI_INTEGRATION_PHASE2_SUMMARY-20251111-152540.md +529 -0
  363. package/one/events/web-BUY-IN-CHATGPT-README-20251116-235241.md +491 -0
  364. package/one/events/web-CHARTS-IMPLEMENTATION-20251106-080939.md +576 -0
  365. package/one/events/web-CHARTS-QUICKSTART-20251106-080939.md +416 -0
  366. package/one/events/web-CODE-HIGHLIGHTING-SUMMARY-20251111-152540.md +442 -0
  367. package/one/events/web-DEPLOYMENT_SUMMARY-20251116-005428.md +290 -0
  368. package/one/events/web-DESIGN-SUMMARY-20251106-080939.md +514 -0
  369. package/one/events/web-README-AI-INTEGRATION-20251111-152540.md +196 -0
  370. package/one/events/web-RECHARTS-INTEGRATION-20251111-152540.md +265 -0
  371. package/one/events/web-RELEASE_OPTIMIZATION_PLAN-20251116-005428.md +447 -0
  372. package/one/events/web-TEST-CLEANUP-20251105-143205.md +3 -0
  373. package/one/events/web-USING-ANY-COMPONENT-IN-CHAT-20251111-152540.md +561 -0
  374. package/one/events/web-test-code-highlighting-20251111-152540.md +231 -0
  375. package/one/{knowledge → learning}/crypto.md +2 -2
  376. package/one/{connections → paths}/cryptonetworks.md +2 -2
  377. package/one/things/contracts/sdk.ts +4 -3
  378. package/one/things/products/Blockchain Products.md +8 -8
  379. package/package.json +7 -8
  380. package/dist/commands/create-website.d.ts +0 -19
  381. package/dist/commands/create-website.d.ts.map +0 -1
  382. package/dist/commands/create-website.js +0 -231
  383. package/dist/commands/create-website.js.map +0 -1
  384. /package/one/{people → actors}/anthony-o-connell.md +0 -0
  385. /package/one/{people → actors}/people.md +0 -0
  386. /package/one/{knowledge → learning}/.obsidian/app.json +0 -0
  387. /package/one/{knowledge → learning}/.obsidian/appearance.json +0 -0
  388. /package/one/{knowledge → learning}/.obsidian/core-plugins.json +0 -0
  389. /package/one/{knowledge → learning}/.obsidian/ecommerce-ontology.md +0 -0
  390. /package/one/{knowledge → learning}/.obsidian/workspace.json +0 -0
  391. /package/one/{knowledge → learning}/100-inference-quick-reference.md +0 -0
  392. /package/one/{knowledge → learning}/ag-ui-protocol.md +0 -0
  393. /package/one/{knowledge → learning}/agent-onboard-usage.md +0 -0
  394. /package/one/{knowledge → learning}/agentic-commerce.md +0 -0
  395. /package/one/{knowledge → learning}/ai-agents-vs-memecoins-thesis.md +0 -0
  396. /package/one/{knowledge → learning}/ai-api-reference.md +0 -0
  397. /package/one/{knowledge → learning}/ai-platform.md +0 -0
  398. /package/one/{knowledge → learning}/ai-quickstart.md +0 -0
  399. /package/one/{knowledge → learning}/ai-sdk-implementation.md +0 -0
  400. /package/one/{knowledge → learning}/ai-token-crypto-analysis-framework.md +0 -0
  401. /package/one/{knowledge → learning}/ai-token-paradigm-shift-2025.md +0 -0
  402. /package/one/{knowledge → learning}/altcoin-cycle-prediction-ontology.md +0 -0
  403. /package/one/{knowledge → learning}/altcoin-cycle-trading-strategy.md +0 -0
  404. /package/one/{knowledge → learning}/architecture-any-backend.md +0 -0
  405. /package/one/{knowledge → learning}/architecture-diagram.md +0 -0
  406. /package/one/{knowledge → learning}/architecture-frontend.md +0 -0
  407. /package/one/{knowledge → learning}/architecture.md +0 -0
  408. /package/one/{knowledge → learning}/archived/ontology.old.md +0 -0
  409. /package/one/{knowledge → learning}/astro-effect-complete-vision.md +0 -0
  410. /package/one/{knowledge → learning}/astro-effect-simple-architecture.md +0 -0
  411. /package/one/{knowledge → learning}/audit-agent-onboard-alignment.md +0 -0
  412. /package/one/{knowledge → learning}/audit-agent-sales-alignment.md +0 -0
  413. /package/one/{knowledge → learning}/backend-api-reference.md +0 -0
  414. /package/one/{knowledge → learning}/cascading-context-specification.md +0 -0
  415. /package/one/{knowledge → learning}/claude-code-integration.md +0 -0
  416. /package/one/{knowledge → learning}/cli-claude-handoff.md +0 -0
  417. /package/one/{knowledge → learning}/context-engineering.md +0 -0
  418. /package/one/{knowledge → learning}/crypto-analysis-strategy.md +0 -0
  419. /package/one/{knowledge → learning}/crypto-cycle-2024-2025-analysis.md +0 -0
  420. /package/one/{knowledge → learning}/develop/design.md +0 -0
  421. /package/one/{knowledge → learning}/develop/index.md +0 -0
  422. /package/one/{knowledge → learning}/development-commands.md +0 -0
  423. /package/one/{knowledge → learning}/docs.md +0 -0
  424. /package/one/{knowledge → learning}/dsl.md +0 -0
  425. /package/one/{knowledge → learning}/event-driven-documentation.md +0 -0
  426. /package/one/{knowledge → learning}/files.md +0 -0
  427. /package/one/{knowledge → learning}/frontend.md +0 -0
  428. /package/one/{knowledge → learning}/games-english.md +0 -0
  429. /package/one/{knowledge → learning}/games.md +0 -0
  430. /package/one/{knowledge → learning}/generative-ui-patterns.md +0 -0
  431. /package/one/{knowledge → learning}/guidelines.md +0 -0
  432. /package/one/{knowledge → learning}/hono.md +0 -0
  433. /package/one/{knowledge → learning}/implementation-examples.md +0 -0
  434. /package/one/{knowledge → learning}/installation-folders.md +0 -0
  435. /package/one/{knowledge → learning}/institutional-cycle-paradigm-2025.md +0 -0
  436. /package/one/{knowledge → learning}/knowledge.md +0 -0
  437. /package/one/{knowledge → learning}/language.md +0 -0
  438. /package/one/{knowledge → learning}/lessons-learned.md +0 -0
  439. /package/one/{knowledge → learning}/lessons-website-building-focus.md +0 -0
  440. /package/one/{knowledge → learning}/merge-report.md +0 -0
  441. /package/one/{knowledge → learning}/metadata-system.md +0 -0
  442. /package/one/{knowledge → learning}/nine-padel-playbook.md +0 -0
  443. /package/one/{knowledge → learning}/one-protocol-ai-agents.md +0 -0
  444. /package/one/{knowledge → learning}/one-protocol-executive-report.md +0 -0
  445. /package/one/{knowledge → learning}/one-protocol-standard.md +0 -0
  446. /package/one/{knowledge → learning}/one-protocol-whitepaper.md +0 -0
  447. /package/one/{knowledge → learning}/ontology-blog.yaml +0 -0
  448. /package/one/{knowledge → learning}/ontology-cheatsheet.md +0 -0
  449. /package/one/{knowledge → learning}/ontology-community.yaml +0 -0
  450. /package/one/{knowledge → learning}/ontology-core-universal.md +0 -0
  451. /package/one/{knowledge → learning}/ontology-core.yaml +0 -0
  452. /package/one/{knowledge → learning}/ontology-courses.yaml +0 -0
  453. /package/one/{knowledge → learning}/ontology-creator.md +0 -0
  454. /package/one/{knowledge → learning}/ontology-crypto.md +0 -0
  455. /package/one/{knowledge → learning}/ontology-developer-guide.md +0 -0
  456. /package/one/{knowledge → learning}/ontology-documentation.md +0 -0
  457. /package/one/{knowledge → learning}/ontology-ecommerce.md +0 -0
  458. /package/one/{knowledge → learning}/ontology-education-game.md +0 -0
  459. /package/one/{knowledge → learning}/ontology-education.md +0 -0
  460. /package/one/{knowledge → learning}/ontology-engineering-specification.md +0 -0
  461. /package/one/{knowledge → learning}/ontology-engineering.md +0 -0
  462. /package/one/{knowledge → learning}/ontology-files.yaml +0 -0
  463. /package/one/{knowledge → learning}/ontology-frontend-master.md +0 -0
  464. /package/one/{knowledge → learning}/ontology-frontend-specifications.md +0 -0
  465. /package/one/{knowledge → learning}/ontology-frontend.md +0 -0
  466. /package/one/{knowledge → learning}/ontology-index.md +0 -0
  467. /package/one/{knowledge → learning}/ontology-minimal.yaml +0 -0
  468. /package/one/{knowledge → learning}/ontology-portfolio.yaml +0 -0
  469. /package/one/{knowledge → learning}/ontology-quickstart.md +0 -0
  470. /package/one/{knowledge → learning}/ontology-release.md +0 -0
  471. /package/one/{knowledge → learning}/ontology-shop.yaml +0 -0
  472. /package/one/{knowledge → learning}/ontology-tokens.yaml +0 -0
  473. /package/one/{knowledge → learning}/ontology-tutorial.md +0 -0
  474. /package/one/{knowledge → learning}/ontology-v2.md +0 -0
  475. /package/one/{knowledge → learning}/ontology-video-script.md +0 -0
  476. /package/one/{knowledge → learning}/ontology-visual-guide.md +0 -0
  477. /package/one/{knowledge → learning}/ontology.md +0 -0
  478. /package/one/{knowledge → learning}/ontology.yaml +0 -0
  479. /package/one/{knowledge → learning}/parallel-agents.md +0 -0
  480. /package/one/{knowledge → learning}/patterns/backend/convex-mutation-pattern.md +0 -0
  481. /package/one/{knowledge → learning}/patterns/backend/convex-query-pattern.md +0 -0
  482. /package/one/{knowledge → learning}/patterns/backend/mutation-template.md +0 -0
  483. /package/one/{knowledge → learning}/patterns/backend/query-template.md +0 -0
  484. /package/one/{knowledge → learning}/patterns/backend/service-template.md +0 -0
  485. /package/one/{knowledge → learning}/patterns/design/component-architecture.md +0 -0
  486. /package/one/{knowledge → learning}/patterns/design/index.md +0 -0
  487. /package/one/{knowledge → learning}/patterns/design/test-driven-design-pattern.md +0 -0
  488. /package/one/{knowledge → learning}/patterns/design/wireframe-template.md +0 -0
  489. /package/one/{knowledge → learning}/patterns/frontend/component-template.md +0 -0
  490. /package/one/{knowledge → learning}/patterns/frontend/form-template.md +0 -0
  491. /package/one/{knowledge → learning}/patterns/frontend/page-template.md +0 -0
  492. /package/one/{knowledge → learning}/patterns/frontend/react-component-pattern.md +0 -0
  493. /package/one/{knowledge → learning}/patterns/test/acceptance-criteria-template.md +0 -0
  494. /package/one/{knowledge → learning}/patterns/test/technical-test-template.md +0 -0
  495. /package/one/{knowledge → learning}/patterns/test/test-driven-pattern.md +0 -0
  496. /package/one/{knowledge → learning}/patterns/test/user-flow-template.md +0 -0
  497. /package/one/{knowledge → learning}/performance.md +0 -0
  498. /package/one/{knowledge → learning}/provider-agnostic-content.md +0 -0
  499. /package/one/{knowledge → learning}/provider-creation-guide.md +0 -0
  500. /package/one/{knowledge → learning}/quality-loop.md +0 -0
  501. /package/one/{knowledge → learning}/quick-start-ontology-mapping.md +0 -0
  502. /package/one/{knowledge → learning}/readme-architecture.md +0 -0
  503. /package/one/{knowledge → learning}/readme.md +0 -0
  504. /package/one/{knowledge → learning}/rules.md +0 -0
  505. /package/one/{knowledge → learning}/score.md +0 -0
  506. /package/one/{knowledge → learning}/specifications.md +0 -0
  507. /package/one/{knowledge → learning}/tags.md +0 -0
  508. /package/one/{knowledge → learning}/todo-template.md +0 -0
  509. /package/one/{knowledge → learning}/todo.md +0 -0
  510. /package/one/{knowledge → learning}/troubleshooting.md +0 -0
  511. /package/one/{knowledge → learning}/typescript-patterns.md +0 -0
  512. /package/one/{knowledge → learning}/universal-generation-language.md +0 -0
  513. /package/one/{knowledge → learning}/x402-research.md +0 -0
  514. /package/one/{connections → paths}/a2a.md +0 -0
  515. /package/one/{connections → paths}/acp.md +0 -0
  516. /package/one/{connections → paths}/acps.md +0 -0
  517. /package/one/{connections → paths}/agentkit.md +0 -0
  518. /package/one/{connections → paths}/agui.md +0 -0
  519. /package/one/{connections → paths}/any-backend.md +0 -0
  520. /package/one/{connections → paths}/ap2.md +0 -0
  521. /package/one/{connections → paths}/api/queries-reference.md +0 -0
  522. /package/one/{connections → paths}/api-docs.md +0 -0
  523. /package/one/{connections → paths}/api-reference.md +0 -0
  524. /package/one/{connections → paths}/api.md +0 -0
  525. /package/one/{connections → paths}/architecture-diagram.md +0 -0
  526. /package/one/{connections → paths}/communications.md +0 -0
  527. /package/one/{connections → paths}/connections.md +0 -0
  528. /package/one/{connections → paths}/copilotkit.md +0 -0
  529. /package/one/{connections → paths}/documentation.md +0 -0
  530. /package/one/{connections → paths}/effect.md +0 -0
  531. /package/one/{connections → paths}/elizaos.md +0 -0
  532. /package/one/{connections → paths}/groups.md +0 -0
  533. /package/one/{connections → paths}/inference.md +0 -0
  534. /package/one/{connections → paths}/integration-examples.md +0 -0
  535. /package/one/{connections → paths}/integration-guide.md +0 -0
  536. /package/one/{connections → paths}/integration-phase2.md +0 -0
  537. /package/one/{connections → paths}/kyc.md +0 -0
  538. /package/one/{connections → paths}/mcp.md +0 -0
  539. /package/one/{connections → paths}/membership.md +0 -0
  540. /package/one/{connections → paths}/middleware.md +0 -0
  541. /package/one/{connections → paths}/multitenant.md +0 -0
  542. /package/one/{connections → paths}/n8n.md +0 -0
  543. /package/one/{connections → paths}/patterns.md +0 -0
  544. /package/one/{connections → paths}/protocols.md +0 -0
  545. /package/one/{connections → paths}/relationships.md +0 -0
  546. /package/one/{connections → paths}/schema.md +0 -0
  547. /package/one/{connections → paths}/service-layer.md +0 -0
  548. /package/one/{connections → paths}/vectors.md +0 -0
  549. /package/one/{connections → paths}/wordpress.md +0 -0
  550. /package/one/{connections → paths}/workflow-copy.md +0 -0
  551. /package/one/{connections → paths}/workflow-examples.md +0 -0
  552. /package/one/{connections → paths}/workflow-onboarding.md +0 -0
  553. /package/one/{connections → paths}/workflow.md +0 -0
  554. /package/one/{connections → paths}/workflows/delegation.md +0 -0
  555. /package/one/{connections → paths}/workflows/frontend.md +0 -0
  556. /package/one/{connections → paths}/workflows/strategy.md +0 -0
  557. /package/one/{connections → paths}/workflows/tasks.md +0 -0
  558. /package/one/{connections → paths}/x402-baazar.md +0 -0
  559. /package/one/{connections → paths}/x402.md +0 -0
@@ -0,0 +1,1542 @@
1
+ # Frontend Testing TODO - Agent Frontend
2
+
3
+ **Cycle:** 65/100 (E2E Tests for Critical Paths)
4
+ **Feature:** AI-powered Recommendations
5
+ **Status:** Phase 1 Setup & Component Testing
6
+ **Last Updated:** 2025-10-30
7
+
8
+ ---
9
+
10
+ ## Executive Summary
11
+
12
+ This document defines all frontend testing tasks for the ONE Platform. Frontend testing spans component unit tests, integration tests, user interaction tests, and end-to-end flows. Tests validate the 6-dimension ontology rendering (groups, people, things, connections, events, knowledge) across Astro 5 + React 19 architecture.
13
+
14
+ **Testing Stack:**
15
+ - **Framework:** Vitest 3.2.4
16
+ - **DOM Testing:** @testing-library/react 16.3.0
17
+ - **Coverage:** Vitest UI + Coverage reports
18
+ - **Scope:** React components, Astro pages, user interactions, state management
19
+
20
+ **Current State:**
21
+ - 19 existing test files (auth, groups, things, providers)
22
+ - 50+ test cases completed
23
+ - Coverage areas: Authentication (6 methods), Groups (hierarchies, selection), Things (validation, services)
24
+ - Missing: Recommendations components, demos, features, e2e flows
25
+
26
+ ---
27
+
28
+ ## Critical Path Diagram
29
+
30
+ ```
31
+ Phase 1: Test Setup (Cycle 65-66)
32
+ ↓
33
+ Phase 2: Component Unit Tests (Cycle 67-72)
34
+ ├── Demo Components (HooksDemo, SearchDemo, EventsDemo, etc.)
35
+ ├── Feature Components (ContactForm, GroupTypeSelector, etc.)
36
+ └── UI Components (High-coverage shadcn/ui)
37
+ ↓
38
+ Phase 3: Integration Tests (Cycle 73-78)
39
+ ├── Component Composition (Features within Demos)
40
+ ├── Data Flow (useQuery → Display → useMutation)
41
+ └── State Management (Jotai atoms, Nanostores)
42
+ ↓
43
+ Phase 4: User Interaction Tests (Cycle 79-84)
44
+ ├── Form Submission (ContactForm, GroupTypeSelector)
45
+ ├── Button Interactions (Create, Update, Delete)
46
+ └── Navigation (Route changes, Link clicks)
47
+ ↓
48
+ Phase 5: Edge Cases & Errors (Cycle 85-88)
49
+ ├── Loading States (Suspense, fallbacks)
50
+ ├── Error Boundaries (Component failures)
51
+ └── Empty States (No data, null checks)
52
+ ↓
53
+ Phase 6: Accessibility & Performance (Cycle 89-95)
54
+ ├── Keyboard Navigation (Tab, Enter, Escape)
55
+ ├── ARIA Labels & Roles
56
+ ├── Dark Mode Support
57
+ └── Responsive Design (Mobile, Tablet, Desktop)
58
+ ↓
59
+ Phase 7: E2E Flows (Cycle 96-100)
60
+ ├── Critical Paths (Auth → Groups → Things → Connections)
61
+ └── Real-time Updates (Convex subscriptions)
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Phase 1: Component Test Setup (Cycle 65-66)
67
+
68
+ ### Task 1.1: Establish Vitest Base Configuration
69
+
70
+ **File:** `/Users/toc/Server/ONE/web/vitest.config.ts`
71
+
72
+ **Requirements:**
73
+ - Configure Vitest with happy-dom environment (lightweight, faster than jsdom)
74
+ - Add React Testing Library setup
75
+ - Configure Convex mock factory
76
+ - Set coverage thresholds (statements: 80%, branches: 75%, functions: 80%, lines: 80%)
77
+
78
+ **Success Criteria:**
79
+ - Vitest config loads without errors
80
+ - `bun test` command works
81
+ - Basic test passes
82
+ - Coverage reporting enabled
83
+
84
+ **Blockers:** None
85
+
86
+ ---
87
+
88
+ ### Task 1.2: Create Mock Factory System
89
+
90
+ **Files:**
91
+ - `/Users/toc/Server/ONE/web/src/tests/mocks/factory.ts`
92
+ - `/Users/toc/Server/ONE/web/src/tests/mocks/convex.ts`
93
+ - `/Users/toc/Server/ONE/web/src/tests/mocks/data.ts`
94
+
95
+ **Requirements:**
96
+ - Mock factory for all 6-dimension entities (groups, people, things, connections, events, knowledge)
97
+ - Convex useQuery/useMutation mocks
98
+ - Realistic data fixtures
99
+ - Type-safe mocks matching Convex schema
100
+
101
+ **Mock Coverage:**
102
+ ```
103
+ Groups:
104
+ - Organization (parent)
105
+ - Department (child)
106
+ - Team (child-child)
107
+
108
+ People (Things with role):
109
+ - platform_owner
110
+ - org_owner
111
+ - org_user
112
+ - customer
113
+
114
+ Things (66 types):
115
+ - course, ai_clone, blog_post, token, content_item
116
+ - agent, workflow, integration, etc.
117
+
118
+ Connections:
119
+ - owns, authored, enrolled_in, follows
120
+ - holds_tokens, delegated, communicated
121
+
122
+ Events:
123
+ - entity_created, entity_updated, course_enrolled
124
+ - connection_created, event_created
125
+
126
+ Knowledge:
127
+ - Labels, vectors, taxonomy
128
+ ```
129
+
130
+ **Success Criteria:**
131
+ - All 6 dimension types have realistic mocks
132
+ - Type safety (no `any` except properties)
133
+ - Mocks pass TypeScript strict mode
134
+
135
+ **Blockers:** None - foundation layer
136
+
137
+ ---
138
+
139
+ ### Task 1.3: Setup Test Utilities & Helpers
140
+
141
+ **Files:**
142
+ - `/Users/toc/Server/ONE/web/src/tests/utils/setup.tsx`
143
+ - `/Users/toc/Server/ONE/web/src/tests/utils/render.tsx`
144
+ - `/Users/toc/Server/ONE/web/src/tests/utils/assertions.ts`
145
+
146
+ **Requirements:**
147
+ - Custom render function with Convex + providers
148
+ - Common assertions for ontology data
149
+ - Test data builders (fluent API)
150
+ - Performance measurement helpers
151
+
152
+ **Utilities:**
153
+ ```typescript
154
+ // Custom render with all providers
155
+ renderWithProviders(component, options)
156
+
157
+ // Common assertions
158
+ assertGroupExists(groupId, type)
159
+ assertThingHasConnection(thingId, relationType)
160
+ assertEventLogged(eventType, targetId)
161
+ assertThingStatusIs(thingId, status)
162
+
163
+ // Data builders
164
+ new GroupBuilder().withName('Test').asOrganization()
165
+ new ThingBuilder().withType('course').withStatus('published')
166
+ new ConnectionBuilder().owns().from(userId).to(courseId)
167
+
168
+ // Performance
169
+ measureRenderTime(component)
170
+ measureQueryTime(queryFn)
171
+ ```
172
+
173
+ **Success Criteria:**
174
+ - Setup utilities importable across all tests
175
+ - Type-safe builders
176
+ - No TypeScript errors
177
+
178
+ **Blockers:** Requires Task 1.1, 1.2 complete
179
+
180
+ ---
181
+
182
+ ## Phase 2: Component Unit Tests (Cycle 67-72)
183
+
184
+ ### Task 2.1: Demo Component Tests
185
+
186
+ **Components to Test:**
187
+ 1. HooksDemo.tsx
188
+ 2. SearchDemo.tsx
189
+ 3. EventsDemo.tsx
190
+ 4. ConnectionsDemo.tsx
191
+ 5. PeopleDemo.tsx
192
+ 6. GroupsDemo.tsx
193
+ 7. DemoHero.tsx
194
+ 8. DemoContainer.tsx
195
+
196
+ **File:** `/Users/toc/Server/ONE/web/src/tests/components/demo/demo.test.tsx`
197
+
198
+ **Test Cases per Component (8 tests each):**
199
+
200
+ ```
201
+ HooksDemo Tests:
202
+ ✓ Should render hooks examples without crashing
203
+ ✓ Should display useQuery hook documentation
204
+ ✓ Should display useMutation hook documentation
205
+ ✓ Should show real-time updates example
206
+ ✓ Should display error handling patterns
207
+ ✓ Should show loading state examples
208
+ ✓ Should render code examples correctly
209
+ ✓ Should handle code copy functionality
210
+
211
+ SearchDemo Tests:
212
+ ✓ Should render search interface
213
+ ✓ Should display vector search explanation
214
+ ✓ Should show example queries
215
+ ✓ Should handle query submission
216
+ ✓ Should display search results
217
+ ✓ Should filter results by type
218
+ ✓ Should sort by relevance
219
+ ✓ Should handle no results state
220
+
221
+ EventsDemo Tests:
222
+ ✓ Should render events feed
223
+ ✓ Should display event timeline
224
+ ✓ Should show event types
225
+ ✓ Should filter events by actor
226
+ ✓ Should filter events by target
227
+ ✓ Should paginate events
228
+ ✓ Should show real-time updates
229
+ ✓ Should handle event creation
230
+ ```
231
+
232
+ **Success Criteria:**
233
+ - All 64 demo component tests passing (8 components × 8 tests)
234
+ - 100% component coverage
235
+ - No snapshot mismatches
236
+
237
+ **Blockers:** Task 1.3 required
238
+
239
+ ---
240
+
241
+ ### Task 2.2: Feature Component Tests
242
+
243
+ **Components to Test:**
244
+ 1. ContactForm.tsx
245
+ 2. GroupTypeSelector.tsx
246
+ 3. InstallationFileBrowser.tsx
247
+ 4. OntologyExplorer.tsx
248
+ 5. SendToStudios.tsx
249
+ 6. SendToTools.tsx
250
+ 7. PerformanceChart.tsx
251
+
252
+ **File:** `/Users/toc/Server/ONE/web/src/tests/components/features/features.test.tsx`
253
+
254
+ **Test Cases per Component:**
255
+
256
+ ```
257
+ ContactForm Tests (8 tests):
258
+ ✓ Should render form with all fields
259
+ ✓ Should validate email format
260
+ ✓ Should validate required fields
261
+ ✓ Should submit form successfully
262
+ ✓ Should display validation errors
263
+ ✓ Should disable submit while loading
264
+ ✓ Should show success message after submit
265
+ ✓ Should clear form after successful submit
266
+
267
+ GroupTypeSelector Tests (8 tests):
268
+ ✓ Should render all 6 group types
269
+ ✓ Should select group type
270
+ ✓ Should highlight selected type
271
+ ✓ Should display type descriptions
272
+ ✓ Should show type icons
273
+ ✓ Should disable unavailable types based on permissions
274
+ ✓ Should trigger onChange callback
275
+ ✓ Should support keyboard navigation
276
+
277
+ InstallationFileBrowser Tests (8 tests):
278
+ ✓ Should render file tree
279
+ ✓ Should display folder structure
280
+ ✓ Should expand/collapse folders
281
+ ✓ Should show file types with icons
282
+ ✓ Should highlight selected file
283
+ ✓ Should scroll to selected file
284
+ ✓ Should support keyboard navigation
285
+ ✓ Should handle empty directories
286
+
287
+ OntologyExplorer Tests (8 tests):
288
+ ✓ Should render 6 dimensions
289
+ ✓ Should display entity types
290
+ ✓ Should show connections between entities
291
+ ✓ Should expand/collapse dimensions
292
+ ✓ Should filter by search term
293
+ ✓ Should highlight matches
294
+ ✓ Should show entity counts
295
+ ✓ Should handle navigation
296
+
297
+ PerformanceChart Tests (6 tests):
298
+ ✓ Should render chart with data
299
+ ✓ Should display LCP, FID, CLS metrics
300
+ ✓ Should show score trends over time
301
+ ✓ Should handle missing data points
302
+ ✓ Should render legend correctly
303
+ ✓ Should be responsive
304
+
305
+ SendToStudios Tests (6 tests):
306
+ ✓ Should render studio list
307
+ ✓ Should select multiple studios
308
+ ✓ Should disable unavailable studios
309
+ ✓ Should send content to selected studios
310
+ ✓ Should show success confirmation
311
+ ✓ Should handle send errors
312
+ ```
313
+
314
+ **Success Criteria:**
315
+ - 48 feature component tests passing
316
+ - Form validation tests pass
317
+ - User interactions work as expected
318
+
319
+ **Blockers:** Task 1.3, Task 2.1 required
320
+
321
+ ---
322
+
323
+ ### Task 2.3: UI Component Coverage Tests
324
+
325
+ **Scope:** Sample 10 key shadcn/ui components
326
+
327
+ **Components:**
328
+ 1. Button
329
+ 2. Input
330
+ 3. Card
331
+ 4. Dialog
332
+ 5. Tabs
333
+ 6. Select
334
+ 7. FormField
335
+ 8. Alert
336
+ 9. Badge
337
+ 10. Dropdown Menu
338
+
339
+ **File:** `/Users/toc/Server/ONE/web/src/tests/components/ui/ui-components.test.tsx`
340
+
341
+ **Test Cases per Component (4-6 tests):**
342
+
343
+ ```
344
+ Button Tests:
345
+ ✓ Should render with text
346
+ ✓ Should apply variant styles
347
+ ✓ Should handle click events
348
+ ✓ Should be disabled when disabled prop set
349
+ ✓ Should show loading state
350
+ ✓ Should support keyboard activation
351
+
352
+ Input Tests:
353
+ ✓ Should render input field
354
+ ✓ Should handle onChange
355
+ ✓ Should validate on blur
356
+ ✓ Should support placeholder
357
+ ✓ Should be disabled when disabled prop set
358
+
359
+ Dialog Tests:
360
+ ✓ Should render hidden initially
361
+ ✓ Should open on trigger click
362
+ ✓ Should close on close button
363
+ ✓ Should close on escape key
364
+ ✓ Should trap focus inside dialog
365
+ ✓ Should restore focus after close
366
+
367
+ Select Tests:
368
+ ✓ Should render dropdown
369
+ ✓ Should open on click
370
+ ✓ Should select option
371
+ ✓ Should display selected value
372
+ ✓ Should filter options
373
+ ✓ Should support keyboard navigation
374
+ ```
375
+
376
+ **Success Criteria:**
377
+ - 50+ UI component tests passing
378
+ - Accessibility compliance verified
379
+ - Visual consistency maintained
380
+
381
+ **Blockers:** Task 1.3 required
382
+
383
+ ---
384
+
385
+ ## Phase 3: Integration Tests (Cycle 73-78)
386
+
387
+ ### Task 3.1: Convex Hook Integration Tests
388
+
389
+ **File:** `/Users/toc/Server/ONE/web/src/tests/integration/convex-hooks.test.tsx`
390
+
391
+ **Test Cases:**
392
+
393
+ ```
394
+ useQuery Integration Tests (8 tests):
395
+ ✓ Should fetch and display entities
396
+ ✓ Should refetch on dependency change
397
+ ✓ Should handle loading state
398
+ ✓ Should handle error state
399
+ ✓ Should cache results
400
+ ✓ Should support pagination
401
+ ✓ Should filter by groupId (multi-tenant isolation)
402
+ ✓ Should show real-time updates
403
+
404
+ useMutation Integration Tests (8 tests):
405
+ ✓ Should execute mutation
406
+ ✓ Should update UI optimistically
407
+ ✓ Should handle mutation error and rollback
408
+ ✓ Should trigger refetch of related queries
409
+ ✓ Should log event after mutation
410
+ ✓ Should validate permissions before mutation
411
+ ✓ Should handle loading state
412
+ ✓ Should show success toast
413
+
414
+ Connection Data Flow Tests (6 tests):
415
+ ✓ Should create connection between entities
416
+ ✓ Should update connection metadata
417
+ ✓ Should delete connection
418
+ ✓ Should prevent invalid connections
419
+ ✓ Should log connection events
420
+ ✓ Should enforce permission checks
421
+ ```
422
+
423
+ **Success Criteria:**
424
+ - 22 integration tests passing
425
+ - Real Convex queries/mutations tested
426
+ - Mocks validate against actual schema
427
+
428
+ **Blockers:** Task 2.1, 2.2 required, Convex backend ready
429
+
430
+ ---
431
+
432
+ ### Task 3.2: Component Composition Integration Tests
433
+
434
+ **File:** `/Users/toc/Server/ONE/web/src/tests/integration/component-composition.test.tsx`
435
+
436
+ **Test Scenarios:**
437
+
438
+ ```
439
+ Demo + Feature Component Composition (6 tests):
440
+ ✓ ThingsPlayground (Thing list + Thing detail)
441
+ ✓ GroupsDemo (Group selector + Group hierarchy)
442
+ ✓ PeopleDemo (User list + User roles)
443
+ ✓ EventsDemo (Event timeline + event filters)
444
+ ✓ SearchDemo (Search input + results list)
445
+ ✓ ConnectionsDemo (Connection creator + connection list)
446
+
447
+ Data Flow Through Components (6 tests):
448
+ ✓ Should pass props down correctly
449
+ ✓ Should propagate events up correctly
450
+ ✓ Should update sibling components
451
+ ✓ Should handle parent re-renders
452
+ ✓ Should maintain component state
453
+ ✓ Should sync query results across components
454
+
455
+ State Synchronization Tests (6 tests):
456
+ ✓ Should sync Jotai atoms across components
457
+ ✓ Should sync Nanostores across components
458
+ ✓ Should maintain form state during interactions
459
+ ✓ Should clear state on unmount
460
+ ✓ Should handle state reset
461
+ ✓ Should support undo/redo patterns
462
+ ```
463
+
464
+ **Success Criteria:**
465
+ - 18 composition tests passing
466
+ - Data flows correctly through component trees
467
+ - State management consistent
468
+
469
+ **Blockers:** Task 3.1 required
470
+
471
+ ---
472
+
473
+ ### Task 3.3: Form Integration Tests
474
+
475
+ **File:** `/Users/toc/Server/ONE/web/src/tests/integration/forms.test.tsx`
476
+
477
+ **Test Scenarios:**
478
+
479
+ ```
480
+ Create Entity Flow (8 tests):
481
+ ✓ ContactForm → Convex mutation → Event creation
482
+ ✓ Validate all required fields
483
+ ✓ Show validation errors
484
+ ✓ Submit successfully
485
+ ✓ Create event log
486
+ ✓ Update groups query after create
487
+ ✓ Show success toast
488
+ ✓ Clear form fields
489
+
490
+ Update Entity Flow (6 tests):
491
+ ✓ Load entity data into form
492
+ ✓ Update fields
493
+ ✓ Validate changes
494
+ ✓ Submit successfully
495
+ ✓ Log update event
496
+ ✓ Refetch entity details
497
+
498
+ Delete Confirmation Flow (4 tests):
499
+ ✓ Show delete confirmation dialog
500
+ ✓ Confirm deletion
501
+ ✓ Execute delete mutation
502
+ ✓ Refetch list after delete
503
+
504
+ Multi-step Form Flow (4 tests):
505
+ ✓ GroupTypeSelector → Additional properties → Confirmation
506
+ ✓ Navigate between steps
507
+ ✓ Validate at each step
508
+ ✓ Submit final form
509
+ ```
510
+
511
+ **Success Criteria:**
512
+ - 22 form integration tests passing
513
+ - All CRUD operations work end-to-end
514
+ - Error handling validated
515
+
516
+ **Blockers:** Task 3.1, 3.2 required
517
+
518
+ ---
519
+
520
+ ## Phase 4: User Interaction Tests (Cycle 79-84)
521
+
522
+ ### Task 4.1: Form Submission & Validation Tests
523
+
524
+ **File:** `/Users/toc/Server/ONE/web/src/tests/interactions/form-submission.test.tsx`
525
+
526
+ **Test Cases:**
527
+
528
+ ```
529
+ ContactForm Interactions (10 tests):
530
+ ✓ User types in name field → name updates
531
+ ✓ User types in email field → email validates
532
+ ✓ User types in message field → message updates
533
+ ✓ User submits empty form → shows validation error
534
+ ✓ User submits with invalid email → shows email error
535
+ ✓ User submits with valid data → success toast appears
536
+ ✓ User sees loading spinner during submission
537
+ ✓ User can retry after network error
538
+ ✓ Form clears after successful submission
539
+ ✓ User can cancel form submission
540
+
541
+ GroupTypeSelector Interactions (8 tests):
542
+ ✓ User clicks group type → type highlights
543
+ ✓ User clicks again → selection toggles
544
+ ✓ User keyboard navigates (arrows) → highlights change
545
+ ✓ User presses Enter → selects type
546
+ ✓ User presses Escape → closes selection
547
+ ✓ User cannot select unavailable types
548
+ ✓ Selection shows in parent form
549
+ ✓ onChange callback fires correctly
550
+
551
+ OntologyExplorer Interactions (8 tests):
552
+ ✓ User clicks dimension → expands/collapses
553
+ ✓ User clicks entity type → shows details
554
+ ✓ User searches → filters results
555
+ ✓ User clicks reset → clears search
556
+ ✓ User navigates with keyboard
557
+ ✓ User can copy entity ID
558
+ ✓ User can view entity properties
559
+ ✓ User can navigate to entity detail page
560
+ ```
561
+
562
+ **Success Criteria:**
563
+ - 26 interaction tests passing
564
+ - Form validation logic verified
565
+ - User feedback working (toasts, errors)
566
+
567
+ **Blockers:** Task 2.2, 3.3 required
568
+
569
+ ---
570
+
571
+ ### Task 4.2: Button & Click Interactions
572
+
573
+ **File:** `/Users/toc/Server/ONE/web/src/tests/interactions/button-interactions.test.tsx`
574
+
575
+ **Test Cases:**
576
+
577
+ ```
578
+ Create Button Interactions (6 tests):
579
+ ✓ Click create button → open form/dialog
580
+ ✓ Form dialog shows correct title
581
+ ✓ Click cancel → close dialog without creating
582
+ ✓ Click submit → create entity
583
+ ✓ Click outside dialog → close dialog
584
+ ✓ Loading state shown during creation
585
+
586
+ Edit Button Interactions (6 tests):
587
+ ✓ Click edit button → load entity data in form
588
+ ✓ Form shows correct initial values
589
+ ✓ Click cancel → close without saving
590
+ ✓ Click save → update entity
591
+ ✓ Show change indicators
592
+ ✓ Loading state shown during update
593
+
594
+ Delete Button Interactions (6 tests):
595
+ ✓ Click delete button → show confirmation
596
+ ✓ Confirmation shows entity name
597
+ ✓ Click cancel → close dialog
598
+ ✓ Click confirm → delete entity
599
+ ✓ Loading state shown during deletion
600
+ ✓ Success toast after deletion
601
+
602
+ Batch Action Buttons (4 tests):
603
+ ✓ Select multiple entities
604
+ ✓ Batch action button appears
605
+ ✓ Click batch delete → delete all
606
+ ✓ Update list after batch operation
607
+
608
+ Navigation Buttons (4 tests):
609
+ ✓ Next button → navigate forward
610
+ ✓ Previous button → navigate backward
611
+ ✓ Link buttons → navigate to routes
612
+ ✓ External link buttons → open new tab
613
+ ```
614
+
615
+ **Success Criteria:**
616
+ - 26 button interaction tests passing
617
+ - All CRUD operations interactive
618
+ - Loading/disabled states work
619
+
620
+ **Blockers:** Task 4.1 required
621
+
622
+ ---
623
+
624
+ ### Task 4.3: Navigation & Route Tests
625
+
626
+ **File:** `/Users/toc/Server/ONE/web/src/tests/interactions/navigation.test.tsx`
627
+
628
+ **Test Cases:**
629
+
630
+ ```
631
+ Link Navigation (8 tests):
632
+ ✓ Click internal link → navigate to page
633
+ ✓ Breadcrumb navigation → navigate up hierarchy
634
+ ✓ Back button → go to previous page
635
+ ✓ Logo click → go to home
636
+ ✓ Sidebar links → navigate to sections
637
+ ✓ Navigation maintains scroll position
638
+ ✓ Active link shows highlighted
639
+ ✓ Disabled links don't navigate
640
+
641
+ Page Load Tests (6 tests):
642
+ ✓ Load groups page → show groups list
643
+ ✓ Load things page → show things list
644
+ ✓ Load people page → show people list
645
+ ✓ Load dashboard → show user stats
646
+ ✓ Load entity detail page → show entity details
647
+ ✓ 404 page shows for invalid routes
648
+
649
+ State Persistence (4 tests):
650
+ ✓ Navigate away → state preserved
651
+ ✓ Go back → state restored
652
+ ✓ Refresh page → state reloaded
653
+ ✓ Open multiple tabs → independent state
654
+
655
+ Query Parameter Tests (6 tests):
656
+ ✓ URL query params filter results
657
+ ✓ Sorting query param works
658
+ ✓ Pagination query param works
659
+ ✓ Search query param works
660
+ ✓ Update URL on filter change
661
+ ✓ Restore filter from URL on load
662
+ ```
663
+
664
+ **Success Criteria:**
665
+ - 24 navigation tests passing
666
+ - All routes work correctly
667
+ - State persistence validated
668
+
669
+ **Blockers:** Task 4.1, 4.2 required
670
+
671
+ ---
672
+
673
+ ## Phase 5: Edge Cases & Error Handling (Cycle 85-88)
674
+
675
+ ### Task 5.1: Loading States & Async Operations
676
+
677
+ **File:** `/Users/toc/Server/ONE/web/src/tests/edge-cases/loading-states.test.tsx`
678
+
679
+ **Test Cases:**
680
+
681
+ ```
682
+ Component Loading States (8 tests):
683
+ ✓ Show loading skeleton on initial load
684
+ ✓ Show spinner during mutation
685
+ ✓ Disable buttons while loading
686
+ ✓ Show loading text message
687
+ ✓ Loading state clears after success
688
+ ✓ Loading state clears after error
689
+ ✓ Multiple concurrent loads handled
690
+ ✓ Loading cancellation works
691
+
692
+ Suspense Boundaries (6 tests):
693
+ ✓ Suspense shows fallback while loading
694
+ ✓ Component renders after suspense resolves
695
+ ✓ Error boundary catches suspense errors
696
+ ✓ Multiple suspense boundaries work
697
+ ✓ Nested suspense works correctly
698
+ ✓ Suspense with streaming works
699
+
700
+ Timeout Scenarios (6 tests):
701
+ ✓ Long-running query shows timeout message
702
+ ✓ Long-running mutation shows timeout error
703
+ ✓ User can retry after timeout
704
+ ✓ Timeout error is logged
705
+ ✓ Timeout doesn't crash app
706
+ ✓ Recovery from timeout works
707
+
708
+ Pagination & Infinite Scroll (6 tests):
709
+ ✓ Load more button fetches next page
710
+ ✓ Infinite scroll loads next page
711
+ ✓ Show loading indicator between pages
712
+ ✓ Append new items to list
713
+ ✓ Disable load more at end
714
+ ✓ Prevent duplicate items
715
+ ```
716
+
717
+ **Success Criteria:**
718
+ - 26 loading state tests passing
719
+ - All async states handled
720
+ - No race conditions
721
+
722
+ **Blockers:** Task 3.1 required
723
+
724
+ ---
725
+
726
+ ### Task 5.2: Error Boundary & Exception Handling
727
+
728
+ **File:** `/Users/toc/Server/ONE/web/src/tests/edge-cases/error-handling.test.tsx`
729
+
730
+ **Test Cases:**
731
+
732
+ ```
733
+ Error Boundary Tests (8 tests):
734
+ ✓ Error boundary catches component errors
735
+ ✓ Error boundary shows error UI
736
+ ✓ Error boundary logs error
737
+ ✓ Reset button works
738
+ ✓ Parent boundary catches errors from child
739
+ ✓ Multiple boundaries work independently
740
+ ✓ Error doesn't crash whole app
741
+ ✓ User can navigate away from error
742
+
743
+ Query Error Handling (8 tests):
744
+ ✓ Query error shows error message
745
+ ✓ User can retry query
746
+ ✓ 404 error handled correctly
747
+ ✓ 500 error handled correctly
748
+ ✓ Network error handled correctly
749
+ ✓ Timeout error handled correctly
750
+ ✓ Unauthorized error shows login
751
+ ✓ Forbidden error shows permission denied
752
+
753
+ Mutation Error Handling (8 tests):
754
+ ✓ Mutation error shows toast
755
+ ✓ Optimistic update rolled back on error
756
+ ✓ Form shows validation errors
757
+ ✓ User can fix and retry
758
+ ✓ Network error during mutation handled
759
+ ✓ Timeout error during mutation handled
760
+ ✓ Mutation state cleared after error
761
+ ✓ Multiple concurrent mutations handle errors
762
+
763
+ Validation Error Tests (6 tests):
764
+ ✓ Show field-level validation errors
765
+ ✓ Show form-level validation error
766
+ ✓ Highlight invalid fields
767
+ ✓ Clear error on field change
768
+ ✓ Custom validation messages shown
769
+ ✓ Async validation works
770
+ ```
771
+
772
+ **Success Criteria:**
773
+ - 30 error handling tests passing
774
+ - All errors caught gracefully
775
+ - No unhandled promise rejections
776
+
777
+ **Blockers:** Task 5.1 required
778
+
779
+ ---
780
+
781
+ ### Task 5.3: Empty States & Null Safety
782
+
783
+ **File:** `/Users/toc/Server/ONE/web/src/tests/edge-cases/empty-states.test.tsx`
784
+
785
+ **Test Cases:**
786
+
787
+ ```
788
+ Empty List States (6 tests):
789
+ ✓ Show empty state message for empty list
790
+ ✓ Hide column headers when list empty
791
+ ✓ Show "create" button in empty state
792
+ ✓ Empty state is accessible
793
+ ✓ Search returns empty state
794
+ ✓ Filter returns empty state
795
+
796
+ Null/Undefined Safety (8 tests):
797
+ ✓ Component handles undefined props
798
+ ✓ Component handles null props
799
+ ✓ Component handles missing optional fields
800
+ ✓ Component handles empty strings
801
+ ✓ Component handles empty arrays
802
+ ✓ Component handles empty objects
803
+ ✓ No console errors with null/undefined
804
+ ✓ Graceful fallbacks shown
805
+
806
+ Missing Data Scenarios (6 tests):
807
+ ✓ Missing entity image shows default
808
+ ✓ Missing entity description shows placeholder
809
+ ✓ Missing user avatar shows initial
810
+ ✓ Missing metadata shows N/A
811
+ ✓ Missing timestamps show calculated
812
+ ✓ Missing permissions show disabled state
813
+
814
+ Edge Case Values (6 tests):
815
+ ✓ Very long text wraps correctly
816
+ ✓ Very long numbers format correctly
817
+ ✓ Unicode characters display correctly
818
+ ✓ Special characters escaped
819
+ ✓ Empty arrays handled
820
+ ✓ Zero values handled correctly
821
+ ```
822
+
823
+ **Success Criteria:**
824
+ - 26 empty/null state tests passing
825
+ - All edge cases handled gracefully
826
+ - No render errors with edge data
827
+
828
+ **Blockers:** Task 2.1, 2.2, 2.3 required
829
+
830
+ ---
831
+
832
+ ## Phase 6: Accessibility & Responsive Design (Cycle 89-95)
833
+
834
+ ### Task 6.1: Keyboard Navigation & ARIA Tests
835
+
836
+ **File:** `/Users/toc/Server/ONE/web/src/tests/a11y/keyboard-navigation.test.tsx`
837
+
838
+ **Test Cases:**
839
+
840
+ ```
841
+ Keyboard Navigation (10 tests):
842
+ ✓ Tab navigates through interactive elements
843
+ ✓ Shift+Tab navigates backwards
844
+ ✓ Enter activates buttons
845
+ ✓ Space activates buttons & checkboxes
846
+ ✓ Escape closes dialogs
847
+ ✓ Escape closes dropdowns
848
+ ✓ Arrow keys navigate menu items
849
+ ✓ Arrow keys navigate radio buttons
850
+ ✓ Focus trap in dialogs
851
+ ✓ Focus restored after dialog close
852
+
853
+ Tab Index Management (6 tests):
854
+ ✓ Proper tab order on page
855
+ ✓ Skip links work
856
+ ✓ Focusable elements have tab index
857
+ ✓ Disabled elements not tabbable
858
+ ✓ Modal traps focus
859
+ ✓ Removed elements don't receive focus
860
+
861
+ ARIA Labels (10 tests):
862
+ ✓ Buttons have accessible names
863
+ ✓ Form inputs have labels
864
+ ✓ Icons have aria-label
865
+ ✓ Images have alt text
866
+ ✓ Links have accessible names
867
+ ✓ Landmarks have aria-label where needed
868
+ ✓ List items marked as list
869
+ ✓ Tables have headers
870
+ ✓ Form errors linked to inputs
871
+ ✓ Loading states announced
872
+
873
+ ARIA Roles (8 tests):
874
+ ✓ Buttons have correct role
875
+ ✓ Links have correct role
876
+ ✓ Dialogs have dialog role
877
+ ✓ Alerts have alert role
878
+ ✓ Progress bars have progressbar role
879
+ ✓ Tabs have tablist/tab roles
880
+ ✓ List items have role
881
+ ✓ Custom components have correct role
882
+
883
+ Screen Reader Tests (6 tests):
884
+ ✓ Page structure announced correctly
885
+ ✓ Form instructions announced
886
+ ✓ Validation errors announced
887
+ ✓ Success messages announced
888
+ ✓ Loading state announced
889
+ ✓ Page changes announced
890
+ ```
891
+
892
+ **Success Criteria:**
893
+ - 40 keyboard/ARIA tests passing
894
+ - WCAG 2.1 AA compliance verified
895
+ - Screen reader tested
896
+
897
+ **Blockers:** Task 2.1, 2.2, 2.3 required
898
+
899
+ ---
900
+
901
+ ### Task 6.2: Dark Mode & Theme Tests
902
+
903
+ **File:** `/Users/toc/Server/ONE/web/src/tests/a11y/theme-testing.test.tsx`
904
+
905
+ **Test Cases:**
906
+
907
+ ```
908
+ Dark Mode Rendering (8 tests):
909
+ ✓ Dark mode toggle switches theme
910
+ ✓ Dark theme colors applied correctly
911
+ ✓ Light theme colors applied correctly
912
+ ✓ Theme preference persisted in localStorage
913
+ ✓ System preference detected and used
914
+ ✓ Theme transitions smoothly
915
+ ✓ All components render in dark mode
916
+ ✓ No color contrast issues in dark mode
917
+
918
+ Color Contrast (10 tests):
919
+ ✓ Text on background meets WCAG AA (4.5:1)
920
+ ✓ Large text meets WCAG AA (3:1)
921
+ ✓ Buttons have sufficient contrast
922
+ ✓ Form inputs have sufficient contrast
923
+ ✓ Links have sufficient contrast
924
+ ✓ Icons have sufficient contrast
925
+ ✓ Hover states have sufficient contrast
926
+ ✓ Focus states have sufficient contrast
927
+ ✓ Disabled states visible
928
+ ✓ Error states clearly visible
929
+
930
+ Theme Customization (6 tests):
931
+ ✓ Primary color customizable
932
+ ✓ Secondary color customizable
933
+ ✓ Background color customizable
934
+ ✓ Text color customizable
935
+ ✓ Custom theme persisted
936
+ ✓ Theme reset works
937
+
938
+ CSS Variables (6 tests):
939
+ ✓ CSS variables defined correctly
940
+ ✓ Theme colors use CSS variables
941
+ ✓ Dark mode overrides variables
942
+ ✓ Colors transition smoothly
943
+ ✓ Variables work across components
944
+ ✓ No hardcoded colors
945
+ ```
946
+
947
+ **Success Criteria:**
948
+ - 30 theme tests passing
949
+ - Dark mode fully functional
950
+ - WCAG color contrast verified
951
+
952
+ **Blockers:** Task 2.1, 2.2, 2.3 required
953
+
954
+ ---
955
+
956
+ ### Task 6.3: Responsive Design Tests
957
+
958
+ **File:** `/Users/toc/Server/ONE/web/src/tests/a11y/responsive-design.test.tsx`
959
+
960
+ **Test Cases:**
961
+
962
+ ```
963
+ Mobile Viewport (8 tests):
964
+ ✓ Layout stacks vertically on mobile
965
+ ✓ Navigation becomes hamburger menu
966
+ ✓ Forms are full width
967
+ ✓ Images scale correctly
968
+ ✓ Text is readable (16px+ minimum)
969
+ ✓ Touch targets are at least 44x44px
970
+ ✓ Modals are full screen on mobile
971
+ ✓ Overflow handled with scrolling
972
+
973
+ Tablet Viewport (6 tests):
974
+ ✓ Layout uses tablet spacing
975
+ ✓ Two-column layout where appropriate
976
+ ✓ Form labels beside inputs
977
+ ✓ Tables scroll horizontally if needed
978
+ ✓ Navigation shows more items
979
+ ✓ Sidebars visible or collapsible
980
+
981
+ Desktop Viewport (6 tests):
982
+ ✓ Full multi-column layouts
983
+ ✓ Sidebars visible
984
+ ✓ Max-width containers centered
985
+ ✓ Whitespace balanced
986
+ ✓ Multiple columns work
987
+ ✓ Hover states visible
988
+
989
+ Responsive Images (6 tests):
990
+ ✓ Images scale with viewport
991
+ ✓ srcset used for different sizes
992
+ ✓ Image aspect ratio maintained
993
+ ✓ Images don't cause layout shift
994
+ ✓ Background images responsive
995
+ ✓ SVG icons scale correctly
996
+
997
+ Orientation Changes (4 tests):
998
+ ✓ Portrait layout works
999
+ ✓ Landscape layout works
1000
+ ✓ Layout switches on rotation
1001
+ ✓ Scroll position preserved
1002
+
1003
+ Viewport Meta Tests (4 tests):
1004
+ ✓ Viewport width set to device-width
1005
+ ✓ Initial scale set correctly
1006
+ ✓ Zoom not disabled
1007
+ ✓ Viewport meta tag present
1008
+ ```
1009
+
1010
+ **Success Criteria:**
1011
+ - 34 responsive design tests passing
1012
+ - All viewports tested
1013
+ - No layout shifts (CLS < 0.1)
1014
+
1015
+ **Blockers:** Task 2.1, 2.2, 2.3 required
1016
+
1017
+ ---
1018
+
1019
+ ## Phase 7: E2E Critical Path Tests (Cycle 96-100)
1020
+
1021
+ ### Task 7.1: Authentication Flow E2E Tests
1022
+
1023
+ **File:** `/Users/toc/Server/ONE/web/src/tests/e2e/auth-flow.test.ts`
1024
+
1025
+ **Test Cases:**
1026
+
1027
+ ```
1028
+ Sign Up Flow (6 tests):
1029
+ ✓ User visits signup page
1030
+ ✓ User fills form (email, password, name)
1031
+ ✓ User submits form
1032
+ ✓ User receives confirmation
1033
+ ✓ User is logged in
1034
+ ✓ User redirected to onboarding
1035
+
1036
+ Sign In Flow (6 tests):
1037
+ ✓ User visits login page
1038
+ ✓ User enters email and password
1039
+ ✓ User submits form
1040
+ ✓ User is logged in
1041
+ ✓ User is redirected to dashboard
1042
+ ✓ Session token stored correctly
1043
+
1044
+ Password Reset Flow (6 tests):
1045
+ ✓ User visits forgot password
1046
+ ✓ User enters email
1047
+ ✓ User receives reset email
1048
+ ✓ User clicks reset link
1049
+ ✓ User sets new password
1050
+ ✓ User can login with new password
1051
+
1052
+ Magic Link Flow (6 tests):
1053
+ ✓ User requests magic link
1054
+ ✓ User receives email with link
1055
+ ✓ User clicks link
1056
+ ✓ User is logged in
1057
+ ✓ Link is one-time use
1058
+ ✓ Expired links show error
1059
+
1060
+ Multi-Method Auth (4 tests):
1061
+ ✓ User can signup with email/password
1062
+ ✓ User can signup with OAuth
1063
+ ✓ User can login with either method
1064
+ ✓ User accounts linked correctly
1065
+
1066
+ Session Management (6 tests):
1067
+ ✓ Session persists across page reload
1068
+ ✓ Session expires after 30 days
1069
+ ✓ User can logout
1070
+ ✓ Logout clears session
1071
+ ✓ Multiple sessions allowed
1072
+ ✓ Session timeout shows warning
1073
+ ```
1074
+
1075
+ **Success Criteria:**
1076
+ - 34 auth E2E tests passing
1077
+ - All 6 auth methods working
1078
+ - No session leaks
1079
+
1080
+ **Blockers:** Authentication backend ready
1081
+
1082
+ ---
1083
+
1084
+ ### Task 7.2: Group & Organization Flow E2E Tests
1085
+
1086
+ **File:** `/Users/toc/Server/ONE/web/src/tests/e2e/groups-flow.test.ts`
1087
+
1088
+ **Test Cases:**
1089
+
1090
+ ```
1091
+ Create Organization Flow (6 tests):
1092
+ ✓ User navigates to create org
1093
+ ✓ User selects org type
1094
+ ✓ User enters org name
1095
+ ✓ User sets plan (starter/pro/enterprise)
1096
+ ✓ User clicks create
1097
+ ✓ Org appears in list
1098
+
1099
+ Group Hierarchy Flow (8 tests):
1100
+ ✓ Create parent group (organization)
1101
+ ✓ Create child group (department)
1102
+ ✓ Create grandchild group (team)
1103
+ ✓ View hierarchy tree
1104
+ ✓ Move group to different parent
1105
+ ✓ Delete child group
1106
+ ✓ Delete parent group (confirms cascade)
1107
+ ✓ View group audit trail
1108
+
1109
+ Group Settings Flow (6 tests):
1110
+ ✓ User navigates to group settings
1111
+ ✓ User updates group name
1112
+ ✓ User changes group type
1113
+ ✓ User updates plan
1114
+ ✓ User manages permissions
1115
+ ✓ User sees audit log
1116
+
1117
+ Group Membership Flow (8 tests):
1118
+ ✓ User invites member via email
1119
+ ✓ Invited user receives email
1120
+ ✓ Invited user accepts invitation
1121
+ ✓ User appears as member
1122
+ ✓ Org owner can change member role
1123
+ ✓ Member can leave group
1124
+ ✓ Org owner can remove member
1125
+ ✓ Member no longer sees group
1126
+
1127
+ Multi-Tenant Isolation (6 tests):
1128
+ ✓ User in Org A can't see Org B data
1129
+ ✓ Query results filtered by groupId
1130
+ ✓ Cross-org access denied
1131
+ ✓ Admin can't access other org settings
1132
+ ✓ Data isolation maintained
1133
+ ✓ Billing per organization
1134
+
1135
+ Group Permissions (6 tests):
1136
+ ✓ platform_owner can manage all orgs
1137
+ ✓ org_owner can manage org settings
1138
+ ✓ org_user can view group data
1139
+ ✓ customer can view limited data
1140
+ ✓ Permissions enforced in UI
1141
+ ✓ API enforces permissions
1142
+ ```
1143
+
1144
+ **Success Criteria:**
1145
+ - 40 group E2E tests passing
1146
+ - Hierarchy operations work
1147
+ - Multi-tenant isolation verified
1148
+
1149
+ **Blockers:** Groups backend ready
1150
+
1151
+ ---
1152
+
1153
+ ### Task 7.3: Thing & Connection Flow E2E Tests
1154
+
1155
+ **File:** `/Users/toc/Server/ONE/web/src/tests/e2e/things-connections-flow.test.ts`
1156
+
1157
+ **Test Cases:**
1158
+
1159
+ ```
1160
+ Create Thing Flow (8 tests):
1161
+ ✓ User navigates to create thing
1162
+ ✓ User selects thing type (course/agent/blog/etc)
1163
+ ✓ User fills required fields
1164
+ ✓ User fills type-specific properties
1165
+ ✓ User sets initial status (draft)
1166
+ ✓ User clicks create
1167
+ ✓ Thing appears in list
1168
+ ✓ Event is logged
1169
+
1170
+ Update Thing Flow (6 tests):
1171
+ ✓ User navigates to thing detail
1172
+ ✓ User edits thing fields
1173
+ ✓ User uploads thing image/file
1174
+ ✓ User updates thing status
1175
+ ✓ User clicks save
1176
+ ✓ Event is logged
1177
+
1178
+ Publish Thing Flow (4 tests):
1179
+ ✓ User changes status from draft → published
1180
+ ✓ Thing appears in marketplace
1181
+ ✓ Event is logged
1182
+ ✓ Notification sent to followers
1183
+
1184
+ Delete Thing Flow (4 tests):
1185
+ ✓ User clicks delete button
1186
+ ✓ Confirmation dialog shown
1187
+ ✓ User confirms delete
1188
+ ✓ Thing removed from list
1189
+
1190
+ Thing Search Flow (6 tests):
1191
+ ✓ User enters search term
1192
+ ✓ Results show matching things
1193
+ ✓ Results filtered by type
1194
+ ✓ Results sorted by relevance
1195
+ ✓ User can sort by date/popularity
1196
+ ✓ User navigates through results
1197
+
1198
+ Create Connection Flow (8 tests):
1199
+ ✓ User selects source thing
1200
+ ✓ User selects connection type
1201
+ ✓ User selects target thing
1202
+ ✓ User enters metadata (if applicable)
1203
+ ✓ User clicks create
1204
+ ✓ Connection appears in both directions
1205
+ ✓ Event is logged
1206
+ ✓ Related items updated
1207
+
1208
+ Update Connection Flow (4 tests):
1209
+ ✓ User navigates to connection
1210
+ ✓ User updates metadata
1211
+ ✓ User clicks save
1212
+ ✓ Event is logged
1213
+
1214
+ Enroll in Course Flow (6 tests):
1215
+ ✓ User views course detail
1216
+ ✓ User clicks enroll button
1217
+ ✓ enrolled_in connection created
1218
+ ✓ Event logged
1219
+ ✓ Course appears in user's list
1220
+ ✓ User can access course content
1221
+
1222
+ Follow Thing Flow (4 tests):
1223
+ ✓ User clicks follow button
1224
+ ✓ follows connection created
1225
+ ✓ User receives updates
1226
+ ✓ Thing shows follower count
1227
+ ```
1228
+
1229
+ **Success Criteria:**
1230
+ - 50 thing/connection E2E tests passing
1231
+ - All CRUD operations work
1232
+ - Events logged correctly
1233
+
1234
+ **Blockers:** Things backend ready
1235
+
1236
+ ---
1237
+
1238
+ ### Task 7.4: Real-Time & Event Flow E2E Tests
1239
+
1240
+ **File:** `/Users/toc/Server/ONE/web/src/tests/e2e/realtime-flow.test.ts`
1241
+
1242
+ **Test Cases:**
1243
+
1244
+ ```
1245
+ Real-Time Query Updates (6 tests):
1246
+ ✓ User A creates thing
1247
+ ✓ User B sees thing appear in real-time
1248
+ ✓ User A updates thing
1249
+ ✓ User B sees update in real-time
1250
+ ✓ User A deletes thing
1251
+ ✓ User B sees deletion in real-time
1252
+
1253
+ Event Stream Flow (8 tests):
1254
+ ✓ User navigates to activity feed
1255
+ ✓ Events display in reverse chronological order
1256
+ ✓ New event appears in feed in real-time
1257
+ ✓ Event shows actor, action, target
1258
+ ✓ User can filter events by type
1259
+ ✓ User can filter events by date range
1260
+ ✓ Event links navigate to target
1261
+ ✓ Event details show full metadata
1262
+
1263
+ Connection Events (6 tests):
1264
+ ✓ Create connection → event logged
1265
+ ✓ Update connection → event logged
1266
+ ✓ Delete connection → event logged
1267
+ ✓ Events show in activity feed
1268
+ ✓ Events show connection metadata
1269
+ ✓ User can view connection history
1270
+
1271
+ Notification Tests (6 tests):
1272
+ ✓ User follows entity → receives follow notification
1273
+ ✓ User enrolls in course → receives confirmation
1274
+ ✓ Admin creates org member → member receives email
1275
+ ✓ Group settings change → admins notified
1276
+ ✓ Notifications appear in UI
1277
+ ✓ User can dismiss notifications
1278
+
1279
+ Multi-User Sync (6 tests):
1280
+ ✓ User A and B open same page
1281
+ ✓ User A creates entity
1282
+ ✓ User B sees entity without refresh
1283
+ ✓ User A updates entity
1284
+ ✓ User B sees update without refresh
1285
+ ✓ Sync works with multiple tabs
1286
+
1287
+ Error Recovery (4 tests):
1288
+ ✓ Connection lost → shows offline indicator
1289
+ ✓ Connection restored → syncs updates
1290
+ ✓ Old updates applied in correct order
1291
+ ✓ No duplicate updates shown
1292
+ ```
1293
+
1294
+ **Success Criteria:**
1295
+ - 36 real-time E2E tests passing
1296
+ - Real-time subscriptions working
1297
+ - Multi-user sync verified
1298
+
1299
+ **Blockers:** Convex real-time backend ready
1300
+
1301
+ ---
1302
+
1303
+ ## Test Organization & File Structure
1304
+
1305
+ ```
1306
+ web/src/tests/
1307
+ ├── mocks/
1308
+ │ ├── factory.ts # Mock data factories
1309
+ │ ├── convex.ts # Convex hook mocks
1310
+ │ └── data.ts # Test fixtures
1311
+ ├── utils/
1312
+ │ ├── setup.tsx # Test environment setup
1313
+ │ ├── render.tsx # Custom render with providers
1314
+ │ ├── assertions.ts # Common assertions
1315
+ │ └── builders.ts # Test data builders
1316
+ ├── components/
1317
+ │ ├── demo/
1318
+ │ │ └── demo.test.tsx # 64 tests (8 components)
1319
+ │ ├── features/
1320
+ │ │ └── features.test.tsx # 48 tests (7 components)
1321
+ │ └── ui/
1322
+ │ └── ui-components.test.tsx # 50 tests (10 components)
1323
+ ├── integration/
1324
+ │ ├── convex-hooks.test.tsx # 22 tests
1325
+ │ ├── component-composition.test.tsx # 18 tests
1326
+ │ └── forms.test.tsx # 22 tests
1327
+ ├── interactions/
1328
+ │ ├── form-submission.test.tsx # 26 tests
1329
+ │ ├── button-interactions.test.tsx # 26 tests
1330
+ │ └── navigation.test.tsx # 24 tests
1331
+ ├── edge-cases/
1332
+ │ ├── loading-states.test.tsx # 26 tests
1333
+ │ ├── error-handling.test.tsx # 30 tests
1334
+ │ └── empty-states.test.tsx # 26 tests
1335
+ ├── a11y/
1336
+ │ ├── keyboard-navigation.test.tsx # 40 tests
1337
+ │ ├── theme-testing.test.tsx # 30 tests
1338
+ │ └── responsive-design.test.tsx # 34 tests
1339
+ └── e2e/
1340
+ ├── auth-flow.test.ts # 34 tests
1341
+ ├── groups-flow.test.ts # 40 tests
1342
+ ├── things-connections-flow.test.ts # 50 tests
1343
+ └── realtime-flow.test.ts # 36 tests
1344
+ ```
1345
+
1346
+ ---
1347
+
1348
+ ## Component Coverage Checklist
1349
+
1350
+ ### Demo Components (8)
1351
+ - [ ] HooksDemo
1352
+ - [ ] SearchDemo
1353
+ - [ ] EventsDemo
1354
+ - [ ] ConnectionsDemo
1355
+ - [ ] PeopleDemo
1356
+ - [ ] GroupsDemo
1357
+ - [ ] DemoHero
1358
+ - [ ] DemoContainer
1359
+
1360
+ ### Feature Components (7)
1361
+ - [ ] ContactForm
1362
+ - [ ] GroupTypeSelector
1363
+ - [ ] InstallationFileBrowser
1364
+ - [ ] OntologyExplorer
1365
+ - [ ] SendToStudios
1366
+ - [ ] SendToTools
1367
+ - [ ] PerformanceChart
1368
+
1369
+ ### UI Components (10)
1370
+ - [ ] Button
1371
+ - [ ] Input
1372
+ - [ ] Card
1373
+ - [ ] Dialog
1374
+ - [ ] Tabs
1375
+ - [ ] Select
1376
+ - [ ] FormField
1377
+ - [ ] Alert
1378
+ - [ ] Badge
1379
+ - [ ] DropdownMenu
1380
+
1381
+ ### Integration Points (6)
1382
+ - [ ] useQuery hooks
1383
+ - [ ] useMutation hooks
1384
+ - [ ] Component composition
1385
+ - [ ] Form flow
1386
+ - [ ] State synchronization
1387
+ - [ ] Navigation
1388
+
1389
+ ---
1390
+
1391
+ ## Test Statistics & Goals
1392
+
1393
+ | Phase | Tests | Target | Status |
1394
+ |-------|-------|--------|--------|
1395
+ | 1. Setup | 0 | N/A | Design |
1396
+ | 2. Components | 162 | 150+ | Design |
1397
+ | 3. Integration | 62 | 50+ | Design |
1398
+ | 4. Interactions | 76 | 70+ | Design |
1399
+ | 5. Edge Cases | 82 | 75+ | Design |
1400
+ | 6. A11y & Responsive | 104 | 100+ | Design |
1401
+ | 7. E2E | 160 | 150+ | Design |
1402
+ | **TOTAL** | **646** | **595+** | **Design** |
1403
+
1404
+ **Coverage Goals:**
1405
+ - Statements: 80%+
1406
+ - Branches: 75%+
1407
+ - Functions: 80%+
1408
+ - Lines: 80%+
1409
+ - Lighthouse: 90+
1410
+
1411
+ ---
1412
+
1413
+ ## Dependencies & Blockers
1414
+
1415
+ ### Backend Dependencies
1416
+ - [ ] Convex schema finalized (groups, things, connections, events, knowledge)
1417
+ - [ ] Auth mutations/queries available
1418
+ - [ ] Real-time subscriptions working
1419
+ - [ ] Event logging implemented
1420
+ - [ ] Permission validation in place
1421
+
1422
+ ### Frontend Dependencies
1423
+ - [ ] Task 1.1: Vitest configuration (blocking all)
1424
+ - [ ] Task 1.2: Mock factory (blocking integration/e2e)
1425
+ - [ ] Task 1.3: Test utilities (blocking all)
1426
+ - [ ] Task 2: Component tests (blocking 3-7)
1427
+ - [ ] Task 3: Integration tests (blocking 4-7)
1428
+ - [ ] Task 4: Interaction tests (blocking 5-7)
1429
+
1430
+ ### Third-Party Dependencies
1431
+ - [ ] @testing-library/react: 16.3.0 (in package.json)
1432
+ - [ ] vitest: 3.2.4 (in package.json)
1433
+ - [ ] happy-dom: 20.0.2 (in package.json)
1434
+ - [ ] jsdom: 27.0.0 (optional, in package.json)
1435
+
1436
+ ---
1437
+
1438
+ ## Success Criteria
1439
+
1440
+ ### Quality Metrics
1441
+ - [ ] 646+ test cases written
1442
+ - [ ] 595+ test cases passing
1443
+ - [ ] Coverage > 80% (statements/functions/lines)
1444
+ - [ ] Coverage > 75% (branches)
1445
+ - [ ] 0 failing tests
1446
+ - [ ] 0 flaky tests (run 10x consistently)
1447
+
1448
+ ### Performance Metrics
1449
+ - [ ] Test suite runs in < 30 seconds
1450
+ - [ ] Single test < 1 second
1451
+ - [ ] Memory usage < 500MB
1452
+
1453
+ ### Code Quality
1454
+ - [ ] No console errors/warnings
1455
+ - [ ] No unhandled promise rejections
1456
+ - [ ] TypeScript strict mode passes
1457
+ - [ ] Linting passes
1458
+
1459
+ ### Accessibility Compliance
1460
+ - [ ] WCAG 2.1 AA compliance verified
1461
+ - [ ] Screen reader tested
1462
+ - [ ] Keyboard navigation working
1463
+ - [ ] Color contrast verified
1464
+
1465
+ ### Documentation
1466
+ - [ ] Test files have JSDoc comments
1467
+ - [ ] Mock factories documented
1468
+ - [ ] Test utilities documented
1469
+ - [ ] Coverage report generated
1470
+
1471
+ ---
1472
+
1473
+ ## Execution Timeline
1474
+
1475
+ **Cycle-Based (Parallel Execution)**
1476
+
1477
+ ```
1478
+ Cycle 65: Create this TODO file
1479
+ Cycle 66: Implement Tasks 1.1-1.3 (Setup)
1480
+
1481
+ Parallel Execution:
1482
+ Branch A: Cycles 67-72 (Phase 2: Component Tests)
1483
+ Branch B: Cycles 73-78 (Phase 3: Integration Tests)
1484
+ Branch C: Cycles 79-84 (Phase 4: Interactions)
1485
+
1486
+ Sequential Merge:
1487
+ Cycle 85-88 (Phase 5: Edge Cases)
1488
+ Cycle 89-95 (Phase 6: A11y & Responsive)
1489
+ Cycle 96-100 (Phase 7: E2E Tests)
1490
+ ```
1491
+
1492
+ **Completion Target:** Cycle 100
1493
+
1494
+ ---
1495
+
1496
+ ## Notes for Next Agent
1497
+
1498
+ ### For Agent-Backend
1499
+ - Ensure Convex schema matches mocks in `/web/src/tests/mocks/`
1500
+ - Provide real-time subscriptions for event testing
1501
+ - Validate permission checks work in mutations
1502
+
1503
+ ### For Agent-Designer
1504
+ - Design specs needed for component visual validation
1505
+ - Accessibility audit checklist
1506
+ - Color contrast requirements
1507
+
1508
+ ### For Agent-Quality
1509
+ - Run full test suite: `bun test`
1510
+ - Generate coverage: `bun test:coverage`
1511
+ - Check performance: `bun test -- --reporter=verbose`
1512
+
1513
+ ### Common Issues to Avoid
1514
+ 1. **Vitest Configuration:** Missing happy-dom environment setup
1515
+ 2. **Async Tests:** Not awaiting promises or using async/await
1516
+ 3. **Mock Stale Data:** Mocks not synced with schema changes
1517
+ 4. **Focus Leakage:** Tests affecting each other (use beforeEach cleanup)
1518
+ 5. **Memory Leaks:** Subscriptions not cleaned up (unmount cleanup)
1519
+ 6. **Snapshot Drift:** Snapshots outdated after schema changes
1520
+ 7. **Race Conditions:** Concurrent mutations not properly sequenced
1521
+ 8. **Provider Nesting:** Missing Convex provider in render
1522
+ 9. **TypeScript Generics:** useQuery/useMutation types not inferred
1523
+ 10. **Query Keys:** Cache invalidation not working (stale data)
1524
+
1525
+ ---
1526
+
1527
+ ## References
1528
+
1529
+ - **Test Setup:** `/Users/toc/Server/ONE/web/src/tests/`
1530
+ - **Existing Tests:** 19 files with 50+ test cases
1531
+ - **Vitest Docs:** https://vitest.dev
1532
+ - **Testing Library:** https://testing-library.com/react
1533
+ - **WCAG 2.1:** https://www.w3.org/WAI/WCAG21/quickref/
1534
+ - **Component Library:** shadcn/ui (50+ pre-built components)
1535
+ - **Package Manager:** bun@1.2.19
1536
+
1537
+ ---
1538
+
1539
+ **Status:** Ready for Cycle 65 Execution
1540
+ **Owner:** Agent Frontend
1541
+ **Last Updated:** 2025-10-30
1542
+ **Target Completion:** Cycle 100