Receive Escalation Notifications for Overdue Assignments
When a peer mentor has not logged any contact for an assignment within the escalation window, the coordinator must be proactively alerted. This escalation notification should include the peer mentor's name, the beneficiary reference (anonymized if required by encryption rules), the number of days since assignment, and a direct action link to the assignment detail screen. Notifications should appear both as push notifications and in the in-app notification centre. Coordinators who supervise multiple chapters should only see escalations within their own access scope.
User Story
Acceptance Criteria
- Given an assignment escalation threshold is reached, when the cron job evaluates open assignments, then a push notification is sent to the responsible coordinator with the peer mentor name and days-since-assignment
- Given a coordinator taps the escalation push notification, when the deep link resolves, then the app navigates directly to the assignment detail for that peer mentor
- Given a coordinator opens the notification centre, when escalation notifications are present, then they are visually distinguished from regular reminders (e.g., different icon or color indicating urgency)
- Given a coordinator supervises two chapters, when escalations are triggered, then only assignments within their access scope appear — no cross-chapter data leakage
- Given a peer mentor logs a contact event after an escalation was triggered, when the contact is saved, then the escalation notification is marked as resolved and no further escalations are sent for that assignment
Business Value
Ensures coordinators are not dependent on peer mentors self-reporting delays. Proactive escalation catches situations where a beneficiary may be waiting for contact, which is particularly critical for Blindeforbundet where assignment recipients may have urgent support needs. Reduces risk of service failure and strengthens trust in the platform.
Components
- Coordinator Escalation Notification Card ui
- Reminder Dispatch Service service
- Assignment Contact Tracking Repository data
- Assignment Reminder Cron Trigger infrastructure
- Push Notification Service infrastructure
- In-App Notification Repository data
- Notification Deep Link Handler service