HIGH story-peer-mentor-profiles-coordinator-004 5 pts
5
Story Points
High
Priority
Peer Mentor Profiles
Feature

User Story

As a user
I want the peer mentor's displayed status (active, paused, or expired) to always reflect the current state of both their availability and certification without requiring a manual refresh
So that So that I can trust the status shown on the profile and card is accurate at the moment I am viewing it, preventing decisions based on stale information

Acceptance Criteria

  • Given a coordinator has a peer mentor's profile open, when that mentor's availability is paused in another session, then the status badge updates to 'Paused' within seconds without a manual refresh
  • Given a peer mentor's certification expiry date passes, when either role views the profile or card, then the status updates to 'Expired' automatically
  • Given a mentor transitions from paused back to active, when I am viewing their card in a list, then the status badge updates to 'Active' in real time
  • Given the Supabase real-time connection is interrupted, when connectivity is restored, then the displayed status reconciles with the latest database state
  • Given both availability is paused AND certification is expired, when the status is displayed, then the most severe state (Expired) takes precedence or both are communicated

Business Value

Stale status information is a primary risk in volunteer management — coordinators may dispatch assignments to unavailable or uncertified mentors if the UI lags reality. Real-time status computation protects service quality and organisational compliance with certification requirements enforced by HLF and Blindeforbundet.