Receive Auto-Reminder Push Notification for Unacted Assignment
When a peer mentor has an assignment that has not progressed past a pre-completion state within the configured threshold (default 10 days), a Supabase scheduled Edge Function (cron) detects the stale assignment and enqueues a push notification via the push notification service. The notification is delivered to the peer mentor's device and directs them to open the specific assignment. The reminder is a safety net — not a punitive measure — and is communicated in a supportive tone. The threshold is configurable per organization.
User Story
Acceptance Criteria
- Given I have an assignment in a non-terminal state (not completed or closed) with no state change for 10 or more days, when the daily reminder cron job runs, then I receive a push notification on my device
- Given the push notification is delivered, when I tap it, then I am navigated directly to the relevant assignment detail screen
- Given the push notification content, when I read it, then it clearly identifies which assignment requires follow-up by name and how many days have elapsed
- Given my assignment reaches a terminal state (completed or closed) before the reminder threshold, when the cron job runs, then no reminder notification is sent for that assignment
- Given I have already received a reminder for a specific assignment, when the threshold is exceeded by another day and the job runs again, then I do not receive duplicate reminders for the same assignment on the same day
- Given I have disabled push notifications in my device settings, when the cron job would send a reminder, then the failure is logged and the coordinator is notified instead
Business Value
Blindeforbundet explicitly specified the 10-day auto-reminder rule as a critical safeguard against vulnerable individuals going without contact. Automating this reminder removes the dependency on individual coordinator memory and creates a reliable safety net that was previously informal and inconsistently applied.
Components
- Auto Reminder Service service
- Reminder Cron Edge Function infrastructure
- Assignment Tracking Service service
- Assignment Status Repository data