Receive push notification when a peer mentor crosses an honorarium threshold
When the Honorarium Calculation Service detects that a newly completed assignment has caused a peer mentor's count to cross a threshold (e.g., reaching their 3rd or 15th assignment), the Threshold Notification Trigger dispatches a push notification to the responsible coordinator. The notification identifies the peer mentor, the threshold crossed, and the applicable honorarium rate. This removes the burden of constant monitoring and ensures no threshold crossing is missed, even during high-activity periods.
User Story
Acceptance Criteria
- Given a peer mentor completes their 3rd assignment, when the assignment is saved, then the assigned coordinator receives a push notification within 60 seconds identifying the peer mentor and the contact honorarium threshold reached
- Given a peer mentor completes their 15th assignment, when the assignment is saved, then the coordinator receives a push notification identifying the peer mentor and the higher honorarium rate threshold reached
- Given the coordinator taps the push notification, when the app opens, then the peer mentor's Assignment Count Screen is shown with the threshold milestone highlighted
- Given a coordinator has multiple peer mentors, when any one of them crosses a threshold, then only that peer mentor's coordinator receives the notification (not unrelated coordinators)
- Given the push notification service is temporarily unavailable, when a threshold is crossed, then the crossing event is persisted and the notification is delivered once service resumes
Business Value
Without proactive notifications, coordinators must periodically check every peer mentor's count — an unsustainable manual process at scale. Automated threshold alerts ensure payments are processed on time, fulfilling Blindeforbundet's contractual obligations and maintaining trust with peer mentors who depend on timely compensation.
Components
- Threshold Notification Trigger service
- Honorarium Calculation Service service
- Push Notification Service service
- Push Notification Gateway infrastructure