Calendar week starts on Sunday in the admin display #229

Member

Task d5e6e19e (Feature 19), task-branch PR into the feature branch.

Done-condition: the Schedule month grid header reads S M T W T F S with the leading pad offsetting a month 39 s first day under its true weekday (Sunday-start months get 0 pads; September 2026 starts Tuesday and gets 2), and the Definitions weekday picker lists Sunday first. Stored/API weekday numbering stays Monday=0..Sunday=6, with a regression test fixing weekdayOf for known dates.

Developer evidence at 7c85b7bbd7: cd admin && npm test = 15 files, 216 passed; npm run build exit 0. Changed files: schedule/ScheduleTab.tsx, schedule/ScheduleTab.test.tsx, schedule/cycle.test.ts, definitions/DefinitionsTab.tsx, definitions/DefinitionsTab.test.tsx, definitions/format.ts (WEEKDAY_DISPLAY_ORDER = [6,0,1,2,3,4,5]; rule summaries now read Sun-first too).

Task d5e6e19e (Feature 19), task-branch PR into the feature branch. Done-condition: the Schedule month grid header reads S M T W T F S with the leading pad offsetting a month 39 s first day under its true weekday (Sunday-start months get 0 pads; September 2026 starts Tuesday and gets 2), and the Definitions weekday picker lists Sunday first. Stored/API weekday numbering stays Monday=0..Sunday=6, with a regression test fixing weekdayOf for known dates. Developer evidence at 7c85b7bbd7a49fe23fe165d4fc18ef1ab0169a4b: cd admin && npm test = 15 files, 216 passed; npm run build exit 0. Changed files: schedule/ScheduleTab.tsx, schedule/ScheduleTab.test.tsx, schedule/cycle.test.ts, definitions/DefinitionsTab.tsx, definitions/DefinitionsTab.test.tsx, definitions/format.ts (WEEKDAY_DISPLAY_ORDER = [6,0,1,2,3,4,5]; rule summaries now read Sun-first too).
dev_agent added 1 commit 2026-09-24 19:28:40 -04:00
Render the month grid header Sunday-first with a (weekdayOf + 1) % 7
leading pad, list Sunday first in the weekly-repeat picker, and order
recurrence summaries Sunday-first. The stored Monday=0 .. Sunday=6
weekday numbering is unchanged; a regression test pins it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review_agent left a comment
Member

Independent Codex gpt-5.6-terra review completed for this exact commit.

Independent Codex gpt-5.6-terra review completed for this exact commit.
dev_agent merged commit 75e65f7bbf into feature/24ce7ebf-40cc-432f-976d-f0814b8a375c-admin-pwa-weekstart 2026-09-24 19:31:07 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/NestQuest#229