oneie 3.6.7 → 3.6.12

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 (168) hide show
  1. package/.claude/agents/agent-backend.md +83 -0
  2. package/.claude/agents/agent-designer.md +97 -0
  3. package/.claude/agents/agent-director.md +118 -7
  4. package/.claude/agents/agent-documenter.md +93 -0
  5. package/.claude/agents/agent-frontend.md +96 -0
  6. package/.claude/agents/agent-ops.md +264 -32
  7. package/.claude/agents/agent-problem-solver.md +166 -0
  8. package/.claude/agents/agent-quality.md +127 -0
  9. package/.claude/commands/build.md +293 -0
  10. package/.claude/commands/cascade.md +231 -127
  11. package/.claude/commands/deploy.md +56 -17
  12. package/.claude/commands/mcp-toggle.md +93 -0
  13. package/.claude/commands/one.md +78 -127
  14. package/.claude/commands/plan.md +394 -80
  15. package/.claude/commands/push.md +75 -14
  16. package/.claude/commands/release.md +89 -25
  17. package/.claude/commands/server.md +2 -0
  18. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  19. package/.claude/hooks/root-cleanup.py +75 -0
  20. package/.claude/skills/INDEX.md +523 -0
  21. package/.claude/skills/REGISTRY.md +529 -0
  22. package/.claude/skills/agent-backend-create-mutation.md +319 -0
  23. package/.claude/skills/agent-designer-create-wireframe.md +341 -0
  24. package/.claude/skills/agent-frontend-create-page.md +413 -0
  25. package/.claude/skills/agents/README.md +238 -0
  26. package/dist/clone-web.js +1 -1
  27. package/dist/clone-web.js.map +1 -1
  28. package/folders.yaml +1 -1
  29. package/one/.obsidian/workspace.json +38 -38
  30. package/one/connections/api/queries-reference.md +842 -0
  31. package/one/connections/api-reference.md +1011 -0
  32. package/one/connections/integration-examples.md +875 -0
  33. package/one/connections/integration-guide.md +869 -0
  34. package/one/connections/integration-phase2.md +736 -0
  35. package/one/events/API_ROUTES_FIXES_SUMMARY.md +262 -0
  36. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +636 -0
  37. package/one/events/BEFORE_AFTER_COMPARISON.md +960 -0
  38. package/one/events/CONNECTIONS_DEMO.md +501 -0
  39. package/one/events/DELIVERABLES.md +432 -0
  40. package/one/events/DEMO-GROUPS-PAGE.md +392 -0
  41. package/one/events/DEMO-TESTING-SUMMARY.md +518 -0
  42. package/one/events/DEMO_COMPONENTS.md +487 -0
  43. package/one/events/DEMO_HOOKS_INDEX.md +334 -0
  44. package/one/events/DEMO_INFRASTRUCTURE.md +905 -0
  45. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +570 -0
  46. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +431 -0
  47. package/one/events/DEMO_QUICK_REFERENCE.md +441 -0
  48. package/one/events/DEMO_SETUP.md +476 -0
  49. package/one/events/EFFECT_TS_API_PATTERN.md +478 -0
  50. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +414 -0
  51. package/one/events/HOOKS-DEMO.md +441 -0
  52. package/one/events/ONTOLOGY-HOOKS-README.md +700 -0
  53. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +365 -0
  54. package/one/events/QA-CHECKLIST.md +674 -0
  55. package/one/events/QUICK-START-ONTOLOGY.md +408 -0
  56. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +639 -0
  57. package/one/events/SEARCH_DEMO_DELIVERY.md +415 -0
  58. package/one/events/SEARCH_DEMO_SUMMARY.md +303 -0
  59. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +381 -0
  60. package/one/events/TEST-PLAN-INDEX.md +346 -0
  61. package/one/events/TEST-PLAN.md +1417 -0
  62. package/one/events/TESTING-DELIVERY.txt +372 -0
  63. package/one/events/TRANSITIONS-QUICK-START.md +141 -0
  64. package/one/events/TYPESCRIPT_FIXES.md +152 -0
  65. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +412 -0
  66. package/one/events/TYPESCRIPT_FIXES_INDEX.md +341 -0
  67. package/one/events/VIEW-TRANSITIONS.md +428 -0
  68. package/one/events/backend-integration-tests.md +606 -0
  69. package/one/events/backend-structure-diagram.txt +393 -0
  70. package/one/events/backend-structure-summary.txt +269 -0
  71. package/one/events/cloudflare-pages-infrastructure-setup.md +264 -0
  72. package/one/events/convex-analysis-index.md +304 -0
  73. package/one/events/convex-structure-analysis.md +700 -0
  74. package/one/events/design-spec-complete.md +208 -0
  75. package/one/events/ontology-test-examples.md +562 -0
  76. package/one/events/phase1-backend-implementation-complete.md +518 -0
  77. package/one/events/test-dashboard.md +345 -0
  78. package/one/events/test-index.md +361 -0
  79. package/one/events/test-report-ontology.md +582 -0
  80. package/one/events/testing-summary.md +344 -0
  81. package/one/groups/features.md +2878 -0
  82. package/one/groups/strategy copy.md +869 -0
  83. package/one/knowledge/backend-api-reference.md +710 -0
  84. package/one/knowledge/documentation-summary.md +285 -0
  85. package/one/knowledge/lessons-learned.md +294 -4
  86. package/one/knowledge/ontology-visual-guide.md +360 -0
  87. package/one/knowledge/ontology.md +9 -17
  88. package/one/things/demo-accessibility-animations.md +999 -0
  89. package/one/things/demo-components.md +1304 -0
  90. package/one/things/demo-design-summary.md +629 -0
  91. package/one/things/demo-design-system.md +919 -0
  92. package/one/things/demo-page-layouts.md +989 -0
  93. package/one/things/designs/accessibility-audit.md +790 -0
  94. package/one/things/designs/component-specifications.md +757 -0
  95. package/one/things/designs/design-overview.md +318 -0
  96. package/one/things/designs/design-tokens.md +414 -0
  97. package/one/things/designs/wireframes-dashboard.md +653 -0
  98. package/one/things/docs/api-requests.md +923 -0
  99. package/one/things/features/0 All Features.md +2 -0
  100. package/one/things/implementation/backend-guide.md +412 -0
  101. package/one/things/plans/2-backend-agnostic-frontend.md +11 -8
  102. package/one/things/plans/2-sites.md +895 -0
  103. package/one/things/plans/ai-elements.md +1259 -0
  104. package/one/things/plans/ai-integration.md +947 -0
  105. package/one/things/plans/ai-sdk.md +761 -0
  106. package/one/things/plans/app.md +1 -1
  107. package/one/things/plans/architecture-summary.md +283 -0
  108. package/one/things/plans/async-ai-agents.md +215 -0
  109. package/one/things/plans/backend-agnostic-frontend.md +11 -6
  110. package/one/things/plans/backend-cleanup-quickstart.md +346 -0
  111. package/one/things/plans/backend-ontology-conformance.md +416 -0
  112. package/one/things/plans/backend-status.md +541 -0
  113. package/one/things/plans/backend-structure.md +799 -0
  114. package/one/things/plans/backend-target-structure.md +438 -0
  115. package/one/things/plans/backend.md +1133 -0
  116. package/one/things/plans/better-auth-any-backend.md +11 -11
  117. package/one/things/plans/cli-updates-required.md +280 -0
  118. package/one/things/plans/complete-step-by-step.md +1302 -0
  119. package/one/things/plans/convex-agents.md +1005 -0
  120. package/one/things/plans/deployment-architecture.md +426 -0
  121. package/one/things/plans/development-plan.md +1220 -0
  122. package/one/things/plans/effect.md +808 -48
  123. package/one/things/plans/integrate-frontend-and-backend.md +579 -0
  124. package/one/things/plans/mcp-clear-context-prompt.md +60 -0
  125. package/one/things/plans/mcp-simple.md +228 -0
  126. package/one/things/plans/one.md +8 -7
  127. package/one/things/plans/ontology-6-dimensions.md +20 -14
  128. package/one/things/plans/quick-wins.md +1273 -0
  129. package/one/things/plans/readme-backend-cleanup.md +361 -0
  130. package/one/things/plans/separate-demo.md +830 -0
  131. package/one/things/plans/separate.md +3 -3
  132. package/one/things/plans/sequence.md +1897 -0
  133. package/one/things/plans/sync-checklist.md +321 -0
  134. package/one/things/plans/unified-implementation-plan.md +3 -3
  135. package/one/things/plans/update-demos.md +513 -0
  136. package/package.json +1 -1
  137. package/.claude/agents/backend-specialist.md +0 -169
  138. package/.claude/agents/designer.md +0 -216
  139. package/.claude/agents/frontend-specialist.md +0 -236
  140. package/.claude/commands/done.md +0 -35
  141. package/.claude/commands/infer.md +0 -138
  142. package/.claude/commands/next.md +0 -53
  143. package/.claude/commands/one copy.md +0 -565
  144. package/.claude/commands/one-template.md +0 -106
  145. package/.claude/commands/one-v1.md +0 -609
  146. package/.claude/hooks/__pycache__/knowledge-post.cpython-313.pyc +0 -0
  147. package/.claude/hooks/__pycache__/knowledge-pre.cpython-313.pyc +0 -0
  148. package/one/groups/nine-padel-customers.md +0 -138
  149. package/one/groups/nine-padel-data-structure.md +0 -167
  150. package/one/groups/nine-padel-ontology-specification.md +0 -359
  151. package/one/groups/nine-padel-ontology.md +0 -143
  152. package/one/groups/nine-padel-strategy.md +0 -234
  153. package/one/groups/nine-padel.md +0 -211
  154. package/one/groups/nine-padle-contents.baked.md +0 -1252
  155. package/one/groups/nine-padle-contents.md +0 -6
  156. package/one/things/features/1-1-agent-prompts/design.md +0 -470
  157. package/one/things/features/1-1-agent-prompts/tests.md +0 -264
  158. package/one/things/features/1-2-yaml-orchestrator/design.md +0 -497
  159. package/one/things/features/1-2-yaml-orchestrator/tests.md +0 -227
  160. package/one/things/features/1-3-event-coordination/design.md +0 -544
  161. package/one/things/features/1-3-event-coordination/tests.md +0 -223
  162. package/one/things/features/1-4-knowledge-management/design.md +0 -609
  163. package/one/things/features/1-4-knowledge-management/tests.md +0 -195
  164. package/one/things/features/1-5-quality-loops/design.md +0 -797
  165. package/one/things/features/1-5-quality-loops/tests.md +0 -212
  166. package/one/things/features/1-6-numbering-structure/design.md +0 -610
  167. package/one/things/features/1-6-numbering-structure/tests.md +0 -213
  168. package/one/things/features/dataprovider-interface/1-tests.md +0 -1522
@@ -0,0 +1,653 @@
1
+ # Dashboard Wireframes - ONE Platform
2
+
3
+ **Version:** 1.0.0
4
+ **Created:** 2025-10-25
5
+ **Status:** Test-Driven Design
6
+ **Purpose:** Enable test flows from `backend/test/groups.test.ts` and `backend/test/things.test.ts`
7
+
8
+ ## Design Requirements (From Tests)
9
+
10
+ ### User Flows to Support
11
+
12
+ 1. **Group Management** (from groups.test.ts)
13
+ - Create organization with minimal/full fields
14
+ - Create hierarchical groups (parent → child → grandchild)
15
+ - List and filter groups (by type, status, with pagination)
16
+ - Update group settings
17
+ - Archive group
18
+
19
+ 2. **Thing Management** (from things.test.ts)
20
+ - Create things (66 types: creator, agent, content, etc.)
21
+ - List and filter things (by type, status, group)
22
+ - Update thing properties
23
+ - Delete (soft delete) things
24
+ - Group isolation visualization
25
+
26
+ ## Wireframe 1: Dashboard Home
27
+
28
+ **Purpose:** Show overview of groups, things, and recent activity
29
+
30
+ **Layout Pattern:** Dashboard sidebar (proven pattern)
31
+
32
+ ```
33
+ ┌──────────────────────────────────────────────────────────────┐
34
+ │ [ONE Logo] [User] [Theme] │
35
+ ├──────────────────────────────────────────────────────────────┤
36
+ │ │
37
+ │ ╔═══════════════════════════════════════════════════════╗ │
38
+ │ ║ Dashboard ║ │
39
+ │ ╠═══════════════════════════════════════════════════════╣ │
40
+ │ ║ ║ │
41
+ │ ║ Welcome back, [User Name] ║ │
42
+ │ ║ ║ │
43
+ │ ║ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ║ │
44
+ │ ║ │ Groups │ │ Things │ │ Events │ ║ │
45
+ │ ║ │ 5 active │ │ 42 total │ │ 128 today │ ║ │
46
+ │ ║ └─────────────┘ └─────────────┘ └─────────────┘ ║ │
47
+ │ ║ ║ │
48
+ │ ║ Recent Activity ║ │
49
+ │ ║ ┌───────────────────────────────────────────────┐ ║ │
50
+ │ ║ │ • thing_created: Blog Post (2 min ago) │ ║ │
51
+ │ ║ │ • group_created: Engineering Team (5 min ago) │ ║ │
52
+ │ ║ │ • thing_updated: Course Module (10 min ago) │ ║ │
53
+ │ ║ └───────────────────────────────────────────────┘ ║ │
54
+ │ ║ ║ │
55
+ │ ║ [View Groups] [View Things] [View Events] ║ │
56
+ │ ║ ║ │
57
+ │ ╚═══════════════════════════════════════════════════════╝ │
58
+ │ │
59
+ └──────────────────────────────────────────────────────────────┘
60
+ ```
61
+
62
+ **Components:**
63
+ - Card (shadcn/ui)
64
+ - Button (shadcn/ui)
65
+ - Badge (for counts)
66
+ - Separator
67
+
68
+ **Responsive:**
69
+ - Mobile: Stack cards vertically
70
+ - Tablet: 2 columns
71
+ - Desktop: 3 columns
72
+
73
+ **Accessibility:**
74
+ - ARIA labels on stat cards
75
+ - Keyboard navigation for buttons
76
+ - Focus indicators on interactive elements
77
+
78
+ ## Wireframe 2: Group Management
79
+
80
+ **Purpose:** Create, list, and manage hierarchical groups
81
+
82
+ **Layout Pattern:** List with sidebar filter
83
+
84
+ ```
85
+ ┌──────────────────────────────────────────────────────────────┐
86
+ │ Groups [+ New Group] │
87
+ ├─────────────┬────────────────────────────────────────────────┤
88
+ │ │ │
89
+ │ Filters │ Acme Corporation [Edit] │
90
+ │ │ └─ Engineering Team [Edit] │
91
+ │ Type: │ └─ Backend Team [Edit] │
92
+ │ [All ▼] │ │
93
+ │ │ Startup Inc [Edit] │
94
+ │ Status: │ └─ Product Team [Edit] │
95
+ │ [Active ▼] │ │
96
+ │ │ Community Group [Edit] │
97
+ │ │ │
98
+ │ │ [< Previous] Page 1 of 3 [Next >] │
99
+ │ │ │
100
+ └─────────────┴────────────────────────────────────────────────┘
101
+ ```
102
+
103
+ **Components:**
104
+ - Select (for filters)
105
+ - Card (for each group)
106
+ - Button (Edit, New Group)
107
+ - Pagination
108
+ - Tree view indicator (└─ for hierarchy)
109
+
110
+ **Interactions:**
111
+ - Click group name → View group details
112
+ - Click Edit → Open group settings dialog
113
+ - Click "+ New Group" → Open create group dialog
114
+ - Filter changes → Update list immediately
115
+
116
+ **Empty State:**
117
+ ```
118
+ ┌──────────────────────────────────────────────────────────────┐
119
+ │ │
120
+ │ No groups found │
121
+ │ │
122
+ │ Create your first group to get started │
123
+ │ │
124
+ │ [+ Create Group] │
125
+ │ │
126
+ └──────────────────────────────────────────────────────────────┘
127
+ ```
128
+
129
+ ## Wireframe 3: Create/Edit Group Dialog
130
+
131
+ **Purpose:** Form for creating or editing group settings
132
+
133
+ **Layout Pattern:** Centered modal form
134
+
135
+ ```
136
+ ┌──────────────────────────────────────────────────────────────┐
137
+ │ Create Group [×] │
138
+ ├──────────────────────────────────────────────────────────────┤
139
+ │ │
140
+ │ Name * │
141
+ │ ┌──────────────────────────────────────────────────────┐ │
142
+ │ │ Acme Corporation │ │
143
+ │ └──────────────────────────────────────────────────────┘ │
144
+ │ │
145
+ │ Slug * (URL identifier) │
146
+ │ ┌──────────────────────────────────────────────────────┐ │
147
+ │ │ acme-corp │ │
148
+ │ └──────────────────────────────────────────────────────┘ │
149
+ │ one.ie/groups/acme-corp │
150
+ │ │
151
+ │ Type * │
152
+ │ ┌──────────────────────────────────────────────────────┐ │
153
+ │ │ Organization ▼ │ │
154
+ │ └──────────────────────────────────────────────────────┘ │
155
+ │ │
156
+ │ Parent Group (optional) │
157
+ │ ┌──────────────────────────────────────────────────────┐ │
158
+ │ │ None ▼ │ │
159
+ │ └──────────────────────────────────────────────────────┘ │
160
+ │ │
161
+ │ Description (optional) │
162
+ │ ┌──────────────────────────────────────────────────────┐ │
163
+ │ │ │ │
164
+ │ │ │ │
165
+ │ └──────────────────────────────────────────────────────┘ │
166
+ │ │
167
+ │ Settings │
168
+ │ ┌──────────────────────────────────────────────────────┐ │
169
+ │ │ Visibility: [Public ▼] Join Policy: [Invite Only ▼] │ │
170
+ │ │ Plan: [Starter ▼] │ │
171
+ │ └──────────────────────────────────────────────────────┘ │
172
+ │ │
173
+ │ [Cancel] [Create Group] │
174
+ │ │
175
+ └──────────────────────────────────────────────────────────────┘
176
+ ```
177
+
178
+ **Components:**
179
+ - Dialog (shadcn/ui)
180
+ - Input (text fields)
181
+ - Select (dropdowns)
182
+ - Textarea (description)
183
+ - Button (Cancel, Create)
184
+ - Label (field labels)
185
+
186
+ **Validation:**
187
+ - Name: Required, max 100 chars
188
+ - Slug: Required, lowercase, alphanumeric + hyphens
189
+ - Type: Required, from enum
190
+ - Parent: Optional, must be valid group ID
191
+ - Real-time slug preview below input
192
+
193
+ **Loading State:**
194
+ - Disable all fields
195
+ - Show spinner on submit button
196
+ - Change button text to "Creating..."
197
+
198
+ **Error State:**
199
+ - Show error message above buttons
200
+ - Highlight invalid fields in red
201
+ - Display specific error (duplicate slug, invalid parent, etc.)
202
+
203
+ ## Wireframe 4: Thing Management
204
+
205
+ **Purpose:** List, filter, and manage all entity types
206
+
207
+ **Layout Pattern:** Grid view with filters
208
+
209
+ ```
210
+ ┌──────────────────────────────────────────────────────────────┐
211
+ │ Things [+ New Thing] │
212
+ ├─────────────┬────────────────────────────────────────────────┤
213
+ │ │ │
214
+ │ Filters │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
215
+ │ │ │ Blog Post│ │ Course │ │ Creator │ │
216
+ │ Group: │ │ "How to" │ │ "React" │ │ "John" │ │
217
+ │ [All ▼] │ │ draft │ │ active │ │ active │ │
218
+ │ │ │ [Edit] │ │ [Edit] │ │ [Edit] │ │
219
+ │ Type: │ └──────────┘ └──────────┘ └──────────┘ │
220
+ │ [All ▼] │ │
221
+ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
222
+ │ Status: │ │ Video │ │ Token │ │ Agent │ │
223
+ │ [All ▼] │ │ "Intro" │ │ "ACME" │ │ "AI Bot" │ │
224
+ │ │ │ published│ │ active │ │ active │ │
225
+ │ Search: │ │ [Edit] │ │ [Edit] │ │ [Edit] │ │
226
+ │ [_______] │ └──────────┘ └──────────┘ └──────────┘ │
227
+ │ │ │
228
+ │ │ [< Previous] Page 1 of 5 [Next >] │
229
+ │ │ │
230
+ └─────────────┴────────────────────────────────────────────────┘
231
+ ```
232
+
233
+ **Components:**
234
+ - Card (for each thing)
235
+ - Select (filters)
236
+ - Input (search)
237
+ - Button (Edit, New Thing)
238
+ - Badge (status indicator)
239
+
240
+ **Thing Card Structure:**
241
+ ```
242
+ ┌──────────┐
243
+ │ [Icon] │ ← Type indicator (blog, video, course, etc.)
244
+ │ Title │
245
+ │ Status │ ← Badge showing status
246
+ │ [Edit] │
247
+ └──────────┘
248
+ ```
249
+
250
+ **Filter Behavior:**
251
+ - All filters applied simultaneously (AND logic)
252
+ - Real-time update as filters change
253
+ - Search matches name and type
254
+ - Pagination resets to page 1 on filter change
255
+
256
+ ## Wireframe 5: Thing Details/Edit
257
+
258
+ **Purpose:** View and edit thing properties
259
+
260
+ **Layout Pattern:** Tabbed interface with form
261
+
262
+ ```
263
+ ┌──────────────────────────────────────────────────────────────┐
264
+ │ Blog Post: "How to Build with ONE Platform" [×] │
265
+ ├──────────────────────────────────────────────────────────────┤
266
+ │ [Details] [Properties] [Connections] [Events] [History] │
267
+ ├──────────────────────────────────────────────────────────────┤
268
+ │ │
269
+ │ Name * │
270
+ │ ┌──────────────────────────────────────────────────────┐ │
271
+ │ │ How to Build with ONE Platform │ │
272
+ │ └──────────────────────────────────────────────────────┘ │
273
+ │ │
274
+ │ Type: blog_post (cannot change) │
275
+ │ │
276
+ │ Status * │
277
+ │ ┌──────────────────────────────────────────────────────┐ │
278
+ │ │ Draft ▼ │ │
279
+ │ └──────────────────────────────────────────────────────┘ │
280
+ │ │
281
+ │ Properties (flexible JSON) │
282
+ │ ┌──────────────────────────────────────────────────────┐ │
283
+ │ │ { │ │
284
+ │ │ "title": "How to Build...", │ │
285
+ │ │ "content": "Lorem ipsum...", │ │
286
+ │ │ "publishedAt": null │ │
287
+ │ │ } │ │
288
+ │ └──────────────────────────────────────────────────────┘ │
289
+ │ │
290
+ │ Created: 2025-10-25 10:30 AM │
291
+ │ Updated: 2025-10-25 11:45 AM │
292
+ │ │
293
+ │ [Cancel] [Delete] [Save Changes] │
294
+ │ │
295
+ └──────────────────────────────────────────────────────────────┘
296
+ ```
297
+
298
+ **Tabs:**
299
+ - **Details:** Name, type, status, timestamps
300
+ - **Properties:** JSON editor for flexible properties
301
+ - **Connections:** Related things (from/to)
302
+ - **Events:** Audit trail of actions
303
+ - **History:** Change log
304
+
305
+ **Components:**
306
+ - Tabs (shadcn/ui)
307
+ - Input (name field)
308
+ - Select (status dropdown)
309
+ - Textarea (properties JSON)
310
+ - Button (Cancel, Delete, Save)
311
+ - AlertDialog (delete confirmation)
312
+
313
+ **Delete Confirmation:**
314
+ ```
315
+ ┌──────────────────────────────────────────────────────────────┐
316
+ │ Delete Thing? │
317
+ ├──────────────────────────────────────────────────────────────┤
318
+ │ │
319
+ │ Are you sure you want to delete "How to Build..."? │
320
+ │ │
321
+ │ This will soft-delete the thing. It can be restored later. │
322
+ │ │
323
+ │ [Cancel] [Delete] │
324
+ │ │
325
+ └──────────────────────────────────────────────────────────────┘
326
+ ```
327
+
328
+ ## Wireframe 6: Connection Visualization
329
+
330
+ **Purpose:** Show relationships between things
331
+
332
+ **Layout Pattern:** Graph view with node details
333
+
334
+ ```
335
+ ┌──────────────────────────────────────────────────────────────┐
336
+ │ Connections [View List/Graph] │
337
+ ├──────────────────────────────────────────────────────────────┤
338
+ │ │
339
+ │ ┌─────────┐ │
340
+ │ │ Creator │ │
341
+ │ │ John │ │
342
+ │ └────┬────┘ │
343
+ │ │ │
344
+ │ owns │ authored │
345
+ │ │ │
346
+ │ ┌───────────┴───────────┐ │
347
+ │ │ │ │
348
+ │ ┌──▼──┐ ┌──▼──┐ │
349
+ │ │Token│ │Blog │ │
350
+ │ │ACME │ │Post │ │
351
+ │ └─────┘ └─────┘ │
352
+ │ │
353
+ │ Selected: Creator → Token (owns) │
354
+ │ Created: 2025-10-25 10:00 AM │
355
+ │ │
356
+ │ [View Details] │
357
+ │ │
358
+ └──────────────────────────────────────────────────────────────┘
359
+ ```
360
+
361
+ **Alternative: List View**
362
+ ```
363
+ ┌──────────────────────────────────────────────────────────────┐
364
+ │ From Thing │ Relationship │ To Thing │ Actions │
365
+ ├─────────────────┼──────────────┼─────────────────┼───────────┤
366
+ │ Creator (John) │ owns │ Token (ACME) │ [View] │
367
+ │ Creator (John) │ authored │ Blog Post │ [View] │
368
+ │ User (Alice) │ holds_tokens │ Token (ACME) │ [View] │
369
+ └──────────────────────────────────────────────────────────────┘
370
+ ```
371
+
372
+ **Components:**
373
+ - Toggle (List/Graph view)
374
+ - Custom graph component (React Flow or D3)
375
+ - Table (list view)
376
+ - Card (relationship details)
377
+
378
+ ## Wireframe 7: Event Timeline
379
+
380
+ **Purpose:** Show audit trail of all actions
381
+
382
+ **Layout Pattern:** Vertical timeline
383
+
384
+ ```
385
+ ┌──────────────────────────────────────────────────────────────┐
386
+ │ Events [Filter: All ▼] │
387
+ ├──────────────────────────────────────────────────────────────┤
388
+ │ │
389
+ │ Today │
390
+ │ ○───────────────────────────────────────────────────────── │
391
+ │ │ │
392
+ │ ├─ 11:45 AM - thing_updated │
393
+ │ │ Blog Post "How to Build..." was updated by John │
394
+ │ │ [View Details] │
395
+ │ │ │
396
+ │ ├─ 11:30 AM - thing_created │
397
+ │ │ Course "React Advanced" was created by Alice │
398
+ │ │ [View Details] │
399
+ │ │ │
400
+ │ └─ 10:00 AM - group_created │
401
+ │ Engineering Team was created by Admin │
402
+ │ [View Details] │
403
+ │ │
404
+ │ Yesterday │
405
+ │ ○───────────────────────────────────────────────────────── │
406
+ │ │ │
407
+ │ ├─ 4:30 PM - thing_deleted │
408
+ │ │ Token "OLD" was deleted by John │
409
+ │ │ [View Details] │
410
+ │ │
411
+ │ [Load More] │
412
+ │ │
413
+ └──────────────────────────────────────────────────────────────┘
414
+ ```
415
+
416
+ **Components:**
417
+ - Card (for each event)
418
+ - Badge (event type)
419
+ - Button (View Details, Load More)
420
+ - Select (filter dropdown)
421
+
422
+ **Event Card Details:**
423
+ - Timestamp
424
+ - Event type (color-coded badge)
425
+ - Actor (who did it)
426
+ - Target (what was affected)
427
+ - Metadata (additional details)
428
+
429
+ ## Wireframe 8: Knowledge Search
430
+
431
+ **Purpose:** Semantic search interface for labels and chunks
432
+
433
+ **Layout Pattern:** Search bar with results
434
+
435
+ ```
436
+ ┌──────────────────────────────────────────────────────────────┐
437
+ │ Knowledge Search │
438
+ ├──────────────────────────────────────────────────────────────┤
439
+ │ │
440
+ │ ┌──────────────────────────────────────────────────────┐ │
441
+ │ │ Search... (semantic search powered by embeddings) │ │
442
+ │ └──────────────────────────────────────────────────────┘ │
443
+ │ │
444
+ │ Results for "how to build with ONE" │
445
+ │ │
446
+ │ ┌──────────────────────────────────────────────────────┐ │
447
+ │ │ Blog Post: "How to Build with ONE Platform" │ │
448
+ │ │ ...build with ONE Platform using the 6-dimension... │ │
449
+ │ │ Similarity: 92% │ Created: 2025-10-25 │ │
450
+ │ │ [View Thing] │ │
451
+ │ └──────────────────────────────────────────────────────┘ │
452
+ │ │
453
+ │ ┌──────────────────────────────────────────────────────┐ │
454
+ │ │ Course: "ONE Platform Fundamentals" │ │
455
+ │ │ ...fundamentals of building on ONE with examples... │ │
456
+ │ │ Similarity: 87% │ Created: 2025-10-20 │ │
457
+ │ │ [View Thing] │ │
458
+ │ └──────────────────────────────────────────────────────┘ │
459
+ │ │
460
+ │ [Show More Results] │
461
+ │ │
462
+ └──────────────────────────────────────────────────────────────┘
463
+ ```
464
+
465
+ **Components:**
466
+ - Input (search bar with icon)
467
+ - Card (result cards)
468
+ - Progress (similarity score)
469
+ - Button (View Thing, Show More)
470
+
471
+ **Search Features:**
472
+ - Real-time search with debounce (300ms)
473
+ - Semantic similarity score
474
+ - Highlight matching text
475
+ - Filter by knowledge type (label, chunk)
476
+
477
+ ## Design System
478
+
479
+ ### Colors (from global.css)
480
+
481
+ **Light Mode:**
482
+ - Primary: `hsl(216 55% 25%)` - Professional blue
483
+ - Secondary: `hsl(219 14% 28%)` - Muted blue-gray
484
+ - Accent: `hsl(105 22% 25%)` - Green accent
485
+ - Background: `hsl(36 8% 88%)` - Warm off-white
486
+ - Foreground: `hsl(0 0% 13%)` - Near black
487
+
488
+ **Dark Mode:**
489
+ - Primary: `hsl(216 55% 25%)` - Same blue (consistent)
490
+ - Background: `hsl(0 0% 13%)` - Near black
491
+ - Foreground: `hsl(36 8% 96%)` - Near white
492
+
493
+ ### Typography
494
+
495
+ - Headings: System font stack with fallback
496
+ - Body: 16px base, 1.5 line height
497
+ - Code: Monospace, `hsl(var(--color-sidebar-background))`
498
+
499
+ ### Spacing (4px base unit)
500
+
501
+ - xs: 4px
502
+ - sm: 8px
503
+ - md: 16px
504
+ - lg: 24px
505
+ - xl: 32px
506
+ - 2xl: 48px
507
+
508
+ ### Border Radius
509
+
510
+ - sm: 0.375rem (6px)
511
+ - md: 0.75rem (12px)
512
+ - lg: 1.5rem (24px)
513
+
514
+ ### Component Variants
515
+
516
+ **Buttons:**
517
+ - Primary: Solid primary color
518
+ - Secondary: Outline with primary border
519
+ - Ghost: Transparent with hover
520
+ - Destructive: Red for delete actions
521
+
522
+ **Cards:**
523
+ - Default: Background with border
524
+ - Elevated: Shadow for depth
525
+ - Outlined: Border only
526
+
527
+ **Badges:**
528
+ - Active: Green
529
+ - Draft: Yellow
530
+ - Archived: Gray
531
+ - Published: Blue
532
+
533
+ ## Responsive Breakpoints
534
+
535
+ - Mobile: < 768px (single column)
536
+ - Tablet: 768px - 1024px (2 columns)
537
+ - Desktop: > 1024px (3 columns, full layout)
538
+
539
+ ## Accessibility Requirements
540
+
541
+ ### WCAG 2.1 AA Compliance
542
+
543
+ **Color Contrast:**
544
+ - Body text: ≥ 4.5:1
545
+ - Large text (≥18px): ≥ 3:1
546
+ - UI components: ≥ 3:1
547
+
548
+ **Keyboard Navigation:**
549
+ - All interactive elements: Tab order
550
+ - Dialogs: Trap focus, Escape to close
551
+ - Forms: Enter to submit
552
+ - Lists: Arrow keys for selection
553
+
554
+ **ARIA Labels:**
555
+ - Buttons: `aria-label` for icon-only
556
+ - Dialogs: `role="dialog"`, `aria-labelledby`
557
+ - Forms: Associate labels with inputs
558
+ - Status messages: `aria-live="polite"`
559
+
560
+ **Focus Management:**
561
+ - Visible focus indicators (ring)
562
+ - Skip to main content link
563
+ - Focus trap in modals
564
+ - Return focus on close
565
+
566
+ **Screen Readers:**
567
+ - Semantic HTML (`<nav>`, `<main>`, `<section>`)
568
+ - Alt text for icons/images
569
+ - Error messages announced
570
+ - Loading states announced
571
+
572
+ ## Loading States
573
+
574
+ **Skeleton Screens:**
575
+ ```
576
+ ┌──────────────────────────────────────────────────────────────┐
577
+ │ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
578
+ │ ░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░ │
579
+ │ ░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░ │
580
+ └──────────────────────────────────────────────────────────────┘
581
+ ```
582
+
583
+ **Spinner (for actions):**
584
+ - Small spinner for button actions
585
+ - Full-page spinner for navigation
586
+ - Progress bar for long operations
587
+
588
+ ## Error States
589
+
590
+ **Form Errors:**
591
+ - Red border on invalid field
592
+ - Error message below field
593
+ - Icon indicator (X)
594
+ - Focus invalid field
595
+
596
+ **API Errors:**
597
+ - Toast notification (top-right)
598
+ - Alert component (in-page)
599
+ - Retry button
600
+ - Clear error message text
601
+
602
+ **Empty States:**
603
+ - Illustration or icon
604
+ - Descriptive text
605
+ - Call-to-action button
606
+ - Help text or link
607
+
608
+ ## Performance Targets
609
+
610
+ **Core Web Vitals:**
611
+ - LCP (Largest Contentful Paint): < 2.5s
612
+ - FID (First Input Delay): < 100ms
613
+ - CLS (Cumulative Layout Shift): < 0.1
614
+
615
+ **Optimization Strategies:**
616
+ - Lazy load images (native loading="lazy")
617
+ - Code split by route (Astro automatic)
618
+ - Skeleton screens during load
619
+ - Debounce search inputs (300ms)
620
+ - Pagination for large lists (limit 20-50)
621
+ - Virtual scrolling for 1000+ items
622
+
623
+ ## Component Mapping to Tests
624
+
625
+ ### Groups Test (backend/test/groups.test.ts)
626
+
627
+ | Test User Flow | UI Component | Design Element |
628
+ |---|---|---|
629
+ | Create Organization | Create Group Dialog | Wireframe 3 |
630
+ | Hierarchical Groups | Group List with Tree | Wireframe 2 |
631
+ | List and Query | Group Filters | Wireframe 2 |
632
+ | Update Group | Edit Group Dialog | Wireframe 3 |
633
+ | Archive Group | Delete Confirmation | Wireframe 3 |
634
+
635
+ ### Things Test (backend/test/things.test.ts)
636
+
637
+ | Test User Flow | UI Component | Design Element |
638
+ | Create Thing | Create Thing Dialog | Similar to Wireframe 3 |
639
+ | List and Filter | Thing Grid with Filters | Wireframe 4 |
640
+ | Update Thing | Thing Details Form | Wireframe 5 |
641
+ | Delete Thing | Delete Confirmation | Wireframe 5 |
642
+
643
+ ## Next Steps
644
+
645
+ 1. **Create Component Specs:** Detailed React component definitions
646
+ 2. **Design Tokens:** Generate Tailwind config from design system
647
+ 3. **Accessibility Audit:** Validate all WCAG requirements
648
+ 4. **Performance Testing:** Measure against targets
649
+ 5. **User Testing:** Validate flows with real users
650
+
651
+ ---
652
+
653
+ **Designed to enable tests to pass. Every UI element maps to an acceptance criterion.**