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: 06-ux-polish
|
||||
plan: "01"
|
||||
plan: '01'
|
||||
subsystem: pwa/lib
|
||||
tags: [tdd, date-math, event-form, d-04]
|
||||
dependency_graph:
|
||||
@@ -25,7 +25,7 @@ decisions:
|
||||
- Private helpers (localDateISO, localTimeHHMM, dateDiffDays, addDaysISO) added to eventDateTime.ts to support the two exports
|
||||
metrics:
|
||||
duration_minutes: 2
|
||||
completed_date: "2026-06-10"
|
||||
completed_date: '2026-06-10'
|
||||
tasks_completed: 2
|
||||
files_changed: 2
|
||||
---
|
||||
@@ -36,10 +36,10 @@ metrics:
|
||||
|
||||
## Tasks Completed
|
||||
|
||||
| Task | Name | Commit | Files |
|
||||
|------|------|--------|-------|
|
||||
| 1 (RED) | Failing tests for computeNewTimedEnd / computeNewAllDayEnd | `16cdbf3` | eventDateTime.test.ts |
|
||||
| 2 (GREEN) | Implement the two end-tracking helpers | `605f543` | eventDateTime.ts |
|
||||
| Task | Name | Commit | Files |
|
||||
| --------- | ---------------------------------------------------------- | --------- | --------------------- |
|
||||
| 1 (RED) | Failing tests for computeNewTimedEnd / computeNewAllDayEnd | `16cdbf3` | eventDateTime.test.ts |
|
||||
| 2 (GREEN) | Implement the two end-tracking helpers | `605f543` | eventDateTime.ts |
|
||||
|
||||
## What Was Built
|
||||
|
||||
@@ -54,14 +54,14 @@ Four private helpers added to the same file: `localDateISO`, `localTimeHHMM`, `d
|
||||
|
||||
Six new unit tests in `apps/pwa/src/lib/eventDateTime.test.ts`:
|
||||
|
||||
| Test | Behavior |
|
||||
|------|----------|
|
||||
| preserves a 1-hour timed delta | old 09:00→10:00; new start 11:00 → new end 12:00 |
|
||||
| preserves a multi-day timed delta (26h) | old 08:00→+26h; new start same offset → correct |
|
||||
| floors to 1h when old end was behind start | stale end → snaps to newStart+1h |
|
||||
| preserves a 0-day span (single day all-day) | oldStart=oldEnd → newEnd=newStart |
|
||||
| preserves a 3-day span | newEnd = newStart + 3 days |
|
||||
| floors to same day when old end behind start | negative span → 0 → same day |
|
||||
| Test | Behavior |
|
||||
| -------------------------------------------- | ------------------------------------------------ |
|
||||
| preserves a 1-hour timed delta | old 09:00→10:00; new start 11:00 → new end 12:00 |
|
||||
| preserves a multi-day timed delta (26h) | old 08:00→+26h; new start same offset → correct |
|
||||
| floors to 1h when old end was behind start | stale end → snaps to newStart+1h |
|
||||
| preserves a 0-day span (single day all-day) | oldStart=oldEnd → newEnd=newStart |
|
||||
| preserves a 3-day span | newEnd = newStart + 3 days |
|
||||
| floors to same day when old end behind start | negative span → 0 → same day |
|
||||
|
||||
Full suite: **166/166 tests pass**. Pre-existing `serializeEventDateTime` / `localWallClockToUtcIso` tests unaffected.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user