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:
@@ -3,7 +3,7 @@ phase: 03-event-write-back-pwa-install
|
||||
plan: 10
|
||||
type: tdd
|
||||
wave: 2
|
||||
depends_on: ["03-09"]
|
||||
depends_on: ['03-09']
|
||||
gap_closure: true
|
||||
autonomous: true
|
||||
requirements: [CAL-04, CAL-05, CAL-06, CAL-07]
|
||||
@@ -14,25 +14,25 @@ files_modified:
|
||||
- apps/api/tests/broker/vevent.test.ts
|
||||
must_haves:
|
||||
truths:
|
||||
- "The worker parses the stored form JSON and PUTs a real VCALENDAR string built by buildVeventString — never raw {\"title\":...} JSON"
|
||||
- 'The worker parses the stored form JSON and PUTs a real VCALENDAR string built by buildVeventString — never raw {"title":...} JSON'
|
||||
- "The PUT body begins with 'BEGIN:VCALENDAR' for both create and update operations"
|
||||
- "A single-day all-day event produces DTEND = DTSTART + 1 day (RFC 5545 exclusive end), proven by a DIRECT buildVeventString unit test against the D-13 contract"
|
||||
- "A credential-load failure leaves the row pending for retry — the worker never PUTs with empty Basic-auth"
|
||||
- "The first transient failure waits 15s (BACKOFF_SECONDS[0]), not 60s"
|
||||
- 'A single-day all-day event produces DTEND = DTSTART + 1 day (RFC 5545 exclusive end), proven by a DIRECT buildVeventString unit test against the D-13 contract'
|
||||
- 'A credential-load failure leaves the row pending for retry — the worker never PUTs with empty Basic-auth'
|
||||
- 'The first transient failure waits 15s (BACKOFF_SECONDS[0]), not 60s'
|
||||
artifacts:
|
||||
- path: apps/api/src/broker/outboxWorker.ts
|
||||
provides: "ICS-building dispatch path + removed empty-cred fallback + corrected backoff index + explicit randomUUID import"
|
||||
contains: "buildVeventString"
|
||||
provides: 'ICS-building dispatch path + removed empty-cred fallback + corrected backoff index + explicit randomUUID import'
|
||||
contains: 'buildVeventString'
|
||||
- path: apps/api/src/broker/vevent.ts
|
||||
provides: "All-day DTEND+1-day exclusivity fix (the WR-04 owning boundary)"
|
||||
provides: 'All-day DTEND+1-day exclusivity fix (the WR-04 owning boundary)'
|
||||
key_links:
|
||||
- from: "apps/api/src/broker/outboxWorker.ts"
|
||||
to: "apps/api/src/broker/vevent.ts"
|
||||
via: "buildVeventString(parsedFormFields)"
|
||||
- from: 'apps/api/src/broker/outboxWorker.ts'
|
||||
to: 'apps/api/src/broker/vevent.ts'
|
||||
via: 'buildVeventString(parsedFormFields)'
|
||||
pattern: "buildVeventString\\("
|
||||
- from: "apps/api/src/broker/outboxWorker.ts"
|
||||
to: "apps/api/src/broker/write.ts"
|
||||
via: "createCalendarEvent/updateCalendarEvent with the built icsString"
|
||||
- from: 'apps/api/src/broker/outboxWorker.ts'
|
||||
to: 'apps/api/src/broker/write.ts'
|
||||
via: 'createCalendarEvent/updateCalendarEvent with the built icsString'
|
||||
pattern: "createCalendarEvent\\(|updateCalendarEvent\\("
|
||||
---
|
||||
|
||||
@@ -120,6 +120,7 @@ an internal `JSON.parse(row.payload)` → `buildVeventString` step.
|
||||
|
||||
Update the existing outbox test that fed a pre-built ICS string so it instead feeds
|
||||
form JSON and asserts the built ICS (it was testing the wrong boundary). Commit RED then GREEN.
|
||||
|
||||
</action>
|
||||
<verify>
|
||||
<automated>cd apps/api && npx vitest run tests/broker/outboxWorker.test.ts tests/broker/vevent.test.ts</automated>
|
||||
@@ -168,6 +169,7 @@ an internal `JSON.parse(row.payload)` → `buildVeventString` step.
|
||||
this plan's <verification> and the acceptance criterion below — this closes Warning 5.
|
||||
|
||||
Commit RED then GREEN.
|
||||
|
||||
</action>
|
||||
<verify>
|
||||
<automated>cd apps/api && npx vitest run tests/broker/outboxWorker.test.ts && cd apps/api && npm run build</automated>
|
||||
|
||||
Reference in New Issue
Block a user