View Encrypted Assignment Inbox with Real-Time Status Indicators
The peer mentor's assignment inbox displays all encrypted assignments sent by coordinators. Each list item shows the assignment sender, dispatch timestamp, and an encryption status indicator (padlock icon) reflecting delivery and read state. The inbox subscribes to Supabase Realtime so new assignments appear without a manual refresh. Assignments that have not yet been opened are visually distinguished from read ones. The screen renders assignment previews inline after device-level authentication, decrypting only the minimum metadata needed for the list view (e.g., sender name, date) without exposing sensitive personal information until the full detail screen is opened.
User Story
Acceptance Criteria
- Given the peer mentor is authenticated, when they navigate to the assignment inbox, then all assignments dispatched to them are listed in reverse chronological order
- Given a new assignment is dispatched by a coordinator, when the peer mentor's device receives the push notification and they open the inbox, then the new assignment appears at the top without requiring a manual refresh
- Given an assignment has not been opened, when it appears in the inbox list, then it is visually marked as unread (e.g., bold text, unread dot indicator)
- Given an assignment has been opened previously, when it appears in the inbox, then the encryption status widget shows the 'read' state with a confirmed padlock icon
- Given the peer mentor has no assignments, when they open the inbox, then an empty state message is displayed encouraging them to check back later
- Given the inbox is loading, when assignments are being fetched, then a loading skeleton is shown to avoid layout shift
Business Value
The inbox is the primary entry point for peer mentors to receive sensitive assignment information. Without it, coordinators have no reliable digital channel to deliver sensitive personal data to volunteers in compliance with GDPR and Personopplysningsloven. A clear, real-time inbox reduces missed assignments and improves response rates across the volunteer network.