You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Milestone 1: persisted in-app notices, with backup failures as the first producer #10
The architecture requires workflow notices to be persisted and shown in the application — nothing may depend on email delivery. The shell (#6) has nowhere to surface operational events, and a failing automatic backup (#8) currently reaches only the server log, which a small center may never read. Establish the notices mechanism now with backup failure as its first real producer, so later milestone workflows (finalization, review requests, acknowledgments) land on proven plumbing.
Notices domain service: create, list for recipient (unread first), mark read (own notices only — recipient-scoped authorization)
Producer: when an automatic backup fails, every user holding manage_users receives a notice (deduplicated so a repeatedly failing backup does not flood: no new notice while an unread backup-failure notice exists for that user)
HTTP: GET /api/notices (authenticated, own notices), POST /api/notices/{id}/read (own notices only)
Shell: notices panel on the status page with unread count and mark-read; unread count in the header
Integration tests: scoping (no cross-user reads or mark-reads), dedup behavior, producer on backup failure, API auth
Browser E2E extended to cover the notices panel
Out of scope:
Workflow notices for training-domain events (their milestones own them)
SMTP mirroring (held until justified)
Notice retention/expiry policy (revisit with retention administration in Milestone 5)
Acceptance criteria
A failed automatic backup produces exactly one unread notice per administrator until acknowledged
Users see only their own notices and can only mark their own as read
Notices survive restart (persisted, not in-memory)
Activity
notices(core): persisted in-app notices with backup failures as first…