MEDIUM story-assignment-status-tracking-coordinator-008 5 pts
5
Story Points
Medium
Priority
Assignment Status Tracking
Feature

User Story

As a Coordinator
I want my assignment status view to update automatically when any peer mentor changes assignment state
So that So that I always have an accurate, live picture of my team's assignment activity without needing to manually refresh the screen

Acceptance Criteria

  • Given I have the assignment status screen open as a coordinator, when a peer mentor in my team changes their assignment state, then my screen updates to reflect the new state within 5 seconds without any manual action
  • Given the real-time subscription is active, when a new assignment is dispatched to a peer mentor in my scope, then it appears in my list automatically
  • Given the Supabase Realtime connection drops (e.g., brief network interruption), when connectivity is restored, then the subscription automatically reconnects and back-fills any missed state changes
  • Given I navigate away from the assignment status screen, when the subscription manager detects the screen is no longer active, then the subscription is properly torn down to avoid unnecessary resource usage
  • Given I return to the assignment status screen after navigating away, when the screen reloads, then a new subscription is established and the list shows the current state of all assignments
  • Given real-time updates are streaming, when multiple state changes occur in rapid succession, then the UI updates correctly without race conditions or stale data being displayed

Business Value

Coordinators are the most active daily users of the system with longer, multi-assignment supervisory sessions. Real-time updates eliminate the friction of manual refresh and ensure coordinators act on current information, reducing the risk of duplicate follow-up actions or missed state changes. This is particularly valuable during high-activity periods such as after a batch assignment dispatch.