Monitor Real-Time Assignment Status Dashboard for Delivery and Read Receipts
The Assignment Status Dashboard aggregates all open assignments dispatched by the coordinator (or within their organizational scope). Each row displays the target peer mentor's name, the dispatch timestamp, and the current status derived from the assignment_dispatches and assignment_read_receipts tables. Status progression is: Dispatched → Delivered (FCM/APNs receipt confirmed) → Read (read receipt written on first open) → Responded (accepted/declined/follow-up). The dashboard subscribes to Supabase Realtime subscriptions via the Assignment Repository so status transitions appear live without manual refresh. The Encryption Status Widget on each row confirms the assignment was end-to-end encrypted. The coordinator can click into any assignment to view its full status timeline. Unacknowledged assignments (dispatched but not read after a configurable period) are visually flagged for easy identification.
User Story
Acceptance Criteria
- Given the coordinator opens the Assignment Status Dashboard, when the screen loads, then all open assignments are displayed with their current status and timestamps
- Given a peer mentor's device receives a push notification for an assignment, when the FCM/APNs delivery receipt is processed, then the assignment row updates from 'Dispatched' to 'Delivered' in real time without the coordinator refreshing the page
- Given the peer mentor opens the assignment detail screen for the first time, when the read receipt is written, then the dashboard row updates from 'Delivered' to 'Read' in real time
- Given the peer mentor accepts or declines an assignment, when the status is written to Supabase, then the dashboard reflects the response state ('Accepted' or 'Declined') immediately via Realtime subscription
- Given an assignment has been dispatched but not read within a threshold period, when it appears on the dashboard, then it is visually highlighted (e.g., amber border or warning badge) to indicate follow-up may be needed
- Given the coordinator has dispatched assignments to multiple peer mentors, when viewing the dashboard, then assignments are sortable by status, peer mentor name, or dispatch date
- Given the coordinator taps an assignment row, when the detail view opens, then the full status timeline showing each transition with timestamps is displayed
Business Value
Workshop findings highlighted that coordinators have no reliable way to verify that sensitive assignment information was received and read — a pain point cited as a significant operational risk. The real-time status dashboard directly eliminates this uncertainty and reduces unnecessary follow-up calls, freeing coordinator time. For Blindeforbundet specifically, tracking which assignments have been read vs. ignored is essential for the 10-day automatic reminder workflow and honorarium counting at assignment thresholds.
Components
- Assignment Status Dashboard ui
- Encryption Status Widget ui
- Read Receipt Service service
- Delivery Confirmation Service service
- Assignment Repository data
- Real-time Subscription Service service