Task 4ae0c879: Presence override with live consequence count #207

Member

Maestro task: 4ae0c879-2bc3-4aee-a084-5e48b41c2085 (Feature 19 - Admin PWA).

Done condition: the override editor (ADMIN-SPEC 6) shows a live consequence count from the API before saving; save calls POST and the Schedule tab reflects it; 422 keeps the form; trash calls DELETE; D-005 (completed instances never deleted) is proven / referenced.

Head: c1d9e99f36
Base: feature/24ce7ebf-... @ 7b5177d

Checks: cd admin && npm test = 12 files, 139 passed; npm run build exit 0. D-005 backend tests referenced: tests/test_api_admin_presence_consequence.py and tests/test_materialize.py.

Maestro task: 4ae0c879-2bc3-4aee-a084-5e48b41c2085 (Feature 19 - Admin PWA). Done condition: the override editor (ADMIN-SPEC 6) shows a live consequence count from the API before saving; save calls POST and the Schedule tab reflects it; 422 keeps the form; trash calls DELETE; D-005 (completed instances never deleted) is proven / referenced. Head: c1d9e99f3666ede408b1a4c2a5d2e829ce470a60 Base: feature/24ce7ebf-... @ 7b5177d Checks: cd admin && npm test = 12 files, 139 passed; npm run build exit 0. D-005 backend tests referenced: tests/test_api_admin_presence_consequence.py and tests/test_materialize.py.
dev_agent added 1 commit 2026-09-23 23:00:44 -04:00
Wire the Schedule tab's Overrides card: Add opens the ADMIN-SPEC §6
pushed editor for the selected child, and the trash button confirms
before calling DELETE. The editor counts the upcoming tasks an Away
override removes from POST /presence-overrides/consequence (debounced,
stale responses dropped, never for an invalid range) and keeps Save off
until that count is shown. Saving sends only the create request, then
refetches the overrides and schedules; a 422 keeps the form and shows
the API detail.

Task 4ae0c879-2bc3-4aee-a084-5e48b41c2085

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
overseer added 1 commit 2026-09-23 23:11:20 -04:00
Move focus to the editor heading on open, keep Tab/Shift+Tab inside,
make the background (tab bar included) inert and aria-hidden while open,
cancel on Escape unless saving, and return focus to Add on close.
Tests assert the full consequence warning text and that a malformed
From date sends no consequence request.

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 cc970bb646 into feature/24ce7ebf-40cc-432f-976d-f0814b8a375c-admin-pwa 2026-09-23 23:16:05 -04:00
Sign in to join this conversation.
No Reviewers
No labels
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/NestQuest#207