Audit Pause History and Notification Log for a Specific Peer Mentor
The peer mentor detail screen must include a pause history section that displays a timeline of all past pause events: start date, end date, pause duration, pause reason (voluntary vs. certification-expiry), who initiated the event (mentor self or system), which notifications were sent and to whom, and any coordinator acknowledgement actions taken. This history is persisted in the pause-status-record-repository and must be viewable without write access (read-only for auditing). The history must be filterable by date range and pause type. For HLF, this audit trail is essential documentation of the certification compliance cycle. The timeline must use the shared claim-status-timeline widget pattern adapted for pause events.
User Story
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.
Components
- Pause Activation Screen ui
- Pause Status Indicator ui
- Pause Management Service service
- Peer Mentor Status Repository data
- Pause Management Service service
- Certificate Expiry Notification Banner ui
- Certificate Expiry Notification Detail View ui
- Pause Status Record Repository data
- Claim Status Audit Timeline ui