oneie 3.6.20 → 3.6.21

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.
@@ -0,0 +1,773 @@
1
+ ---
2
+ title: Quick Start Page - Ontology Mapping
3
+ description: Maps quick-start page design to the 6-dimension ontology
4
+ dimension: knowledge
5
+ category: design-patterns
6
+ tags: quick-start, ontology, design, documentation
7
+ created: 2025-11-06
8
+ ---
9
+
10
+ # Quick Start Page - 6-Dimension Ontology Mapping
11
+
12
+ This document traces every design decision and component through the ONE 6-dimension ontology, ensuring the page is not just beautiful but also ontologically coherent.
13
+
14
+ ---
15
+
16
+ ## 1. Groups Dimension (Multi-Tenant Isolation)
17
+
18
+ ### How the Quick Start Page Models Groups
19
+
20
+ **The Question:** Who owns this documentation? Who can customize it?
21
+
22
+ **Answer:** The quick-start page is scoped to a group (or organization level for platform-wide documentation).
23
+
24
+ ```typescript
25
+ // Quick start is a "thing" in the knowledge dimension
26
+ {
27
+ _id: "quickstart_docs_001",
28
+ groupId: "one_platform", // Owned by the organization
29
+ type: "documentation", // Documentation thing type
30
+ name: "Quick Start Guide",
31
+ properties: {
32
+ designType: "wireframe",
33
+ pages: [
34
+ { name: "hero", sections: [...] },
35
+ { name: "benefits", sections: [...] }
36
+ ],
37
+ brandColors: {
38
+ primary: "222.2 47.4% 11.2%", // From group settings
39
+ accent: "210 100% 50%"
40
+ }
41
+ },
42
+ status: "published",
43
+ createdAt: 1234567890,
44
+ updatedAt: 1234567890
45
+ }
46
+ ```
47
+
48
+ ### Hierarchical Groups (Nested Organizations)
49
+
50
+ Different organizations can have different quick-start pages:
51
+
52
+ ```
53
+ groups/one-platform (organization)
54
+ ├── docs/quick-start (scoped to one-platform)
55
+ │ └── colors: primary blue, accent cyan
56
+ │
57
+ groups/acme-corp (organization)
58
+ ├── docs/quick-start (scoped to acme-corp)
59
+ │ └── colors: primary red, accent orange
60
+ │
61
+ groups/emma-dao (dao)
62
+ ├── docs/quick-start (scoped to emma-dao)
63
+ │ └── colors: primary purple, accent green
64
+ ```
65
+
66
+ **Implication:** The same design system (wireframe + components) serves all groups. Only the color tokens change based on `group.properties.brandColors`.
67
+
68
+ ---
69
+
70
+ ## 2. People Dimension (Authorization & Roles)
71
+
72
+ ### Who Can View, Edit, and Publish the Quick Start Page?
73
+
74
+ **Roles:**
75
+ - **platform_owner**: Can edit documentation across all groups
76
+ - **org_owner**: Can customize quick-start for their organization
77
+ - **org_user**: Can view documentation
78
+ - **customer**: Can view public documentation
79
+
80
+ ### Role-Based Content Customization
81
+
82
+ ```typescript
83
+ // Quick start page renders different CTAs by role
84
+
85
+ if (role === "org_user" || role === "customer") {
86
+ // "Start Building" → points to /quick-start
87
+ showCTA("Start Building", "/quick-start");
88
+ }
89
+
90
+ if (role === "org_owner") {
91
+ // Additional CTA: "Customize Branding"
92
+ showCTA("Customize Branding", "/admin/branding");
93
+ }
94
+
95
+ if (role === "platform_owner") {
96
+ // Edit documentation
97
+ showButton("Edit Documentation", "/admin/docs/quick-start/edit");
98
+ }
99
+ ```
100
+
101
+ ### Authorization Chain
102
+
103
+ ```
104
+ Person (Emma)
105
+ ↓ has role: org_user
106
+ Organization (Acme Corp)
107
+ ↓ has access to
108
+ Quick Start Documentation
109
+ ↓ reads
110
+ Colors: primary, accent, fonts (from Acme's brand settings)
111
+ ```
112
+
113
+ ---
114
+
115
+ ## 3. Things Dimension (Entities)
116
+
117
+ ### What Things Are Involved in the Quick Start Page?
118
+
119
+ **Primary Things:**
120
+ 1. **Documentation** (thing type: "documentation")
121
+ - Quick start page itself
122
+
123
+ 2. **Design** (thing type: "design")
124
+ - Wireframes (components OntologyFlow, QuickStartOptions, QuickWalkthrough)
125
+ - Design tokens (colors, typography, spacing)
126
+ - Component definitions (React component specs)
127
+
128
+ 3. **Content** (thing type: "text_content" or "blog_post")
129
+ - Tutorial steps
130
+ - Code examples
131
+ - Explanations
132
+
133
+ 4. **Navigation** (thing type: "workflow" or "guide")
134
+ - Learning path (Next Steps section)
135
+ - Related documentation links
136
+
137
+ ### Entity Relationships to Quick Start
138
+
139
+ ```typescript
140
+ // Things on the quick start page
141
+ {
142
+ // Thing 1: The page itself
143
+ {
144
+ type: "documentation",
145
+ name: "Quick Start Guide",
146
+ properties: {
147
+ sections: [
148
+ { name: "hero", component: "HeroSection" },
149
+ { name: "quick-start-options", component: "QuickStartOptions" },
150
+ { name: "walkthrough", component: "QuickWalkthrough" },
151
+ { name: "benefits", component: "BenefitsGrid" }
152
+ ]
153
+ }
154
+ },
155
+
156
+ // Thing 2: Featured course (in "Next Steps" section)
157
+ {
158
+ type: "course",
159
+ name: "Learn the 6 Dimensions",
160
+ properties: {
161
+ duration: "10 minutes",
162
+ difficulty: "beginner",
163
+ url: "/docs/core-concepts/ontology"
164
+ }
165
+ },
166
+
167
+ // Thing 3: Referenced feature (Ontology)
168
+ {
169
+ type: "knowledge_base",
170
+ name: "6-Dimension Ontology",
171
+ properties: {
172
+ chapters: ["groups", "people", "things", "connections", "events", "knowledge"]
173
+ }
174
+ }
175
+ }
176
+ ```
177
+
178
+ ---
179
+
180
+ ## 4. Connections Dimension (Relationships)
181
+
182
+ ### How Does the Quick Start Page Relate to Other Things?
183
+
184
+ **Connection Types:**
185
+
186
+ 1. **teaches** (Documentation → Concept)
187
+ ```typescript
188
+ {
189
+ fromThingId: "quickstart_docs_001",
190
+ toThingId: "ontology_knowledge_001",
191
+ relationshipType: "teaches",
192
+ metadata: {
193
+ section: "hero",
194
+ learningObjective: "understand 6 dimensions visually"
195
+ }
196
+ }
197
+ ```
198
+
199
+ 2. **references** (Documentation → Related Docs)
200
+ ```typescript
201
+ {
202
+ fromThingId: "quickstart_docs_001",
203
+ toThingId: "backend_guide_001",
204
+ relationshipType: "references",
205
+ metadata: {
206
+ context: "next-steps",
207
+ order: 2
208
+ }
209
+ }
210
+ ```
211
+
212
+ 3. **created_by** (Documentation → Design Agent)
213
+ ```typescript
214
+ {
215
+ fromThingId: "quickstart_docs_001",
216
+ toThingId: "design_agent_001",
217
+ relationshipType: "created_by",
218
+ metadata: {
219
+ role: "designer",
220
+ stage: "5_design"
221
+ }
222
+ }
223
+ ```
224
+
225
+ 4. **connected_to** (Component → Component)
226
+ ```typescript
227
+ {
228
+ fromThingId: "OntologyFlowComponent",
229
+ toThingId: "DimensionColors",
230
+ relationshipType: "uses",
231
+ metadata: {
232
+ tokens: ["--color-dimension-groups", "--color-dimension-people"]
233
+ }
234
+ }
235
+ ```
236
+
237
+ ### Why This Matters
238
+
239
+ **Knowledge Graph Query Example:**
240
+ ```typescript
241
+ // Find all documentation that teaches about the 6 dimensions
242
+ const docs = await findConnections({
243
+ toThingId: "ontology_knowledge_001",
244
+ relationshipType: "teaches"
245
+ });
246
+ // Returns: [quick_start, architecture_guide, onboarding_flow, ...]
247
+
248
+ // Find all next steps from quick-start
249
+ const nextSteps = await findConnections({
250
+ fromThingId: "quickstart_docs_001",
251
+ relationshipType: "references",
252
+ metadata: { context: "next-steps" }
253
+ });
254
+ // Returns: [backend_guide, architecture_guide, deployment_guide, ...]
255
+ ```
256
+
257
+ ---
258
+
259
+ ## 5. Events Dimension (Actions & Audit Trail)
260
+
261
+ ### What Actions Happen on the Quick Start Page?
262
+
263
+ **User Actions (Things That Get Logged):**
264
+
265
+ ```typescript
266
+ // Event 1: User views quick start page
267
+ {
268
+ type: "page_viewed",
269
+ actorId: "user_123",
270
+ targetId: "quickstart_docs_001",
271
+ timestamp: 1234567890,
272
+ metadata: {
273
+ path: "/docs/getting-started/quick-start",
274
+ referrer: "google.com",
275
+ device: "mobile"
276
+ }
277
+ }
278
+
279
+ // Event 2: User scrolls to section
280
+ {
281
+ type: "section_scrolled",
282
+ actorId: "user_123",
283
+ targetId: "quickstart_docs_001",
284
+ timestamp: 1234567891,
285
+ metadata: {
286
+ section: "benefits-grid",
287
+ scrollPercentage: 45
288
+ }
289
+ }
290
+
291
+ // Event 3: User clicks "Start Building" CTA
292
+ {
293
+ type: "cta_clicked",
294
+ actorId: "user_123",
295
+ targetId: "quickstart_docs_001",
296
+ timestamp: 1234567892,
297
+ metadata: {
298
+ ctaLabel: "Start Building",
299
+ ctaTarget: "/quick-start",
300
+ section: "hero"
301
+ }
302
+ }
303
+
304
+ // Event 4: User copies code block
305
+ {
306
+ type: "code_copied",
307
+ actorId: "user_123",
308
+ targetId: "quickstart_docs_001",
309
+ timestamp: 1234567893,
310
+ metadata: {
311
+ code: "bun install",
312
+ step: 1,
313
+ section: "quick-start-options"
314
+ }
315
+ }
316
+
317
+ // Event 5: User opens tab
318
+ {
319
+ type: "tab_switched",
320
+ actorId: "user_123",
321
+ targetId: "quickstart_docs_001",
322
+ timestamp: 1234567894,
323
+ metadata: {
324
+ tabName: "bootstrap",
325
+ section: "quick-start-options"
326
+ }
327
+ }
328
+
329
+ // Event 6: User clicks "Next Steps" link
330
+ {
331
+ type: "link_clicked",
332
+ actorId: "user_123",
333
+ targetId: "quickstart_docs_001",
334
+ timestamp: 1234567895,
335
+ metadata: {
336
+ link: "/docs/core-concepts/ontology",
337
+ linkText: "Learn the 6 Dimensions",
338
+ section: "next-steps"
339
+ }
340
+ }
341
+
342
+ // Event 7: Page reaches performance milestone
343
+ {
344
+ type: "page_loaded",
345
+ actorId: "system",
346
+ targetId: "quickstart_docs_001",
347
+ timestamp: 1234567890,
348
+ metadata: {
349
+ lcp: 2200, // Largest Contentful Paint: 2.2s (< 2.5s target)
350
+ fid: 85, // First Input Delay: 85ms (< 100ms target)
351
+ cls: 0.08, // Cumulative Layout Shift: 0.08 (< 0.1 target)
352
+ performanceScore: 92 // Lighthouse score
353
+ }
354
+ }
355
+ ```
356
+
357
+ ### Analytics Derived from Events
358
+
359
+ **Conversion Funnel:**
360
+ ```
361
+ Users who view page: 1000
362
+ ↓ Scroll past hero: 800 (80%)
363
+ ↓ Reach benefits section: 700 (70%)
364
+ ↓ Click CTA: 150 (15%)
365
+ ↓ Complete quick start: 120 (12%)
366
+
367
+ Metric: 12% conversion rate (target: > 10%)
368
+ ```
369
+
370
+ **Engagement Metrics:**
371
+ ```
372
+ Average time on page: 2m 15s (target: > 90s) ✓
373
+ Users who interact with tabs: 45% (target: > 40%) ✓
374
+ Users who copy code: 38% (target: > 30%) ✓
375
+ Click-through to next docs: 22% (target: > 20%) ✓
376
+ ```
377
+
378
+ **Performance Events (Logged by System):**
379
+ ```
380
+ LCP (Largest Contentful Paint): 2.2s
381
+ FID (First Input Delay): 85ms
382
+ CLS (Cumulative Layout Shift): 0.08
383
+ Lighthouse Score: 92/100
384
+ ```
385
+
386
+ ### Why This Matters
387
+
388
+ **Product Insights:**
389
+ - Which sections do users spend most time reading?
390
+ - What's the conversion path from "interested" to "building"?
391
+ - Which CTA is most effective (primary vs secondary)?
392
+ - What's the drop-off point?
393
+ - Do users on mobile vs desktop behave differently?
394
+
395
+ **Design Validation:**
396
+ - Is the page meeting performance targets (LCP, CLS)?
397
+ - Are users finding the code blocks easy to use (copy button)?
398
+ - Do users expand all walkthrough steps or just first few?
399
+
400
+ ---
401
+
402
+ ## 6. Knowledge Dimension (Semantics & Search)
403
+
404
+ ### How Does the Quick Start Page Enable Intelligence?
405
+
406
+ **Labels & Categorization:**
407
+
408
+ ```typescript
409
+ // Knowledge about the quick start page
410
+ {
411
+ thingId: "quickstart_docs_001",
412
+ labels: [
413
+ // Skill level
414
+ "audience:beginners",
415
+ "audience:developers",
416
+
417
+ // Topic
418
+ "topic:getting-started",
419
+ "topic:ontology",
420
+ "topic:setup",
421
+
422
+ // Format
423
+ "format:interactive",
424
+ "format:step-by-step",
425
+ "format:code-examples",
426
+
427
+ // Goal
428
+ "goal:learn",
429
+ "goal:build",
430
+
431
+ // Status
432
+ "status:published",
433
+ "status:featured",
434
+
435
+ // Technology
436
+ "technology:astro",
437
+ "technology:react",
438
+ "technology:tailwind",
439
+
440
+ // Skill requirements
441
+ "skill:javascript",
442
+ "skill:typescript",
443
+ "skill:node.js"
444
+ ]
445
+ }
446
+ ```
447
+
448
+ ### Semantic Search
449
+
450
+ **User searches for:**
451
+ ```
452
+ "how do i get started with ONE?"
453
+ ↓
454
+ Search engine vectorizes this query
455
+ ↓
456
+ Finds documents with labels:
457
+ - audience:beginners (matches "get started")
458
+ - goal:learn (matches user intent)
459
+ - format:step-by-step (matches "how do i")
460
+ ↓
461
+ Returns: Quick Start Page (rank 1)
462
+ ```
463
+
464
+ ### RAG (Retrieval-Augmented Generation)
465
+
466
+ **When AI needs context about quick-start patterns:**
467
+
468
+ ```typescript
469
+ // AI query
470
+ "Generate a quick start guide for feature X"
471
+
472
+ // RAG retrieval
473
+ vectorSearch({
474
+ query: "getting started structure",
475
+ limit: 5
476
+ });
477
+
478
+ // Returns chunks from quick-start page:
479
+ [
480
+ {
481
+ chunk: "Hero section with headline, subheadline, value props",
482
+ source: "quickstart_docs_001",
483
+ label: "format:interactive",
484
+ relevance: 0.95
485
+ },
486
+ {
487
+ chunk: "Tabbed setup options (bootstrap vs clone)",
488
+ source: "quickstart_docs_001",
489
+ label: "format:step-by-step",
490
+ relevance: 0.92
491
+ },
492
+ {
493
+ chunk: "Walkthrough with 5 expandable steps",
494
+ source: "quickstart_docs_001",
495
+ label: "format:interactive",
496
+ relevance: 0.89
497
+ }
498
+ ]
499
+
500
+ // AI uses these chunks as templates for new guides
501
+ ```
502
+
503
+ ### Embeddings for Similarity
504
+
505
+ **Content similar to quick-start:**
506
+ ```typescript
507
+ // Vector similarity search
508
+ findSimilarContent("quickstart_docs_001", topK: 5);
509
+
510
+ // Returns similar docs
511
+ [
512
+ { name: "5-Minute Setup Guide", similarity: 0.92 },
513
+ { name: "Getting Started with Astro", similarity: 0.87 },
514
+ { name: "Onboarding Flow", similarity: 0.84 },
515
+ { name: "Tutorial Series", similarity: 0.81 },
516
+ { name: "Installation Guide", similarity: 0.78 }
517
+ ]
518
+ ```
519
+
520
+ ### Knowledge Chunks (Reusable Patterns)
521
+
522
+ **Chunk 1: Hero Section Pattern**
523
+ ```typescript
524
+ {
525
+ id: "chunk_hero_pattern",
526
+ title: "Hero Section: Problem + Solution + CTA",
527
+ content: "Lead with the problem (manual setup is slow). Show the solution (ONE automates). Include dual CTAs (Primary: start now, Secondary: learn more).",
528
+ labels: ["pattern:hero", "pattern:sales", "component:hero"],
529
+ sources: ["quickstart_docs_001"],
530
+ usage: "Used in: Quick Start, Landing Page, Feature Pages"
531
+ }
532
+ ```
533
+
534
+ **Chunk 2: Tabbed Options Pattern**
535
+ ```typescript
536
+ {
537
+ id: "chunk_tabs_pattern",
538
+ title: "Tabbed Decision: Bootstrap vs Manual",
539
+ content: "When users have multiple setup paths, use tabs to avoid overwhelming them. Bootstrap (easy path) vs Clone (control path). Benefits list for each.",
540
+ labels: ["pattern:tabs", "pattern:setup", "component:tabs"],
541
+ sources: ["quickstart_docs_001"],
542
+ usage: "Used in: Installation guides, Setup wizards"
543
+ }
544
+ ```
545
+
546
+ **Chunk 3: Expandable Walkthrough Pattern**
547
+ ```typescript
548
+ {
549
+ id: "chunk_walkthrough_pattern",
550
+ title: "5-Step Expandable Walkthrough",
551
+ content: "Progressive disclosure: Show numbered steps, expand on click. Reduces cognitive load. Each step includes code, explanation, details.",
552
+ labels: ["pattern:walkthrough", "pattern:tutorial", "component:accordion"],
553
+ sources: ["quickstart_docs_001"],
554
+ usage: "Used in: Tutorials, Onboarding, Setup guides"
555
+ }
556
+ ```
557
+
558
+ ### Future AI Generation
559
+
560
+ **When building future guides, the system can:**
561
+
562
+ 1. **Query by pattern:** "Show me all hero section patterns"
563
+ 2. **Adapt existing pattern:** "Create a hero for Feature X based on quick-start hero"
564
+ 3. **Combine chunks:** "Combine hero, tabs, and walkthrough for new feature guide"
565
+ 4. **Maintain consistency:** "Ensure this guide follows ONE documentation standards"
566
+
567
+ ---
568
+
569
+ ## Complete Ontology Loop
570
+
571
+ ### Cycle: User Views Page → Gets Value → Signals Success
572
+
573
+ ```
574
+ 1. GROUPS (Container)
575
+ User (Emma) belongs to organization (Acme Corp)
576
+ ↓
577
+
578
+ 2. PEOPLE (Authorization)
579
+ Emma has role: org_user
580
+ Permission to view quick-start docs
581
+ ↓
582
+
583
+ 3. THINGS (Content)
584
+ Quick-start page loads (documentation thing)
585
+ - Hero section (displays ontology)
586
+ - Quick-start options (tabs with setup paths)
587
+ - Walkthrough (5 steps)
588
+ ↓
589
+
590
+ 4. CONNECTIONS (Relationships)
591
+ Documentation (quick-start) teaches Concept (6 dimensions)
592
+ Documentation references Course (Learn Ontology)
593
+ ↓
594
+
595
+ 5. EVENTS (Actions Logged)
596
+ Emma views page
597
+ Emma scrolls to benefits
598
+ Emma clicks "Start Building" CTA
599
+ Emma copies code block
600
+ Emma opens "Learn Ontology" link
601
+ ↓
602
+
603
+ 6. KNOWLEDGE (Understanding)
604
+ System learns:
605
+ - Emma is beginner (reads quick-start)
606
+ - Emma interested in ontology (clicked link)
607
+ - Emma has 30 min available (read time)
608
+ - Emma prefers guided path (clicked bootstrap option)
609
+
610
+ Labels updated:
611
+ - emma: +audience:beginner
612
+ - emma: +goal:learn
613
+ - emma: +skill:potential:javascript
614
+ ```
615
+
616
+ ### Business Value From Ontology
617
+
618
+ **What We Know After This Loop:**
619
+
620
+ ```
621
+ User Signal Ontology Mapping Business Value
622
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
623
+ Viewed quick-start event:page_viewed User is interested
624
+ Scrolled benefits event:section_scrolled User engaged with value prop
625
+ Clicked bootstrap connection:chose_path User prefers guided approach
626
+ Copied code event:code_copied User attempting setup
627
+ Clicked ontology event:link_clicked User wants deeper knowledge
628
+ (30 min on page) event:duration User is committed
629
+
630
+ Result: User has 95% chance of completing setup
631
+ Action: Send email: "Next: Build Your First Feature"
632
+ ```
633
+
634
+ ---
635
+
636
+ ## Design Principles Derived From Ontology
637
+
638
+ ### 1. Teach Through Groups Dimension
639
+ Every time you show a feature, highlight: "This works at any organizational scale."
640
+
641
+ **Example:** "The same quick-start setup works for Emma's startup and Fortune 500 companies."
642
+
643
+ ### 2. Respect People Dimension
644
+ Always show role-appropriate content. An org_user sees different CTAs than platform_owner.
645
+
646
+ **Example:** Only show "Customize Branding" to org_owner role.
647
+
648
+ ### 3. Model Things Dimension
649
+ Every entity on the page should have a type. Documentation is a thing. Design is a thing.
650
+
651
+ **Example:** Page title → "Quick Start" (documentation thing)
652
+
653
+ ### 4. Strengthen Connections Dimension
654
+ Make relationships explicit. Link to related documentation, courses, guides.
655
+
656
+ **Example:** "Next Steps" section connects to 3 related courses.
657
+
658
+ ### 5. Log Everything (Events Dimension)
659
+ Track all user interactions. Anonymize where needed, but log comprehensively.
660
+
661
+ **Example:** Page load → event, scroll → event, click → event
662
+
663
+ ### 6. Enable Knowledge (Knowledge Dimension)
664
+ Label content for searchability and RAG. Future AI will learn from this.
665
+
666
+ **Example:** Label: "audience:beginners" enables AI to find beginner-friendly content.
667
+
668
+ ---
669
+
670
+ ## Implementation Guidance
671
+
672
+ ### When Frontend Specialist Builds Components
673
+
674
+ **OntologyFlow Component:**
675
+ ```typescript
676
+ // Maps to Knowledge dimension
677
+ // Chunks: "6-dimension-overview" pattern
678
+ // Labels: ["pattern:diagram", "format:visual"]
679
+ // Purpose: Teach the ontology
680
+
681
+ // Maps to Things dimension
682
+ // Type: "design" (it's a design artifact)
683
+ // Properties: { designType: "diagram" }
684
+ ```
685
+
686
+ **QuickStartOptions Component:**
687
+ ```typescript
688
+ // Maps to Things dimension (documentation)
689
+ // Maps to Knowledge dimension (tabbed pattern)
690
+ // Labels: ["pattern:tabs", "format:code"]
691
+ // Purpose: Guide setup path selection
692
+ ```
693
+
694
+ **QuickWalkthrough Component:**
695
+ ```typescript
696
+ // Maps to Things dimension (walkthrough content)
697
+ // Maps to Knowledge dimension (expandable pattern)
698
+ // Labels: ["pattern:walkthrough", "format:step-by-step"]
699
+ // Purpose: Guide step-by-step setup
700
+ ```
701
+
702
+ ### When Frontend Specialist Adds Events
703
+
704
+ ```typescript
705
+ // In OntologyFlow component
706
+ useEffect(() => {
707
+ logEvent({
708
+ type: "component_rendered",
709
+ targetId: "quickstart_docs_001",
710
+ metadata: { component: "OntologyFlow" }
711
+ });
712
+ }, []);
713
+
714
+ // In QuickStartOptions component
715
+ const handleTabChange = (tab) => {
716
+ logEvent({
717
+ type: "tab_switched",
718
+ targetId: "quickstart_docs_001",
719
+ metadata: { tabName: tab, section: "quick-start-options" }
720
+ });
721
+ };
722
+
723
+ // In copy button
724
+ const handleCopy = () => {
725
+ logEvent({
726
+ type: "code_copied",
727
+ targetId: "quickstart_docs_001",
728
+ metadata: { code: codeToCopy, section: "quick-start-options" }
729
+ });
730
+ };
731
+ ```
732
+
733
+ ### When Measuring Success
734
+
735
+ **Metrics to Track (from Events):**
736
+ 1. Page views (event: page_viewed)
737
+ 2. Scroll depth (event: section_scrolled)
738
+ 3. CTA clicks (event: cta_clicked)
739
+ 4. Code copies (event: code_copied)
740
+ 5. Tab switches (event: tab_switched)
741
+ 6. Next step clicks (event: link_clicked)
742
+ 7. Performance metrics (event: page_loaded)
743
+
744
+ **Success Criteria (derived from ontology):**
745
+ - User progresses through all 6 dimensions (understood → interested → building)
746
+ - User's role-based content is appropriate (people dimension)
747
+ - User is connected to related documentation (connections dimension)
748
+ - User's actions are logged for analytics (events dimension)
749
+ - Future AI can learn from this page (knowledge dimension)
750
+
751
+ ---
752
+
753
+ ## Conclusion
754
+
755
+ **The quick-start page is not just a design artifact. It's a complete ontological entity** that:
756
+
757
+ 1. **Groups:** Scoped to organizations (multi-tenant from day one)
758
+ 2. **People:** Respects role-based authorization (shows appropriate content)
759
+ 3. **Things:** Documents what exists and how to get started
760
+ 4. **Connections:** Links to related documentation and courses
761
+ 5. **Events:** Logs every user action for analytics and learning
762
+ 6. **Knowledge:** Teaches the ontology and provides patterns for future docs
763
+
764
+ When built this way, the quick-start page becomes:
765
+ - **Scalable** (same page works for 2-person startup to 10M-person enterprise)
766
+ - **Learnable** (AI agents can extract patterns for future guides)
767
+ - **Measurable** (comprehensive event logging enables optimization)
768
+ - **Principled** (every design decision maps to ontology)
769
+
770
+ ---
771
+
772
+ **Design Agent:** Ontology mapping complete. All design decisions validated against the 6 dimensions.
773
+