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,999 @@
1
+ # ONE Platform Demo - Accessibility & Animations
2
+
3
+ ## Version 1.0.0 - Accessibility and Motion Specifications
4
+
5
+ This document defines accessibility requirements and animation patterns for all ONE Platform demo pages.
6
+
7
+ ---
8
+
9
+ ## Part 1: Accessibility (WCAG 2.1 AA Compliance)
10
+
11
+ ### 1.1 Semantic HTML Foundation
12
+
13
+ **REQUIREMENT:** Use semantic HTML elements, never repurpose `<div>` for interactive content.
14
+
15
+ #### Required HTML Elements
16
+
17
+ | Element | Purpose | Example |
18
+ |---------|---------|---------|
19
+ | `<button>` | Interactive actions | CTAs, form submission |
20
+ | `<a>` | Navigation links | Documentation links |
21
+ | `<form>` | Form containers | Data input |
22
+ | `<input>`, `<select>`, `<textarea>` | Form inputs | Playground forms |
23
+ | `<label>` | Form field labels | Associated with inputs |
24
+ | `<h1>` - `<h6>` | Headings | Page structure |
25
+ | `<header>`, `<nav>`, `<main>`, `<section>`, `<footer>` | Page regions | Document outline |
26
+ | `<article>` | Self-contained content | Blog posts, cards |
27
+
28
+ **EXAMPLE - CORRECT:**
29
+
30
+ ```astro
31
+ <!-- CORRECT: Semantic HTML -->
32
+ <form class="space-y-4">
33
+ <div class="flex flex-col">
34
+ <label for="email">Email Address</label>
35
+ <input
36
+ id="email"
37
+ type="email"
38
+ required
39
+ aria-describedby="email-error"
40
+ />
41
+ <p id="email-error" class="text-sm text-destructive">
42
+ Must be a valid email
43
+ </p>
44
+ </div>
45
+
46
+ <button type="submit">Submit</button>
47
+ </form>
48
+
49
+ <!-- WRONG: Repurposed divs -->
50
+ <div class="form">
51
+ <div class="form-field">
52
+ <div class="label">Email</div>
53
+ <div class="input" contenteditable></div>
54
+ <div class="error">Invalid</div>
55
+ </div>
56
+ <div class="button" onclick="submit()">Submit</div>
57
+ </div>
58
+ ```
59
+
60
+ ### 1.2 Color Contrast (WCAG AAA)
61
+
62
+ **REQUIREMENT:** All text must meet WCAG AAA contrast ratios (4.5:1 body, 3:1 large).
63
+
64
+ #### Validation Checklist
65
+
66
+ - [ ] Body text on background: ≥ 4.5:1
67
+ - [ ] Large text (18px+, bold 14px+) on background: ≥ 3:1
68
+ - [ ] Button text on button background: ≥ 4.5:1
69
+ - [ ] Links on background: ≥ 4.5:1
70
+ - [ ] Placeholder text: ≥ 3:1 (relaxed)
71
+ - [ ] Border/dividers: ≥ 3:1
72
+ - [ ] Icons (single color): ≥ 3:1 if conveying meaning
73
+ - [ ] Dark mode colors meet same ratios
74
+
75
+ **Testing:**
76
+
77
+ ```
78
+ Tool: WebAIM Contrast Checker
79
+ URL: https://webaim.org/resources/contrastchecker/
80
+
81
+ For each color pair:
82
+ 1. Enter foreground color (text)
83
+ 2. Enter background color
84
+ 3. Verify WCAG AAA pass
85
+ 4. Test in both light and dark modes
86
+ ```
87
+
88
+ **Automated Testing:**
89
+
90
+ ```bash
91
+ # Install axe DevTools for automated checking
92
+ # Browser: Chrome, Firefox
93
+ # Manual: Right-click → Inspect → axe DevTools → Scan
94
+
95
+ # Or use npm package
96
+ npm install --save-dev axe-core jest-axe
97
+ ```
98
+
99
+ ### 1.3 Keyboard Navigation
100
+
101
+ **REQUIREMENT:** All interactive elements accessible via keyboard only.
102
+
103
+ #### Tab Order
104
+
105
+ ```html
106
+ <!-- Logical tab order (follow reading order) -->
107
+ <nav>
108
+ <a href="/">Home</a> <!-- Tab 1 -->
109
+ <a href="/docs">Docs</a> <!-- Tab 2 -->
110
+ </nav>
111
+
112
+ <main>
113
+ <input type="text" /> <!-- Tab 3 -->
114
+ <button>Submit</button> <!-- Tab 4 -->
115
+ <a href="/learn">Learn more</a> <!-- Tab 5 -->
116
+ </main>
117
+
118
+ <!-- Use tabindex sparingly for complex layouts -->
119
+ <button tabindex="0">Normal flow</button>
120
+ <button tabindex="-1">Not in tab order (but focusable)</button>
121
+
122
+ <!-- AVOID -->
123
+ <button tabindex="5">Arbitrary order</button>
124
+ <button tabindex="10">Breaks accessibility</button>
125
+ ```
126
+
127
+ #### Focus Management
128
+
129
+ ```astro
130
+ <!-- Visible focus indicators -->
131
+ <button class="
132
+ focus-visible:outline-2
133
+ focus-visible:outline-offset-2
134
+ focus-visible:outline-ring
135
+ ">
136
+ Keyboard accessible
137
+ </button>
138
+
139
+ <!-- Modal focus trap -->
140
+ <dialog
141
+ role="dialog"
142
+ aria-modal="true"
143
+ id="modal"
144
+ on:keydown={(e) => {
145
+ if (e.key === 'Escape') {
146
+ modal.close();
147
+ }
148
+ }}
149
+ >
150
+ <button autofocus>First button in modal</button>
151
+ <!-- Focus automatically returns to trigger on close -->
152
+ </dialog>
153
+ ```
154
+
155
+ #### Keyboard Shortcuts
156
+
157
+ | Key | Action | Element |
158
+ |-----|--------|---------|
159
+ | Tab | Move focus forward | All interactive |
160
+ | Shift+Tab | Move focus backward | All interactive |
161
+ | Enter | Activate button | `<button>`, `<a>` |
162
+ | Space | Activate button, toggle checkbox | `<button>`, `<checkbox>` |
163
+ | Escape | Close modal/dropdown | `<dialog>`, `<menu>` |
164
+ | Arrow Keys | Navigate menu items | `<nav>`, `<select>` |
165
+
166
+ ### 1.4 ARIA Labels & Descriptions
167
+
168
+ **REQUIREMENT:** All interactive elements have appropriate ARIA labels.
169
+
170
+ #### ARIA Attributes
171
+
172
+ ```html
173
+ <!-- Button with icon - needs label -->
174
+ <button aria-label="Close dialog">
175
+ <svg><!-- X icon --></svg>
176
+ </button>
177
+
178
+ <!-- Form with error -->
179
+ <input
180
+ id="email"
181
+ type="email"
182
+ aria-describedby="email-error"
183
+ aria-invalid="true"
184
+ />
185
+ <p id="email-error" role="alert">
186
+ Invalid email format
187
+ </p>
188
+
189
+ <!-- List of items -->
190
+ <ul role="list">
191
+ <li>Item 1</li>
192
+ <li>Item 2</li>
193
+ </ul>
194
+
195
+ <!-- Loading state -->
196
+ <button aria-busy="true" disabled>
197
+ Loading <span class="animate-spin">○</span>
198
+ </button>
199
+
200
+ <!-- Current page in navigation -->
201
+ <nav>
202
+ <a href="/current" aria-current="page">Current</a>
203
+ <a href="/other">Other</a>
204
+ </nav>
205
+
206
+ <!-- Live region (status messages) -->
207
+ <div role="status" aria-live="polite" aria-atomic="true">
208
+ Item added successfully
209
+ </div>
210
+
211
+ <!-- Expandable section -->
212
+ <button
213
+ aria-expanded="false"
214
+ aria-controls="details"
215
+ >
216
+ Show details
217
+ </button>
218
+ <div id="details" hidden>
219
+ <!-- Details content -->
220
+ </div>
221
+ ```
222
+
223
+ ### 1.5 Form Accessibility
224
+
225
+ **REQUIREMENT:** All form fields properly labeled and validated.
226
+
227
+ ```astro
228
+ <!-- Proper form structure -->
229
+ <form>
230
+ <!-- Text input -->
231
+ <div class="flex flex-col mb-4">
232
+ <label for="name" class="mb-2 font-medium">
233
+ Full Name
234
+ <span aria-label="required">*</span>
235
+ </label>
236
+ <input
237
+ id="name"
238
+ type="text"
239
+ name="name"
240
+ required
241
+ aria-required="true"
242
+ placeholder="John Doe"
243
+ />
244
+ </div>
245
+
246
+ <!-- Email with validation -->
247
+ <div class="flex flex-col mb-4">
248
+ <label for="email" class="mb-2 font-medium">
249
+ Email Address
250
+ </label>
251
+ <input
252
+ id="email"
253
+ type="email"
254
+ name="email"
255
+ required
256
+ aria-required="true"
257
+ aria-describedby="email-hint email-error"
258
+ />
259
+ <p id="email-hint" class="text-xs text-muted-foreground mt-1">
260
+ We'll never share your email
261
+ </p>
262
+ <p id="email-error" class="text-xs text-destructive mt-1" hidden>
263
+ Invalid email format
264
+ </p>
265
+ </div>
266
+
267
+ <!-- Select dropdown -->
268
+ <div class="flex flex-col mb-4">
269
+ <label for="type" class="mb-2 font-medium">
270
+ Entity Type
271
+ </label>
272
+ <select
273
+ id="type"
274
+ name="type"
275
+ required
276
+ aria-label="Select entity type"
277
+ >
278
+ <option value="">Select...</option>
279
+ <option value="thing">Thing</option>
280
+ <option value="connection">Connection</option>
281
+ </select>
282
+ </div>
283
+
284
+ <!-- Checkbox -->
285
+ <div class="flex items-center mb-4">
286
+ <input
287
+ id="agree"
288
+ type="checkbox"
289
+ name="agree"
290
+ required
291
+ aria-required="true"
292
+ />
293
+ <label for="agree" class="ml-2">
294
+ I agree to the terms
295
+ </label>
296
+ </div>
297
+
298
+ <!-- Submit button -->
299
+ <button
300
+ type="submit"
301
+ class="px-6 py-3 bg-primary text-primary-foreground rounded-md"
302
+ disabled={isLoading}
303
+ >
304
+ {isLoading ? 'Submitting...' : 'Submit Form'}
305
+ </button>
306
+ </form>
307
+ ```
308
+
309
+ ### 1.6 Screen Reader Testing
310
+
311
+ **REQUIREMENT:** Test with actual screen readers, not just plugins.
312
+
313
+ #### Test Checklist
314
+
315
+ - [ ] **Page title** - Describes page purpose
316
+ - [ ] **Page landmarks** - `<header>`, `<nav>`, `<main>`, `<footer>`
317
+ - [ ] **Heading hierarchy** - h1 → h2 → h3 (no skipping)
318
+ - [ ] **Link text** - Descriptive (not "click here")
319
+ - [ ] **Image alt text** - Meaningful and concise
320
+ - [ ] **Form labels** - Associated with inputs
321
+ - [ ] **Button purposes** - Clear from text/label
322
+ - [ ] **Error messages** - Announced and associated with inputs
323
+ - [ ] **Loading states** - Announced as aria-busy
324
+ - [ ] **Modal announcements** - Focused and trapped
325
+
326
+ #### Screen Reader Tools
327
+
328
+ **Windows:**
329
+ - NVDA (free) - https://www.nvaccess.org/
330
+ - JAWS (paid) - https://www.freedomscientific.com/
331
+
332
+ **Mac:**
333
+ - VoiceOver (built-in) - Cmd+F5 to enable
334
+ - JAWS (paid)
335
+
336
+ **Testing Process:**
337
+
338
+ ```
339
+ 1. Enable screen reader
340
+ 2. Start from page top
341
+ 3. Press Tab to navigate (interactive elements)
342
+ 4. Press H to navigate (headings)
343
+ 5. Verify all content is announced
344
+ 6. Verify nothing unexpected is announced
345
+ 7. Test forms with keyboard only
346
+ 8. Test modal interactions
347
+ ```
348
+
349
+ ### 1.7 Mobile & Touch Accessibility
350
+
351
+ **REQUIREMENT:** Touch-friendly interface for mobile users.
352
+
353
+ #### Touch Target Sizes
354
+
355
+ ```html
356
+ <!-- Minimum 44x44 pixels (11.2mm) -->
357
+ <button class="px-4 py-2 h-11"> <!-- 44px height -->
358
+ Touch-friendly button
359
+ </button>
360
+
361
+ <a href="#" class="px-4 py-2.5 h-12"> <!-- 48px height -->
362
+ Touch-friendly link
363
+ </a>
364
+
365
+ <!-- Spacing between targets: minimum 8px -->
366
+ <div class="flex gap-3"> <!-- 12px gap is safe -->
367
+ <button class="h-11">Button 1</button>
368
+ <button class="h-11">Button 2</button>
369
+ </div>
370
+ ```
371
+
372
+ #### Mobile Viewport
373
+
374
+ ```html
375
+ <!-- Allows pinch zoom (accessibility requirement) -->
376
+ <meta
377
+ name="viewport"
378
+ content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes"
379
+ />
380
+
381
+ <!-- NOT this (disables zoom) -->
382
+ <meta
383
+ name="viewport"
384
+ content="width=device-width, initial-scale=1, user-scalable=no"
385
+ />
386
+ ```
387
+
388
+ ### 1.8 Accessibility Audit Checklist
389
+
390
+ Before shipping any page:
391
+
392
+ - [ ] **Semantic HTML:** All interactive elements use proper tags
393
+ - [ ] **Color Contrast:** WCAG AAA (4.5:1 body, 3:1 large)
394
+ - [ ] **Keyboard Navigation:** Tab, Enter, Escape all work
395
+ - [ ] **Focus States:** Visible outline on all interactive elements
396
+ - [ ] **ARIA Labels:** Buttons, links, forms all labeled
397
+ - [ ] **Form Validation:** Errors associated with fields
398
+ - [ ] **Images:** All have meaningful alt text
399
+ - [ ] **Screen Reader:** Page makes sense read top-to-bottom
400
+ - [ ] **Touch Targets:** Minimum 44x44px with 8px spacing
401
+ - [ ] **Language:** `lang="en"` on `<html>` element
402
+ - [ ] **Links:** No "click here", descriptive text
403
+ - [ ] **Color:** Not sole means of conveying information
404
+
405
+ **Automated Tools:**
406
+
407
+ ```bash
408
+ # axe DevTools
409
+ 1. Open browser DevTools
410
+ 2. Find axe DevTools tab
411
+ 3. Click "Scan ALL of my page"
412
+ 4. Fix issues marked as violations
413
+
414
+ # Lighthouse
415
+ 1. Open DevTools → Lighthouse
416
+ 2. Check "Accessibility"
417
+ 3. Run audit
418
+ 4. Fix critical issues
419
+
420
+ # WAVE
421
+ 1. Install WAVE extension
422
+ 2. Click icon to scan page
423
+ 3. Review errors and alerts
424
+ 4. Fix accessibility issues
425
+ ```
426
+
427
+ ---
428
+
429
+ ## Part 2: Animations & Transitions
430
+
431
+ ### 2.1 Animation Philosophy
432
+
433
+ **PRINCIPLE:** Animations should enhance, not distract. All animations:
434
+ - Are less than 300ms (except intentional long animations)
435
+ - Use `prefers-reduced-motion` for accessibility
436
+ - Don't autoplay audio or video
437
+ - Are reversible (hover effects undo on unhover)
438
+
439
+ ### 2.2 Core Animations
440
+
441
+ ```css
442
+ /* Global CSS */
443
+ @keyframes fadeIn {
444
+ from {
445
+ opacity: 0;
446
+ }
447
+ to {
448
+ opacity: 1;
449
+ }
450
+ }
451
+
452
+ @keyframes fadeInUp {
453
+ from {
454
+ opacity: 0;
455
+ transform: translateY(30px);
456
+ }
457
+ to {
458
+ opacity: 1;
459
+ transform: translateY(0);
460
+ }
461
+ }
462
+
463
+ @keyframes slideInFromLeft {
464
+ from {
465
+ opacity: 0;
466
+ transform: translateX(-20px);
467
+ }
468
+ to {
469
+ opacity: 1;
470
+ transform: translateX(0);
471
+ }
472
+ }
473
+
474
+ @keyframes slideInFromRight {
475
+ from {
476
+ opacity: 0;
477
+ transform: translateX(20px);
478
+ }
479
+ to {
480
+ opacity: 1;
481
+ transform: translateX(0);
482
+ }
483
+ }
484
+
485
+ @keyframes slideDown {
486
+ from {
487
+ opacity: 0;
488
+ transform: translateY(-10px);
489
+ }
490
+ to {
491
+ opacity: 1;
492
+ transform: translateY(0);
493
+ }
494
+ }
495
+
496
+ @keyframes float {
497
+ 0%, 100% {
498
+ transform: translateY(0px) scale(1);
499
+ }
500
+ 50% {
501
+ transform: translateY(-15px) scale(1.02);
502
+ }
503
+ }
504
+
505
+ @keyframes pulse {
506
+ 0%, 100% {
507
+ opacity: 1;
508
+ }
509
+ 50% {
510
+ opacity: 0.5;
511
+ }
512
+ }
513
+
514
+ @keyframes shimmer {
515
+ 0% {
516
+ background-position: -1000px 0;
517
+ }
518
+ 100% {
519
+ background-position: 1000px 0;
520
+ }
521
+ }
522
+
523
+ /* Utility classes */
524
+ .animate-fadeIn {
525
+ animation: fadeIn 300ms ease-out forwards;
526
+ }
527
+
528
+ .animate-fadeInUp {
529
+ animation: fadeInUp 300ms ease-out forwards;
530
+ }
531
+
532
+ .animate-slideInLeft {
533
+ animation: slideInFromLeft 300ms ease-out forwards;
534
+ }
535
+
536
+ .animate-slideInRight {
537
+ animation: slideInFromRight 300ms ease-out forwards;
538
+ }
539
+
540
+ .animate-float {
541
+ animation: float 3s ease-in-out infinite;
542
+ }
543
+
544
+ /* Respect user motion preferences */
545
+ @media (prefers-reduced-motion: reduce) {
546
+ * {
547
+ animation-duration: 0.01ms !important;
548
+ animation-iteration-count: 1 !important;
549
+ transition-duration: 0.01ms !important;
550
+ }
551
+ }
552
+ ```
553
+
554
+ ### 2.3 Transition Patterns
555
+
556
+ #### Page Transitions
557
+
558
+ ```astro
559
+ <!-- Fade in on load -->
560
+ <div class="opacity-0 animate-fadeIn">
561
+ Page content fades in
562
+ </div>
563
+
564
+ <!-- Staggered animations for lists -->
565
+ <ul class="space-y-4">
566
+ {items.map((item, i) => (
567
+ <li
568
+ class="opacity-0 animate-fadeInUp"
569
+ style={{ animationDelay: `${i * 100}ms` }}
570
+ >
571
+ {item}
572
+ </li>
573
+ ))}
574
+ </ul>
575
+ ```
576
+
577
+ #### Button Interactions
578
+
579
+ ```astro
580
+ <!-- Hover scale -->
581
+ <button class="
582
+ transition-all duration-200
583
+ hover:scale-105 active:scale-95
584
+ hover:shadow-lg active:shadow-md
585
+ ">
586
+ Click me
587
+ </button>
588
+
589
+ <!-- Hover color -->
590
+ <button class="
591
+ bg-primary text-primary-foreground
592
+ transition-colors duration-200
593
+ hover:bg-primary/90
594
+ ">
595
+ Hover effect
596
+ </button>
597
+
598
+ <!-- Hover lift -->
599
+ <button class="
600
+ transition-all duration-300
601
+ hover:-translate-y-1 hover:shadow-lg
602
+ ">
603
+ Lift on hover
604
+ </button>
605
+ ```
606
+
607
+ #### Card Interactions
608
+
609
+ ```astro
610
+ <!-- Card hover effect -->
611
+ <div class="
612
+ rounded-lg bg-card border border-border p-6
613
+ transition-all duration-300
614
+ hover:shadow-lg hover:-translate-y-1 hover:border-primary/50
615
+ ">
616
+ Card content
617
+ </div>
618
+
619
+ <!-- Gradient animation -->
620
+ <div class="
621
+ bg-gradient-to-r from-primary via-primary/50 to-primary
622
+ bg-[length:200%_auto]
623
+ animate-gradient
624
+ ">
625
+ Animated gradient background
626
+ </div>
627
+ ```
628
+
629
+ #### Form Interactions
630
+
631
+ ```astro
632
+ <!-- Input focus -->
633
+ <input class="
634
+ px-4 py-2.5 rounded-md border border-border
635
+ transition-colors duration-200
636
+ focus:border-primary focus:ring-2 focus:ring-primary/20
637
+ "/>
638
+
639
+ <!-- Smooth label movement (floating label pattern) -->
640
+ <div class="relative">
641
+ <input
642
+ id="name"
643
+ type="text"
644
+ class="peer px-4 py-3 border border-border rounded-md"
645
+ placeholder=" "
646
+ />
647
+ <label
648
+ for="name"
649
+ class="
650
+ absolute top-3 left-4
651
+ transition-all duration-200
652
+ peer-placeholder-shown:top-3 peer-placeholder-shown:text-muted-foreground
653
+ peer-focus:top-1 peer-focus:text-sm peer-focus:text-primary
654
+ "
655
+ >
656
+ Full Name
657
+ </label>
658
+ </div>
659
+ ```
660
+
661
+ #### Loading States
662
+
663
+ ```astro
664
+ <!-- Skeleton loader -->
665
+ <div class="space-y-4">
666
+ <div class="h-12 bg-muted rounded-md animate-pulse"></div>
667
+ <div class="h-8 bg-muted rounded-md animate-pulse"></div>
668
+ <div class="h-8 bg-muted rounded-md animate-pulse w-2/3"></div>
669
+ </div>
670
+
671
+ <!-- Spinner -->
672
+ <div class="flex items-center gap-3">
673
+ <div class="w-5 h-5 border-2 border-primary/20 border-t-primary rounded-full animate-spin"></div>
674
+ <span>Loading...</span>
675
+ </div>
676
+
677
+ <!-- Progress bar -->
678
+ <div class="h-1 bg-muted rounded-full overflow-hidden">
679
+ <div class="h-full bg-primary rounded-full animate-pulse"
680
+ style="width: 65%; animation: pulse 1.5s ease-in-out infinite;"></div>
681
+ </div>
682
+ ```
683
+
684
+ #### Success/Error Animations
685
+
686
+ ```astro
687
+ <!-- Success toast -->
688
+ <div class="
689
+ p-4 rounded-lg bg-green-500/10 border border-green-500/20
690
+ animate-fadeInUp
691
+ flex items-start gap-3
692
+ ">
693
+ <svg class="w-5 h-5 text-green-600 flex-shrink-0 mt-0.5">
694
+ <!-- Check icon -->
695
+ </svg>
696
+ <p class="text-green-700">Success message</p>
697
+ </div>
698
+
699
+ <!-- Error shake animation -->
700
+ @keyframes shake {
701
+ 0%, 100% { transform: translateX(0); }
702
+ 25% { transform: translateX(-5px); }
703
+ 75% { transform: translateX(5px); }
704
+ }
705
+
706
+ <div class="animate-shake" style="animation: shake 0.3s ease-in-out;">
707
+ Error message
708
+ </div>
709
+ ```
710
+
711
+ ### 2.4 Animation Timing
712
+
713
+ | Duration | Use Case |
714
+ |----------|----------|
715
+ | 150ms | UI micro-interactions (hover, focus) |
716
+ | 200ms | Button clicks, form interactions |
717
+ | 300ms | Standard transitions, page sections |
718
+ | 500ms | Modals, significant layout changes |
719
+ | 800ms+ | Long-form animations, intentional delays |
720
+
721
+ ```astro
722
+ <!-- Micro-interaction: 150ms -->
723
+ <button class="transition-all duration-150 hover:bg-primary/90">
724
+ Quick feedback
725
+ </button>
726
+
727
+ <!-- Standard transition: 300ms -->
728
+ <div class="transition-all duration-300 hover:shadow-lg">
729
+ Card animation
730
+ </div>
731
+
732
+ <!-- Modal: 500ms -->
733
+ <dialog class="
734
+ opacity-0 scale-95
735
+ data-[open]:opacity-100 data-[open]:scale-100
736
+ transition-all duration-500
737
+ ">
738
+ Modal
739
+ </dialog>
740
+ ```
741
+
742
+ ### 2.5 Motion Preferences
743
+
744
+ **REQUIREMENT:** Respect `prefers-reduced-motion` system setting.
745
+
746
+ ```css
747
+ /* Disable all animations for users who prefer reduced motion */
748
+ @media (prefers-reduced-motion: reduce) {
749
+ *,
750
+ *::before,
751
+ *::after {
752
+ animation-duration: 0.01ms !important;
753
+ animation-iteration-count: 1 !important;
754
+ transition-duration: 0.01ms !important;
755
+ }
756
+ }
757
+ ```
758
+
759
+ ### 2.6 Hero Section Animation
760
+
761
+ ```astro
762
+ <section class="relative overflow-hidden px-4 py-32">
763
+ <!-- Background blurs -->
764
+ <div class="absolute inset-0 -z-10 overflow-hidden">
765
+ <!-- Left blur - float in from left -->
766
+ <div class="
767
+ absolute left-1/4 top-0 h-96 w-96
768
+ rounded-full bg-primary/10 blur-[120px]
769
+ opacity-0 animate-fadeIn
770
+ "></div>
771
+
772
+ <!-- Right blur - float in from right -->
773
+ <div class="
774
+ absolute right-1/3 bottom-0 h-80 w-80
775
+ rounded-full bg-accent/10 blur-[120px]
776
+ opacity-0 animate-fadeIn
777
+ animation-delay-200ms
778
+ "></div>
779
+ </div>
780
+
781
+ <!-- Content -->
782
+ <div class="max-w-4xl mx-auto text-center">
783
+ <!-- Badge slides in -->
784
+ <div class="
785
+ inline-block mb-6
786
+ opacity-0 animate-fadeInUp
787
+ animation-delay-100ms
788
+ ">
789
+ <span class="text-sm font-medium">New Feature</span>
790
+ </div>
791
+
792
+ <!-- Title slides in -->
793
+ <h1 class="
794
+ text-5xl font-bold mb-6
795
+ opacity-0 animate-fadeInUp
796
+ animation-delay-200ms
797
+ ">
798
+ Main Title
799
+ </h1>
800
+
801
+ <!-- Subtitle slides in -->
802
+ <p class="
803
+ text-xl text-muted-foreground mb-12
804
+ opacity-0 animate-fadeInUp
805
+ animation-delay-300ms
806
+ ">
807
+ Subtitle
808
+ </p>
809
+
810
+ <!-- Buttons slide in -->
811
+ <div class="
812
+ flex gap-4 justify-center
813
+ opacity-0 animate-fadeInUp
814
+ animation-delay-400ms
815
+ ">
816
+ <button>Primary CTA</button>
817
+ <button>Secondary CTA</button>
818
+ </div>
819
+ </div>
820
+
821
+ <!-- Scroll indicator bounces -->
822
+ <div class="flex justify-center mt-12">
823
+ <svg class="w-6 h-6 animate-bounce">
824
+ <!-- Chevron down icon -->
825
+ </svg>
826
+ </div>
827
+ </section>
828
+ ```
829
+
830
+ ### 2.7 Playground Animation
831
+
832
+ ```astro
833
+ <!-- Form appears on load -->
834
+ <form class="opacity-0 animate-fadeInUp animation-delay-200ms space-y-4">
835
+ <!-- Form fields -->
836
+ </form>
837
+
838
+ <!-- Data updates with fade -->
839
+ <div class="
840
+ relative transition-opacity duration-300
841
+ opacity-0 data-[loaded]:opacity-100
842
+ ">
843
+ <pre>{JSON.stringify(liveData)}</pre>
844
+ </div>
845
+
846
+ <!-- Stats cards stagger in -->
847
+ {stats.map((stat, i) => (
848
+ <div
849
+ class="
850
+ opacity-0 animate-fadeInUp
851
+ rounded-lg p-6 border border-border text-center
852
+ "
853
+ style={{
854
+ animationDelay: `${i * 100}ms`
855
+ }}
856
+ >
857
+ <p class="text-2xl font-bold">{stat.value}</p>
858
+ <p class="text-sm text-muted-foreground">{stat.label}</p>
859
+ </div>
860
+ ))}
861
+ ```
862
+
863
+ ### 2.8 Relationship Graph Animation
864
+
865
+ ```astro
866
+ <!-- Graph canvas with fade in -->
867
+ <div class="
868
+ rounded-lg border border-border overflow-hidden
869
+ opacity-0 animate-fadeIn animation-delay-300ms
870
+ ">
871
+ <canvas class="w-full h-[500px]"></canvas>
872
+ </div>
873
+
874
+ <!-- Selected entity info slides in from right -->
875
+ <div class="
876
+ rounded-lg bg-background p-6
877
+ opacity-0 animate-slideInRight
878
+ animation-delay-400ms
879
+ ">
880
+ <!-- Entity properties -->
881
+ </div>
882
+
883
+ <!-- Connected items with stagger -->
884
+ {connections.map((conn, i) => (
885
+ <div
886
+ class="
887
+ flex items-center gap-2 p-2
888
+ opacity-0 animate-fadeInUp
889
+ rounded-md hover:bg-muted
890
+ transition-colors duration-200
891
+ "
892
+ style={{
893
+ animationDelay: `${500 + i * 50}ms`
894
+ }}
895
+ >
896
+ {/* Connection item */}
897
+ </div>
898
+ ))}
899
+ ```
900
+
901
+ ### 2.9 CTA Section Animation
902
+
903
+ ```astro
904
+ <section class="
905
+ relative overflow-hidden px-4 py-28
906
+ bg-gradient-to-br from-primary to-primary/80
907
+ text-primary-foreground
908
+ ">
909
+ <!-- Content stagger -->
910
+ <div class="max-w-4xl mx-auto text-center">
911
+ <!-- Icon floats -->
912
+ <div class="
913
+ mb-6 flex justify-center
914
+ opacity-0 animate-fadeIn
915
+ ">
916
+ <div class="animate-float">
917
+ <!-- Icon -->
918
+ </div>
919
+ </div>
920
+
921
+ <!-- Headline slides in -->
922
+ <h2 class="
923
+ text-5xl font-bold mb-6
924
+ opacity-0 animate-fadeInUp
925
+ animation-delay-100ms
926
+ ">
927
+ Ready to build?
928
+ </h2>
929
+
930
+ <!-- Description slides in -->
931
+ <p class="
932
+ text-xl opacity-0 animate-fadeInUp
933
+ animation-delay-200ms
934
+ ">
935
+ Get started with the ontology
936
+ </p>
937
+
938
+ <!-- Buttons slide in -->
939
+ <div class="
940
+ flex gap-4 justify-center mt-8
941
+ opacity-0 animate-fadeInUp
942
+ animation-delay-300ms
943
+ ">
944
+ <button>Get Started</button>
945
+ <button>Learn More</button>
946
+ </div>
947
+
948
+ <!-- Stats appear with stagger -->
949
+ {stats.map((stat, i) => (
950
+ <div
951
+ class="
952
+ opacity-0 animate-fadeIn
953
+ animation-delay-[${400 + i * 100}ms]
954
+ "
955
+ >
956
+ {stat}
957
+ </div>
958
+ ))}
959
+ </div>
960
+ </section>
961
+ ```
962
+
963
+ ---
964
+
965
+ ## Version History
966
+
967
+ | Version | Date | Changes |
968
+ |---------|------|---------|
969
+ | 1.0.0 | Oct 2024 | Initial accessibility and animation specifications |
970
+
971
+ ---
972
+
973
+ **Specifications Maintained By:** Design Agent
974
+ **Last Updated:** October 25, 2024
975
+ **Status:** Production Ready
976
+
977
+ ---
978
+
979
+ ## Quick Reference
980
+
981
+ ### Accessibility Checklist
982
+ - [ ] Semantic HTML
983
+ - [ ] WCAG AAA contrast (4.5:1 body, 3:1 large)
984
+ - [ ] Keyboard navigation works
985
+ - [ ] Focus indicators visible
986
+ - [ ] ARIA labels present
987
+ - [ ] Forms properly labeled
988
+ - [ ] Touch targets 44x44px
989
+ - [ ] Mobile zoom not disabled
990
+
991
+ ### Animation Checklist
992
+ - [ ] All animations < 500ms (except intentional)
993
+ - [ ] `prefers-reduced-motion` respected
994
+ - [ ] No autoplay audio/video
995
+ - [ ] Animations enhance, don't distract
996
+ - [ ] Smooth easing (ease-in-out, ease-out)
997
+ - [ ] Staggered animations for lists
998
+ - [ ] Loading states animated
999
+ - [ ] Focus states visible