style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
phase: 03-event-write-back-pwa-install
|
||||
plan: "09"
|
||||
plan: '09'
|
||||
subsystem: api-events-router
|
||||
tags: [tdd, gap-closure, auth, schema, zod, oidc]
|
||||
dependency_graph:
|
||||
@@ -15,19 +15,19 @@ dependency_graph:
|
||||
tech_stack:
|
||||
added: []
|
||||
patterns:
|
||||
- "TDD RED→GREEN per task"
|
||||
- "vi.hoisted() for configurable per-test auth mocks"
|
||||
- "async resolveUserId with upsertUser for OIDC path"
|
||||
- 'TDD RED→GREEN per task'
|
||||
- 'vi.hoisted() for configurable per-test auth mocks'
|
||||
- 'async resolveUserId with upsertUser for OIDC path'
|
||||
key_files:
|
||||
modified:
|
||||
- apps/api/src/routes/events.ts
|
||||
- apps/api/tests/routes/events.test.ts
|
||||
decisions:
|
||||
- "D-CR01: Server adopts client field names title/start/end — one canonical name set end-to-end, no rename map"
|
||||
- "D-CR06: resolveUserId async; dev-bypass path unchanged; OIDC path calls upsertUser(iss,sub,email)"
|
||||
- 'D-CR01: Server adopts client field names title/start/end — one canonical name set end-to-end, no rename map'
|
||||
- 'D-CR06: resolveUserId async; dev-bypass path unchanged; OIDC path calls upsertUser(iss,sub,email)'
|
||||
metrics:
|
||||
duration_minutes: 6
|
||||
completed_date: "2026-06-06"
|
||||
completed_date: '2026-06-06'
|
||||
tasks_completed: 2
|
||||
files_modified: 2
|
||||
---
|
||||
@@ -38,12 +38,12 @@ Fix the events router's two blockers that made the write path dead on arrival: a
|
||||
|
||||
## Tasks Completed
|
||||
|
||||
| Task | Name | Commit | Files |
|
||||
|------|------|--------|-------|
|
||||
| 1 RED | Add contract tests for canonical title/start/end | 944693f | events.test.ts |
|
||||
| 1 GREEN | Rename eventFieldsSchema to title/start/end (CR-01) | 99cb169 | events.ts, events.test.ts |
|
||||
| 2 RED | Add OIDC path tests — resolveUserId must call upsertUser | 6d1d338 | events.test.ts |
|
||||
| 2 GREEN | Async resolveUserId with upsertUser on all 5 handlers (CR-06) | fac3a21 | events.ts |
|
||||
| Task | Name | Commit | Files |
|
||||
| ------- | ------------------------------------------------------------- | ------- | ------------------------- |
|
||||
| 1 RED | Add contract tests for canonical title/start/end | 944693f | events.test.ts |
|
||||
| 1 GREEN | Rename eventFieldsSchema to title/start/end (CR-01) | 99cb169 | events.ts, events.test.ts |
|
||||
| 2 RED | Add OIDC path tests — resolveUserId must call upsertUser | 6d1d338 | events.test.ts |
|
||||
| 2 GREEN | Async resolveUserId with upsertUser on all 5 handlers (CR-06) | fac3a21 | events.ts |
|
||||
|
||||
## Verification
|
||||
|
||||
@@ -71,6 +71,7 @@ The worktree has no `node_modules` — the pnpm workspace installs them in the m
|
||||
## TDD Gate Compliance
|
||||
|
||||
Both tasks followed RED→GREEN strictly:
|
||||
|
||||
- Task 1: `test(03-09)` commit (944693f) → `feat(03-09)` commit (99cb169)
|
||||
- Task 2: `test(03-09)` commit (6d1d338) → `feat(03-09)` commit (fac3a21)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user