oneie 3.6.18 → 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.
- package/.claude/agents/agent-ops.md +63 -2
- package/.claude/commands/commit.md +95 -0
- package/.claude/commands/npx.md +2 -2
- package/.claude/commands/one.md +7 -1
- package/.claude/commands/push.md +113 -21
- package/.claude/commands/release.md +2 -2
- package/.claude/hooks/release-cli.sh +195 -0
- package/CLAUDE.md +131 -12
- package/README.md +778 -497
- package/one/groups/one.md +1 -1
- package/one/knowledge/architecture-frontend.md +5 -0
- package/one/knowledge/archived/ontology.old.md +1 -1
- package/one/knowledge/develop/design.md +364 -0
- package/one/knowledge/develop/index.md +145 -0
- package/one/knowledge/metadata-system.md +1 -1
- package/one/knowledge/ontology-engineering.md +1 -1
- package/one/knowledge/ontology.md +1 -1
- package/one/knowledge/patterns/design/index.md +160 -0
- package/one/knowledge/quick-start-ontology-mapping.md +773 -0
- package/one/knowledge/todo-template.md +100 -100
- package/one/knowledge/todo.md +100 -100
- package/one/people/anthony-o-connell.md +3 -3
- package/one/things/master-workflow-plan.md +2 -2
- package/one/things/plans/execution-strategy.md +243 -243
- package/one/things/plans/wave1-specialist-assignments.md +1 -1
- package/one/things/todo-ai.md +100 -100
- package/one/things/todo-assignment.md +21 -21
- package/one/things/todo-effects.md +100 -100
- package/one/things/todo-frontend-effects.md +100 -100
- package/one/things/todo-master-plan.md +1 -1
- package/one/things/todo-sequence.md +1 -1
- package/package.json +1 -1
- package/.claude/agents/NEWS-QUICKSTART.md +0 -321
- package/.claude/agents/NEWS-README.md +0 -353
- package/.claude/hooks/README-knowledge-hooks.md +0 -451
- package/.claude/hooks/README-root-cleanup.md +0 -200
- package/.claude/hooks/README.md +0 -284
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +0 -177
- package/.claude/hooks/clean-post.py +0 -468
- package/.claude/hooks/clean-pre.py +0 -393
- package/.claude/hooks/clean-root-markdown.sh +0 -73
- package/.claude/hooks/done.py +0 -236
- package/.claude/hooks/format-hook.sh +0 -163
- package/.claude/hooks/hook-logger.sh +0 -173
- package/.claude/hooks/knowledge-post.py +0 -355
- package/.claude/hooks/knowledge-pre.py +0 -245
- package/.claude/hooks/notification-hook.sh +0 -279
- package/.claude/hooks/root-cleanup.py +0 -217
- package/.claude/hooks/security-hook.sh +0 -397
- package/.claude/hooks/tag-all-docs.py +0 -464
- package/.claude/hooks/test-validate-ontology.sh +0 -170
- package/.claude/hooks/todo.py +0 -368
- package/.claude/hooks/track-changes.sh +0 -101
- package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
- package/.claude/hooks/validate-ontology-structure.py +0 -518
- package/TESTING-ONBOARDING.md +0 -185
|
@@ -52,20 +52,20 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
|
|
|
52
52
|
**Duration:** 3-4 days
|
|
53
53
|
**Deliverable:** Architecture blueprint, task breakdown, timeline
|
|
54
54
|
|
|
55
|
-
### **[
|
|
55
|
+
### **[CYCLE-001]** Validate frontend architecture against 6-dimension ontology
|
|
56
56
|
|
|
57
57
|
- Services map to ontology dimensions (groups, people, things, connections, events, knowledge)
|
|
58
58
|
- DataProvider enforces ontology structure at interface level
|
|
59
59
|
- Type system prevents ontology violations
|
|
60
60
|
|
|
61
|
-
### **[
|
|
61
|
+
### **[CYCLE-002]** Map existing Convex integration to DataProvider pattern
|
|
62
62
|
|
|
63
63
|
- Identify all Convex hooks in current codebase
|
|
64
64
|
- List all mutation/query calls
|
|
65
65
|
- Create mapping: Convex calls → DataProvider interface
|
|
66
66
|
- Assess migration risk and complexity
|
|
67
67
|
|
|
68
|
-
### **[
|
|
68
|
+
### **[CYCLE-003]** Design service dependency graph
|
|
69
69
|
|
|
70
70
|
- ThingService dependencies: DataProvider
|
|
71
71
|
- ConnectionService dependencies: DataProvider
|
|
@@ -74,14 +74,14 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
|
|
|
74
74
|
- CourseService dependencies: ThingService, ConnectionService
|
|
75
75
|
- Visualize and validate acyclic dependency graph
|
|
76
76
|
|
|
77
|
-
### **[
|
|
77
|
+
### **[CYCLE-004]** Define error hierarchy for frontend
|
|
78
78
|
|
|
79
79
|
- Domain errors (ThingNotFound, ValidationError)
|
|
80
80
|
- Provider errors (ProviderError, NetworkError)
|
|
81
81
|
- Component errors (FormError, RenderError)
|
|
82
82
|
- Tagging strategy for Effect error channels
|
|
83
83
|
|
|
84
|
-
### **[
|
|
84
|
+
### **[CYCLE-005]** Plan React hook library
|
|
85
85
|
|
|
86
86
|
- useEffectRunner (core)
|
|
87
87
|
- useThingService (generic CRUD)
|
|
@@ -90,27 +90,27 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
|
|
|
90
90
|
- useOptimisticUpdate
|
|
91
91
|
- List hooks and interdependencies
|
|
92
92
|
|
|
93
|
-
### **[
|
|
93
|
+
### **[CYCLE-006]** Design test strategy
|
|
94
94
|
|
|
95
95
|
- Unit tests: Services with mock providers
|
|
96
96
|
- Component tests: React Testing Library
|
|
97
97
|
- E2E tests: Full flow with real provider
|
|
98
98
|
- Test coverage targets: 85% unit, 70% integration
|
|
99
99
|
|
|
100
|
-
### **[
|
|
100
|
+
### **[CYCLE-007]** Create rollback plan
|
|
101
101
|
|
|
102
102
|
- Keep both Convex hooks and Effect services during migration
|
|
103
103
|
- Component migration is opt-in (can rollback per-component)
|
|
104
104
|
- Provider swapping is configuration (reversible)
|
|
105
105
|
|
|
106
|
-
### **[
|
|
106
|
+
### **[CYCLE-008]** Identify critical auth components
|
|
107
107
|
|
|
108
108
|
- Auth pages (login, signup, password reset)
|
|
109
109
|
- Auth tests in `frontend/tests/auth/*`
|
|
110
110
|
- Must pass throughout entire migration
|
|
111
111
|
- Establish as "canary" for quality
|
|
112
112
|
|
|
113
|
-
### **[
|
|
113
|
+
### **[CYCLE-009]** Plan parallel work streams
|
|
114
114
|
|
|
115
115
|
- **Stream A:** DataProvider + ConvexProvider (Frontend + Backend specialist)
|
|
116
116
|
- **Stream B:** Effect services (Backend specialist)
|
|
@@ -118,7 +118,7 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
|
|
|
118
118
|
- **Stream D:** Component migration (Frontend specialist)
|
|
119
119
|
- **Stream E:** Testing (Quality specialist)
|
|
120
120
|
|
|
121
|
-
### **[
|
|
121
|
+
### **[CYCLE-010]** Assign specialists and schedule
|
|
122
122
|
|
|
123
123
|
- **Frontend Lead:** Oversee streams, manage blockers, coordinate release
|
|
124
124
|
- **Backend Specialist:** Services, providers, DI composition
|
|
@@ -135,13 +135,13 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
|
|
|
135
135
|
**Deliverable:** Complete DataProvider interface, error types, documentation
|
|
136
136
|
**Status:** ✅ Ready to Start (independent of other phases)
|
|
137
137
|
|
|
138
|
-
### **[
|
|
138
|
+
### **[CYCLE-011]** Create `/web/src/providers/DataProvider.ts` base file
|
|
139
139
|
|
|
140
140
|
- Stub interface with all 6 dimensions
|
|
141
141
|
- Placeholder for error types
|
|
142
142
|
- JSDoc comments for each method
|
|
143
143
|
|
|
144
|
-
### **[
|
|
144
|
+
### **[CYCLE-012]** Define Groups interface (Dimension 1)
|
|
145
145
|
|
|
146
146
|
```typescript
|
|
147
147
|
groups: {
|
|
@@ -151,7 +151,7 @@ groups: {
|
|
|
151
151
|
}
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
### **[
|
|
154
|
+
### **[CYCLE-013]** Define People interface (Dimension 2)
|
|
155
155
|
|
|
156
156
|
```typescript
|
|
157
157
|
people: {
|
|
@@ -163,7 +163,7 @@ people: {
|
|
|
163
163
|
}
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
### **[
|
|
166
|
+
### **[CYCLE-014]** Define Things interface (Dimension 3)
|
|
167
167
|
|
|
168
168
|
```typescript
|
|
169
169
|
things: {
|
|
@@ -176,7 +176,7 @@ things: {
|
|
|
176
176
|
}
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
### **[
|
|
179
|
+
### **[CYCLE-015]** Define Connections interface (Dimension 4)
|
|
180
180
|
|
|
181
181
|
```typescript
|
|
182
182
|
connections: {
|
|
@@ -187,7 +187,7 @@ connections: {
|
|
|
187
187
|
}
|
|
188
188
|
```
|
|
189
189
|
|
|
190
|
-
### **[
|
|
190
|
+
### **[CYCLE-016]** Define Events interface (Dimension 5)
|
|
191
191
|
|
|
192
192
|
```typescript
|
|
193
193
|
events: {
|
|
@@ -196,7 +196,7 @@ events: {
|
|
|
196
196
|
}
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
### **[
|
|
199
|
+
### **[CYCLE-017]** Define Knowledge interface (Dimension 6)
|
|
200
200
|
|
|
201
201
|
```typescript
|
|
202
202
|
knowledge: {
|
|
@@ -205,20 +205,20 @@ knowledge: {
|
|
|
205
205
|
}
|
|
206
206
|
```
|
|
207
207
|
|
|
208
|
-
### **[
|
|
208
|
+
### **[CYCLE-018]** Create error type definitions
|
|
209
209
|
|
|
210
210
|
- ThingNotFoundError, ValidationError, ProviderError, etc.
|
|
211
211
|
- Use Data.TaggedError for Effect compatibility
|
|
212
212
|
- Export as union type: `type DataProviderError = ...`
|
|
213
213
|
|
|
214
|
-
### **[
|
|
214
|
+
### **[CYCLE-019]** Document interface with examples
|
|
215
215
|
|
|
216
216
|
- Docstrings for each method
|
|
217
217
|
- Usage examples
|
|
218
218
|
- Error channel documentation
|
|
219
219
|
- Ontology mapping comments
|
|
220
220
|
|
|
221
|
-
### **[
|
|
221
|
+
### **[CYCLE-020]** Create Context.Tag for DataProvider
|
|
222
222
|
|
|
223
223
|
```typescript
|
|
224
224
|
export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
@@ -234,63 +234,63 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
234
234
|
**Status:** ✅ Ready to Start (depends on Phase 2, independent of UI)
|
|
235
235
|
**Can Start:** Day 5 (when DataProvider is defined)
|
|
236
236
|
|
|
237
|
-
### **[
|
|
237
|
+
### **[CYCLE-021]** Create `/web/src/services/ThingService.ts` class definition
|
|
238
238
|
|
|
239
239
|
- Extend Effect.Service
|
|
240
240
|
- Define interface: get, list, create, update, delete
|
|
241
241
|
- Implement with provider delegation
|
|
242
242
|
|
|
243
|
-
### **[
|
|
243
|
+
### **[CYCLE-022]** Create `/web/src/services/ConnectionService.ts`
|
|
244
244
|
|
|
245
245
|
- Extend Effect.Service
|
|
246
246
|
- Define interface: create, getRelated, getCount, delete
|
|
247
247
|
- Implement with provider delegation
|
|
248
248
|
|
|
249
|
-
### **[
|
|
249
|
+
### **[CYCLE-023]** Create `/web/src/services/EventService.ts`
|
|
250
250
|
|
|
251
251
|
- Extend Effect.Service
|
|
252
252
|
- Define interface: log, query
|
|
253
253
|
- Implement with provider delegation
|
|
254
254
|
|
|
255
|
-
### **[
|
|
255
|
+
### **[CYCLE-024]** Create `/web/src/services/KnowledgeService.ts`
|
|
256
256
|
|
|
257
257
|
- Extend Effect.Service
|
|
258
258
|
- Define interface: embed, search
|
|
259
259
|
- Implement with provider delegation
|
|
260
260
|
|
|
261
|
-
### **[
|
|
261
|
+
### **[CYCLE-025]** Create `/web/src/services/GroupService.ts`
|
|
262
262
|
|
|
263
263
|
- Extend Effect.Service
|
|
264
264
|
- Define interface: get, list, update, getCurrent
|
|
265
265
|
- Implement with provider delegation
|
|
266
266
|
|
|
267
|
-
### **[
|
|
267
|
+
### **[CYCLE-026]** Create `/web/src/services/PeopleService.ts`
|
|
268
268
|
|
|
269
269
|
- Extend Effect.Service
|
|
270
270
|
- Define interface: get, list, create, getCurrentUser
|
|
271
271
|
- Implement with provider delegation
|
|
272
272
|
|
|
273
|
-
### **[
|
|
273
|
+
### **[CYCLE-027]** Create domain-specific service: CourseService
|
|
274
274
|
|
|
275
275
|
- Extends Effect.Service
|
|
276
276
|
- Depends on: ThingService, ConnectionService
|
|
277
277
|
- Methods: createWithInstructor, getWithEnrollments, etc.
|
|
278
278
|
|
|
279
|
-
### **[
|
|
279
|
+
### **[CYCLE-028]** Create `/web/src/services/ClientLayer.ts`
|
|
280
280
|
|
|
281
281
|
- Merge all service layers
|
|
282
282
|
- Merge provider layer
|
|
283
283
|
- Export as single Layer for React injection
|
|
284
284
|
- Document layer composition
|
|
285
285
|
|
|
286
|
-
### **[
|
|
286
|
+
### **[CYCLE-029]** Write unit tests for services with mock provider
|
|
287
287
|
|
|
288
288
|
- Mock provider implementation
|
|
289
289
|
- Test happy paths
|
|
290
290
|
- Test error scenarios
|
|
291
291
|
- 90%+ coverage per service
|
|
292
292
|
|
|
293
|
-
### **[
|
|
293
|
+
### **[CYCLE-030]** Validate service type signatures
|
|
294
294
|
|
|
295
295
|
- Full TypeScript strict mode
|
|
296
296
|
- No `any` types
|
|
@@ -307,66 +307,66 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
307
307
|
**Status:** ✅ Ready to Start (depends on Phase 3, independent of components)
|
|
308
308
|
**Can Start:** Day 8 (when services are defined)
|
|
309
309
|
|
|
310
|
-
### **[
|
|
310
|
+
### **[CYCLE-031]** Create `/web/src/hooks/useEffectRunner.ts`
|
|
311
311
|
|
|
312
312
|
- Core hook: run Effect programs in React
|
|
313
313
|
- Return: { run, loading, error }
|
|
314
314
|
- Integrate ClientLayer automatically
|
|
315
315
|
- Handle cleanup on unmount
|
|
316
316
|
|
|
317
|
-
### **[
|
|
317
|
+
### **[CYCLE-032]** Create `/web/src/hooks/useThingService.ts`
|
|
318
318
|
|
|
319
319
|
- Generic CRUD hook
|
|
320
320
|
- Load things on mount
|
|
321
321
|
- Create, update operations
|
|
322
322
|
- Automatic list refresh
|
|
323
323
|
|
|
324
|
-
### **[
|
|
324
|
+
### **[CYCLE-033]** Create `/web/src/hooks/useService.ts`
|
|
325
325
|
|
|
326
326
|
- Generic service accessor
|
|
327
327
|
- Run any service operation
|
|
328
328
|
- Type-safe service access
|
|
329
329
|
|
|
330
|
-
### **[
|
|
330
|
+
### **[CYCLE-034]** Create `/web/src/hooks/useForm.ts`
|
|
331
331
|
|
|
332
332
|
- Form state management with validation
|
|
333
333
|
- Integration with Effect schemas
|
|
334
334
|
- Error handling per-field
|
|
335
335
|
- Submit handler with optimism
|
|
336
336
|
|
|
337
|
-
### **[
|
|
337
|
+
### **[CYCLE-035]** Create `/web/src/hooks/useOptimisticUpdate.ts`
|
|
338
338
|
|
|
339
339
|
- Optimistic updates pattern
|
|
340
340
|
- Rollback on error
|
|
341
341
|
- Loading state
|
|
342
342
|
- Success callback
|
|
343
343
|
|
|
344
|
-
### **[
|
|
344
|
+
### **[CYCLE-036]** Create `/web/src/hooks/useMemoEffect.ts`
|
|
345
345
|
|
|
346
346
|
- Memoization of Effect operations
|
|
347
347
|
- Dependency tracking
|
|
348
348
|
- Cache cleanup
|
|
349
349
|
|
|
350
|
-
### **[
|
|
350
|
+
### **[CYCLE-037]** Create `/web/src/context/EffectContext.tsx`
|
|
351
351
|
|
|
352
352
|
- EffectProvider component
|
|
353
353
|
- useEffectLayer hook
|
|
354
354
|
- Default to ClientLayer
|
|
355
355
|
- Support layer injection for testing
|
|
356
356
|
|
|
357
|
-
### **[
|
|
357
|
+
### **[CYCLE-038]** Create `/web/src/context/UserContext.tsx`
|
|
358
358
|
|
|
359
359
|
- Current user state
|
|
360
360
|
- Session management
|
|
361
361
|
- Role-based access
|
|
362
362
|
|
|
363
|
-
### **[
|
|
363
|
+
### **[CYCLE-039]** Create `/web/src/context/GroupContext.tsx`
|
|
364
364
|
|
|
365
365
|
- Current group/organization
|
|
366
366
|
- Multi-tenant isolation
|
|
367
367
|
- Context switching
|
|
368
368
|
|
|
369
|
-
### **[
|
|
369
|
+
### **[CYCLE-040]** Write hook integration tests
|
|
370
370
|
|
|
371
371
|
- Test all hooks with mock provider
|
|
372
372
|
- Test error handling
|
|
@@ -383,69 +383,69 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
383
383
|
**Status:** ✅ Ready to Start (depends on Phase 3, independent of component migration)
|
|
384
384
|
**Can Start:** Day 8
|
|
385
385
|
|
|
386
|
-
### **[
|
|
386
|
+
### **[CYCLE-041]** Update `astro.config.ts` to import ConvexProvider
|
|
387
387
|
|
|
388
388
|
- Configure provider (stub for now)
|
|
389
389
|
- Establish provider configuration pattern
|
|
390
390
|
- Document environment variables needed
|
|
391
391
|
|
|
392
|
-
### **[
|
|
392
|
+
### **[CYCLE-042]** Create `/web/src/pages/example.astro` with server-side fetching
|
|
393
393
|
|
|
394
394
|
- Demonstrate SSR data fetching with Effect
|
|
395
395
|
- Fetch course list server-side
|
|
396
396
|
- Pass to client component
|
|
397
397
|
- Show loading state handling
|
|
398
398
|
|
|
399
|
-
### **[
|
|
399
|
+
### **[CYCLE-043]** Create `/web/src/layouts/BlogPost.astro` content layout
|
|
400
400
|
|
|
401
401
|
- Load markdown content
|
|
402
402
|
- Enrich with dynamic data (related articles)
|
|
403
403
|
- Demonstrate Knowledge service integration
|
|
404
404
|
- Show server + client component mixing
|
|
405
405
|
|
|
406
|
-
### **[
|
|
406
|
+
### **[CYCLE-044]** Create `/web/src/layouts/Layout.astro` base layout
|
|
407
407
|
|
|
408
408
|
- EffectProvider for client components
|
|
409
409
|
- Context setup (user, group)
|
|
410
410
|
- Navigation with group switching
|
|
411
411
|
- Auth state display
|
|
412
412
|
|
|
413
|
-
### **[
|
|
413
|
+
### **[CYCLE-045]** Implement `/web/src/lib/astro-helpers.ts`
|
|
414
414
|
|
|
415
415
|
- Helper functions for SSR data fetching
|
|
416
416
|
- Error handling patterns
|
|
417
417
|
- Cache helpers
|
|
418
418
|
- Type-safe query utilities
|
|
419
419
|
|
|
420
|
-
### **[
|
|
420
|
+
### **[CYCLE-046]** Create 3 example pages showing patterns
|
|
421
421
|
|
|
422
422
|
- Simple page (list things)
|
|
423
423
|
- Form page (create thing)
|
|
424
424
|
- Dynamic page (detail with related)
|
|
425
425
|
- All with full error handling
|
|
426
426
|
|
|
427
|
-
### **[
|
|
427
|
+
### **[CYCLE-047]** Document Astro-Effect integration
|
|
428
428
|
|
|
429
429
|
- SSR best practices
|
|
430
430
|
- Client vs server boundaries
|
|
431
431
|
- Content collection integration
|
|
432
432
|
- Performance patterns
|
|
433
433
|
|
|
434
|
-
### **[
|
|
434
|
+
### **[CYCLE-048]** Write E2E tests for Astro pages
|
|
435
435
|
|
|
436
436
|
- Test SSR rendering
|
|
437
437
|
- Test client hydration
|
|
438
438
|
- Test navigation
|
|
439
439
|
- Test error states
|
|
440
440
|
|
|
441
|
-
### **[
|
|
441
|
+
### **[CYCLE-049]** Performance audit: Astro bundle
|
|
442
442
|
|
|
443
443
|
- Measure JavaScript footprint
|
|
444
444
|
- Analyze island strategy
|
|
445
445
|
- Verify streaming works
|
|
446
446
|
- Core Web Vitals check
|
|
447
447
|
|
|
448
|
-
### **[
|
|
448
|
+
### **[CYCLE-050]** Document SSR caching strategy
|
|
449
449
|
|
|
450
450
|
- What to cache (rarely changing data)
|
|
451
451
|
- What not to cache (user-specific data)
|
|
@@ -463,140 +463,140 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
463
463
|
**Can Start:** Day 10
|
|
464
464
|
**Parallel:** Can overlap with Phases 7-9
|
|
465
465
|
|
|
466
|
-
### **[
|
|
466
|
+
### **[CYCLE-051]** Migrate `/web/src/pages/auth/signup.astro`
|
|
467
467
|
|
|
468
468
|
- Replace Convex hooks with useAuthService
|
|
469
469
|
- Maintain form validation
|
|
470
470
|
- Keep existing test passing
|
|
471
471
|
- Document migration pattern
|
|
472
472
|
|
|
473
|
-
### **[
|
|
473
|
+
### **[CYCLE-052]** Migrate `/web/src/pages/auth/signin.astro`
|
|
474
474
|
|
|
475
475
|
- Replace Convex authentication
|
|
476
476
|
- Maintain session handling
|
|
477
477
|
- Run auth tests: MUST PASS
|
|
478
478
|
- No regression allowed
|
|
479
479
|
|
|
480
|
-
### **[
|
|
480
|
+
### **[CYCLE-053]** Migrate `/web/src/components/CourseFeed.tsx`
|
|
481
481
|
|
|
482
482
|
- Replace useQuery(api.queries.courses.list)
|
|
483
483
|
- Use useThingService("course", groupId)
|
|
484
484
|
- Update loading/error states
|
|
485
485
|
- Run tests
|
|
486
486
|
|
|
487
|
-
### **[
|
|
487
|
+
### **[CYCLE-054]** Migrate `/web/src/components/CourseDetail.tsx`
|
|
488
488
|
|
|
489
489
|
- Replace useQuery(api.queries.courses.get)
|
|
490
490
|
- Use useThingService for details + connections
|
|
491
491
|
- Maintain all existing features
|
|
492
492
|
- Run tests
|
|
493
493
|
|
|
494
|
-
### **[
|
|
494
|
+
### **[CYCLE-055]** Migrate `/web/src/components/CreateCourseForm.tsx`
|
|
495
495
|
|
|
496
496
|
- Replace useMutation(api.mutations.courses.create)
|
|
497
497
|
- Use useForm + ThingService
|
|
498
498
|
- Add optimistic updates
|
|
499
499
|
- Run tests
|
|
500
500
|
|
|
501
|
-
### **[
|
|
501
|
+
### **[CYCLE-056]** Migrate dashboard components (5 components)
|
|
502
502
|
|
|
503
503
|
- RoleManager, GroupManager, UserManager, etc.
|
|
504
504
|
- Follow established patterns
|
|
505
505
|
- Run tests after each
|
|
506
506
|
- Update error handling
|
|
507
507
|
|
|
508
|
-
### **[
|
|
508
|
+
### **[CYCLE-057]** Migrate content components (8 components)
|
|
509
509
|
|
|
510
510
|
- BlogPost display, CommentSection, RelatedArticles, etc.
|
|
511
511
|
- Use KnowledgeService for search
|
|
512
512
|
- Maintain performance
|
|
513
513
|
- Run tests
|
|
514
514
|
|
|
515
|
-
### **[
|
|
515
|
+
### **[CYCLE-058]** Migrate form components (10 components)
|
|
516
516
|
|
|
517
517
|
- Generic form fields, validators, error displays
|
|
518
518
|
- Use useForm hook
|
|
519
519
|
- Type-safe form data
|
|
520
520
|
- Full validation coverage
|
|
521
521
|
|
|
522
|
-
### **[
|
|
522
|
+
### **[CYCLE-059]** Migrate utility components (15 components)
|
|
523
523
|
|
|
524
524
|
- Loading states, error boundaries, notifications
|
|
525
525
|
- Use new error types
|
|
526
526
|
- Standardize patterns
|
|
527
527
|
- Run tests
|
|
528
528
|
|
|
529
|
-
### **[
|
|
529
|
+
### **[CYCLE-060]** Verify all auth tests STILL PASS
|
|
530
530
|
|
|
531
531
|
- Run full auth test suite
|
|
532
532
|
- Fix any regressions
|
|
533
533
|
- Document fixes
|
|
534
534
|
- Commit final passing state
|
|
535
535
|
|
|
536
|
-
### **[
|
|
536
|
+
### **[CYCLE-061]** Remove direct Convex imports from all components
|
|
537
537
|
|
|
538
538
|
- Grep for `from "convex/react"`
|
|
539
539
|
- Replace all with DataProvider services
|
|
540
540
|
- Verify no Convex hooks remain
|
|
541
541
|
- Clean up imports
|
|
542
542
|
|
|
543
|
-
### **[
|
|
543
|
+
### **[CYCLE-062]** Update component tests to use mock provider
|
|
544
544
|
|
|
545
545
|
- 50+ component tests updated
|
|
546
546
|
- All use EffectProvider with MockLayer
|
|
547
547
|
- No real Convex calls in tests
|
|
548
548
|
- 10x faster test suite
|
|
549
549
|
|
|
550
|
-
### **[
|
|
550
|
+
### **[CYCLE-063]** Run full component test suite
|
|
551
551
|
|
|
552
552
|
- 200+ tests should pass
|
|
553
553
|
- Verify no flakiness
|
|
554
554
|
- Check coverage: 70%+ integration
|
|
555
555
|
- Fix any failures
|
|
556
556
|
|
|
557
|
-
### **[
|
|
557
|
+
### **[CYCLE-064]** Audit component PropTypes
|
|
558
558
|
|
|
559
559
|
- All props properly typed
|
|
560
560
|
- No `any` types
|
|
561
561
|
- Full TypeScript strict mode
|
|
562
562
|
- Error types properly propagated
|
|
563
563
|
|
|
564
|
-
### **[
|
|
564
|
+
### **[CYCLE-065]** Create component migration guide
|
|
565
565
|
|
|
566
566
|
- Before/after examples
|
|
567
567
|
- Common patterns
|
|
568
568
|
- Error handling approach
|
|
569
569
|
- Performance considerations
|
|
570
570
|
|
|
571
|
-
### **[
|
|
571
|
+
### **[CYCLE-066]** Refactor high-traffic components for performance
|
|
572
572
|
|
|
573
573
|
- Add React.memo where appropriate
|
|
574
574
|
- Optimize re-render patterns
|
|
575
575
|
- Use request deduplication
|
|
576
576
|
- Benchmark changes
|
|
577
577
|
|
|
578
|
-
### **[
|
|
578
|
+
### **[CYCLE-067]** Add accessibility to migrated components
|
|
579
579
|
|
|
580
580
|
- ARIA labels
|
|
581
581
|
- Keyboard navigation
|
|
582
582
|
- Focus management
|
|
583
583
|
- Color contrast validation
|
|
584
584
|
|
|
585
|
-
### **[
|
|
585
|
+
### **[CYCLE-068]** Document component library changes
|
|
586
586
|
|
|
587
587
|
- Which components use which services
|
|
588
588
|
- What error states are possible
|
|
589
589
|
- Loading patterns
|
|
590
590
|
- Testing approach
|
|
591
591
|
|
|
592
|
-
### **[
|
|
592
|
+
### **[CYCLE-069]** Create visual regression tests for 20 key components
|
|
593
593
|
|
|
594
594
|
- Screenshot baselines
|
|
595
595
|
- Test on multiple breakpoints
|
|
596
596
|
- Catch unexpected changes
|
|
597
597
|
- Maintain visual consistency
|
|
598
598
|
|
|
599
|
-
### **[
|
|
599
|
+
### **[CYCLE-070]** Final component audit
|
|
600
600
|
|
|
601
601
|
- All 50+ migrated
|
|
602
602
|
- All tests passing
|
|
@@ -613,70 +613,70 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
613
613
|
**Status:** ✅ Ready to Start (depends on Phase 3)
|
|
614
614
|
**Can Start:** Day 10
|
|
615
615
|
|
|
616
|
-
### **[
|
|
616
|
+
### **[CYCLE-071]** Create test utilities library
|
|
617
617
|
|
|
618
618
|
- Mock provider factory
|
|
619
619
|
- Test layer compositions
|
|
620
620
|
- Assert error types
|
|
621
621
|
- Setup/teardown helpers
|
|
622
622
|
|
|
623
|
-
### **[
|
|
623
|
+
### **[CYCLE-072]** Write comprehensive service unit tests
|
|
624
624
|
|
|
625
625
|
- All 6 dimension services
|
|
626
626
|
- Happy paths + error scenarios
|
|
627
627
|
- Error recovery testing
|
|
628
628
|
- Dependency injection verification
|
|
629
629
|
|
|
630
|
-
### **[
|
|
630
|
+
### **[CYCLE-073]** Write provider integration tests
|
|
631
631
|
|
|
632
632
|
- Wrap actual Convex client
|
|
633
633
|
- Test real API calls
|
|
634
634
|
- Test error scenarios
|
|
635
635
|
- Validate transformations
|
|
636
636
|
|
|
637
|
-
### **[
|
|
637
|
+
### **[CYCLE-074]** Write hook integration tests
|
|
638
638
|
|
|
639
639
|
- useEffectRunner with all service combinations
|
|
640
640
|
- Error handling in hooks
|
|
641
641
|
- Cleanup on unmount
|
|
642
642
|
- State management correctness
|
|
643
643
|
|
|
644
|
-
### **[
|
|
644
|
+
### **[CYCLE-075]** Validate ontology compliance
|
|
645
645
|
|
|
646
646
|
- All 6 dimensions properly scoped
|
|
647
647
|
- GroupId enforcement across services
|
|
648
648
|
- Event logging on mutations
|
|
649
649
|
- Connection types validated
|
|
650
650
|
|
|
651
|
-
### **[
|
|
651
|
+
### **[CYCLE-076]** Run TypeScript strict mode check
|
|
652
652
|
|
|
653
653
|
- `bunx astro check` passes
|
|
654
654
|
- Zero type errors in services
|
|
655
655
|
- Zero `any` types (except entity.properties)
|
|
656
656
|
- Full type safety verified
|
|
657
657
|
|
|
658
|
-
### **[
|
|
658
|
+
### **[CYCLE-077]** Run ESLint + Prettier
|
|
659
659
|
|
|
660
660
|
- All code style consistent
|
|
661
661
|
- No unused imports
|
|
662
662
|
- No dead code
|
|
663
663
|
- Auto-fix and verify
|
|
664
664
|
|
|
665
|
-
### **[
|
|
665
|
+
### **[CYCLE-078]** Measure test coverage
|
|
666
666
|
|
|
667
667
|
- Unit: 90%+ coverage
|
|
668
668
|
- Integration: 80%+ coverage
|
|
669
669
|
- Critical paths: 100% coverage
|
|
670
670
|
- Generate coverage report
|
|
671
671
|
|
|
672
|
-
### **[
|
|
672
|
+
### **[CYCLE-079]** Write specific auth test additions
|
|
673
673
|
|
|
674
674
|
- Auth service tests with effect
|
|
675
675
|
- Session management validation
|
|
676
676
|
- Role-based access control testing
|
|
677
677
|
- 2FA pattern testing (if applicable)
|
|
678
678
|
|
|
679
|
-
### **[
|
|
679
|
+
### **[CYCLE-080]** Performance validation
|
|
680
680
|
|
|
681
681
|
- Service call latency < 50ms
|
|
682
682
|
- Hook initialization < 10ms
|
|
@@ -693,35 +693,35 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
693
693
|
**Status:** ✅ Ready to Start (depends on Phase 3)
|
|
694
694
|
**Can Start:** Day 8
|
|
695
695
|
|
|
696
|
-
### **[
|
|
696
|
+
### **[CYCLE-081]** Implement domain error types
|
|
697
697
|
|
|
698
698
|
- ThingNotFound, ValidationError, ConnectionAlreadyExists
|
|
699
699
|
- Each extends Data.TaggedError
|
|
700
700
|
- Full type signatures
|
|
701
701
|
- Human-friendly messages
|
|
702
702
|
|
|
703
|
-
### **[
|
|
703
|
+
### **[CYCLE-082]** Implement provider error mapping
|
|
704
704
|
|
|
705
705
|
- Map provider-specific errors to domain errors
|
|
706
706
|
- Standardize error messages
|
|
707
707
|
- Preserve error context
|
|
708
708
|
- Enable recovery
|
|
709
709
|
|
|
710
|
-
### **[
|
|
710
|
+
### **[CYCLE-083]** Implement error boundaries in React
|
|
711
711
|
|
|
712
712
|
- Catch service errors in ErrorBoundary
|
|
713
713
|
- Display user-friendly messages
|
|
714
714
|
- Log errors for debugging
|
|
715
715
|
- Allow recovery actions
|
|
716
716
|
|
|
717
|
-
### **[
|
|
717
|
+
### **[CYCLE-084]** Implement retry logic in services
|
|
718
718
|
|
|
719
719
|
- Exponential backoff schedules
|
|
720
720
|
- Conditional retries (only for transient errors)
|
|
721
721
|
- Max retry attempts
|
|
722
722
|
- Metrics tracking
|
|
723
723
|
|
|
724
|
-
### **[
|
|
724
|
+
### **[CYCLE-085]** Implement graceful degradation
|
|
725
725
|
|
|
726
726
|
- Services degrade when provider fails
|
|
727
727
|
- Optimistic updates rollback on error
|
|
@@ -738,70 +738,70 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
738
738
|
**Status:** ✅ Ready to Start (continuous throughout)
|
|
739
739
|
**Can Start:** Day 10 (parallel with component migration)
|
|
740
740
|
|
|
741
|
-
### **[
|
|
741
|
+
### **[CYCLE-086]** Write complete API documentation
|
|
742
742
|
|
|
743
743
|
- DataProvider interface spec
|
|
744
744
|
- All 6 dimension APIs documented
|
|
745
745
|
- Error types reference
|
|
746
746
|
- Examples for each method
|
|
747
747
|
|
|
748
|
-
### **[
|
|
748
|
+
### **[CYCLE-087]** Write service implementation guide
|
|
749
749
|
|
|
750
750
|
- How to add new service
|
|
751
751
|
- Dependency injection patterns
|
|
752
752
|
- Error handling approach
|
|
753
753
|
- Testing strategy
|
|
754
754
|
|
|
755
|
-
### **[
|
|
755
|
+
### **[CYCLE-088]** Write hook library documentation
|
|
756
756
|
|
|
757
757
|
- useEffectRunner usage
|
|
758
758
|
- useThingService patterns
|
|
759
759
|
- useService generic usage
|
|
760
760
|
- Context provider setup
|
|
761
761
|
|
|
762
|
-
### **[
|
|
762
|
+
### **[CYCLE-089]** Write component migration guide
|
|
763
763
|
|
|
764
764
|
- Before/after examples
|
|
765
765
|
- Common patterns discovered
|
|
766
766
|
- Pitfalls and solutions
|
|
767
767
|
- Performance tips
|
|
768
768
|
|
|
769
|
-
### **[
|
|
769
|
+
### **[CYCLE-090]** Write Astro integration guide
|
|
770
770
|
|
|
771
771
|
- SSR data fetching patterns
|
|
772
772
|
- Content layout integration
|
|
773
773
|
- Client vs server components
|
|
774
774
|
- Performance optimization
|
|
775
775
|
|
|
776
|
-
### **[
|
|
776
|
+
### **[CYCLE-091]** Write provider implementation guide
|
|
777
777
|
|
|
778
778
|
- How to add new backend provider
|
|
779
779
|
- DataProvider interface requirements
|
|
780
780
|
- Transformation patterns
|
|
781
781
|
- Testing approach
|
|
782
782
|
|
|
783
|
-
### **[
|
|
783
|
+
### **[CYCLE-092]** Write testing guide
|
|
784
784
|
|
|
785
785
|
- Unit testing services
|
|
786
786
|
- Component testing patterns
|
|
787
787
|
- Mock provider setup
|
|
788
788
|
- E2E testing approach
|
|
789
789
|
|
|
790
|
-
### **[
|
|
790
|
+
### **[CYCLE-093]** Document error handling patterns
|
|
791
791
|
|
|
792
792
|
- Error types and meanings
|
|
793
793
|
- Recovery strategies
|
|
794
794
|
- User-facing error messages
|
|
795
795
|
- Developer error messages
|
|
796
796
|
|
|
797
|
-
### **[
|
|
797
|
+
### **[CYCLE-094]** Create architecture decision record (ADR)
|
|
798
798
|
|
|
799
799
|
- Why Effect.ts for services
|
|
800
800
|
- Why DataProvider interface
|
|
801
801
|
- Why this migration approach
|
|
802
802
|
- Lessons learned
|
|
803
803
|
|
|
804
|
-
### **[
|
|
804
|
+
### **[CYCLE-095]** Update main CLAUDE.md
|
|
805
805
|
|
|
806
806
|
- Link to new frontend-effects docs
|
|
807
807
|
- Update architecture diagrams
|
|
@@ -818,35 +818,35 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
|
|
|
818
818
|
**Status:** ✅ Ready to Start (final phase, depends on Phase 6)
|
|
819
819
|
**Can Start:** Week 5
|
|
820
820
|
|
|
821
|
-
### **[
|
|
821
|
+
### **[CYCLE-096]** Optimize bundle size
|
|
822
822
|
|
|
823
823
|
- Code split by route
|
|
824
824
|
- Lazy load heavy components
|
|
825
825
|
- Tree-shake unused code
|
|
826
826
|
- Measure final bundle: < 150kb gzip
|
|
827
827
|
|
|
828
|
-
### **[
|
|
828
|
+
### **[CYCLE-097]** Optimize runtime performance
|
|
829
829
|
|
|
830
830
|
- Implement request deduplication
|
|
831
831
|
- Add response caching layer
|
|
832
832
|
- Profile with React DevTools
|
|
833
833
|
- Target: LCP < 2.5s, CLS < 0.1
|
|
834
834
|
|
|
835
|
-
### **[
|
|
835
|
+
### **[CYCLE-098]** Remove Convex dependencies
|
|
836
836
|
|
|
837
837
|
- Delete `/web/convex/` directory
|
|
838
838
|
- Remove `convex` from package.json
|
|
839
839
|
- Update build process
|
|
840
840
|
- Verify frontend still works
|
|
841
841
|
|
|
842
|
-
### **[
|
|
842
|
+
### **[CYCLE-099]** Final validation and smoke tests
|
|
843
843
|
|
|
844
844
|
- Run all test suites: 100% pass
|
|
845
845
|
- Run auth tests: MUST pass
|
|
846
846
|
- Type check: Zero errors
|
|
847
847
|
- Lint: Zero warnings
|
|
848
848
|
|
|
849
|
-
### **[
|
|
849
|
+
### **[CYCLE-100]** Mark complete and document rollout
|
|
850
850
|
|
|
851
851
|
- Create migration summary doc
|
|
852
852
|
- List all completed phases
|