MEDIUM story-pause-status-change-notifications-peer-mentor-006 5 pts
5
Story Points
Medium
Priority
Pause Status Change Notifications
Feature

User Story

As a Peer Mentor (Likeperson)
I want to view a full chronological history of pause events and their associated notifications for a specific peer mentor from the mentor's detail screen
So that I can understand patterns of availability, document compliance actions taken during certification lapses, and provide accurate information when the organisation or Bufdir requires accountability for mentor engagement continuity

Acceptance Criteria

  • Given the coordinator opens a peer mentor's detail screen, when they scroll to the pause history section, then a chronological list of all past pause events is displayed with start date, end date, duration in days, and pause reason for each entry
  • Given a pause was system-initiated due to certification expiry, when the history entry is rendered, then it is visually distinguished from voluntary pauses with a badge labelled 'Auto-paused – Certificate Expired' using the appropriate accent colour
  • Given the coordinator taps on a specific pause history entry, when the detail view opens, then it shows the full notification log for that event: which notifications were sent, to which coordinator, at what timestamp, and the delivery status (delivered, opened, acknowledged)
  • Given the coordinator applies a date range filter to the pause history, when the filter is applied, then only pause events with start dates within the specified range are displayed and the filter state persists during the session
  • Given the mentor has never been paused, when the coordinator views the pause history section, then a friendly empty state message is displayed: 'No pause history — this mentor has been continuously active'
  • Given the coordinator exports the mentor's pause history for reporting, when they use the export action, then the pause-status-record-repository generates a structured summary that can be included in a Bufdir compliance export
  • Given more than 10 pause events exist in history, when the section renders, then a 'Show more' control is provided to prevent initial render overflow, with the 5 most recent events shown by default

Business Value

Accountability and audit trails are non-negotiable requirements in funded volunteer programmes. Bufdir, as a grant provider, may require evidence that organisations have appropriate governance over mentor availability and certification compliance. A detailed pause history satisfies this need without requiring coordinators to maintain separate manual logs. It also supports coordinators in having informed conversations with mentors about attendance patterns, serves as input for the annual summary features, and provides the organisation's leadership with accurate workforce availability data for strategic planning.