HIGH story-scenario-based-engagement-push-notifications-peer-mentor-001 8 pts

User Story

As a Peer Mentor (Likeperson)
I want to receive a timely push notification when the system detects I have not logged any activity for a configurable number of days
So that I am gently reminded to keep my activity records up to date and maintain consistent engagement with my assigned contacts

Acceptance Criteria

  • Given a peer mentor has not logged any activity for the configured inactivity threshold, When the scenario evaluation edge function runs its scheduled check, Then a push notification is delivered to all registered FCM tokens for that mentor
  • Given the push notification is delivered, When the mentor taps it, Then the app opens and navigates directly to the activity registration bottom sheet via the scenario deep-link handler
  • Given the mentor has disabled scenario-based notifications in their preferences, When the inactivity threshold is exceeded, Then no push notification is sent for that scenario type
  • Given the notification is delivered, When the mentor opens the notification centre, Then the scenario prompt notification card is visible with the correct message content and timestamp
  • Given a mentor has already logged an activity after the threshold was crossed but before the next evaluation run, When the edge function runs, Then no duplicate notification is dispatched

Business Value

HLF reported that 40% of peer mentors were unsatisfied with the follow-up they received. Proactive scenario-triggered notifications close the engagement gap by prompting mentors before inactivity becomes a problem, directly improving reporting completeness and mentor retention without requiring coordinator manual intervention.