View Personal Assignment Status Overview
Peer mentors need a focused, role-scoped view of their own assignments. The assignment status screen fetches only rows the peer mentor owns (enforced via Supabase row-level security), displays each assignment with its current lifecycle state (dispatched, delivered, read, accepted, in_progress, completed, escalated, closed), and highlights any that are approaching or past the 10-day follow-up threshold. The view is simple and goal-directed to match the peer mentor's short, mobile-first sessions.
User Story
Acceptance Criteria
- Given I am authenticated as a peer mentor, when I navigate to the assignment status screen, then I see only my own assignments — no other peer mentor's assignments are visible
- Given my assignment list is loaded, when I view the list, then each item shows the assignment title, current lifecycle state, and the date of the last state change
- Given an assignment has not had a state change for 7 or more days and is not completed, when the list renders, then the item shows an urgency badge indicating the approaching threshold
- Given an assignment has not had a state change for 10 or more days and is not completed, when the list renders, then the item shows an overdue urgency badge with a distinct color/label
- Given I have no active assignments, when I open the screen, then an empty state message is shown explaining that no assignments are currently dispatched to me
- Given the list is loading data, when the fetch is in progress, then a loading indicator is displayed to confirm the app is working
Business Value
Blindeforbundet identified untracked open assignments as a direct operational risk — vulnerable individuals may go without contact if assignments fall through. Providing peer mentors with a clear personal status view ensures they are always aware of pending obligations, reducing the risk of assignments being forgotten and supporting accountability for follow-up.