HIGH story-push-notifications-alerts-coordinator-008 3 pts

User Story

As a Coordinator
I want to receive a push notification when one or more peer mentors in my organization have an assignment that has remained unacknowledged beyond the configured threshold (default 10 days)
So that So that I can proactively follow up with the peer mentor through alternative channels (phone, in-person) before the situation becomes a serious lapse in care delivery

Acceptance Criteria

  • Given a peer mentor's assignment crosses the 10-day unacknowledged threshold, when the Edge Function runs, then the responsible coordinator receives a push notification naming the peer mentor and assignment
  • Given multiple peer mentors in the coordinator's scope have overdue assignments on the same day, when the Edge Function runs, then a single digest notification is sent listing all overdue cases rather than one notification per case
  • Given a coordinator taps the overdue assignment notification, when the app opens, then they are navigated to the Assignment Status Screen scoped to show overdue assignments
  • Given a coordinator has disabled the 'Overdue Assignment Alerts' category, when the threshold is crossed, then no push notification is sent to that coordinator
  • Given a peer mentor acknowledges an assignment before the coordinator acts on the alert, when the coordinator opens the Assignment Status Screen, then the assignment is shown as acknowledged and no longer requires follow-up

Business Value

Coordinators are the organizational safety net when peer mentors miss follow-ups. Without automatic alerts, coordinators must manually check an assignment dashboard daily to identify overdue cases — a time-consuming task that is frequently deprioritized under workload pressure. Automated coordinator notifications ensure that no overdue assignment slips through the management layer unnoticed, providing a second line of defense against care delivery failures. This directly reduces the coordinator's administrative burden while improving oversight of peer mentor responsiveness.