View Pairing Detail and Full Programme History
Both peer mentors and coordinators can access the Pairing Detail Screen for a specific pairing by tapping an entry in the Mentor Program Screen. The screen displays the complete pairing history as a chronological timeline of interactions and milestone events, alongside the completion status of each programme milestone. For peer mentors, the view is read-only and restricted to pairings they are a party to via RLS. Coordinators see the same detail view with the addition of intervention controls (dissolve pairing, mark milestones complete). This single shared screen ensures both roles have a consistent understanding of pairing state while role-based controls enforce write restrictions.
User Story
Acceptance Criteria
- Given I am a peer mentor viewing my own pairing, when I tap a pairing entry, then the detail screen opens showing pairing history and milestone statuses in read-only mode with no intervention controls visible
- Given I am a coordinator viewing any pairing, when I open the detail screen, then I see the full pairing history plus the coordinator intervention controls (dissolve, mark milestone complete)
- Given there are multiple milestones in the programme, when the detail screen loads, then each milestone is listed with its completion status (completed, in-progress, pending) and completion timestamp where applicable
- Given I am a peer mentor, when I attempt to open a pairing detail for a pairing I am not party to, then the Supabase RLS policy returns no data and an appropriate message is shown
- Given a pairing has event history, when I view the detail screen, then events are displayed in reverse chronological order with timestamps
Business Value
Provides full transparency into pairing progress for both participants and administrators. Peer mentors benefit from a clear record of what they have achieved with their mentees, reinforcing a sense of structured progression and professional development. Coordinators gain the audit trail needed to identify and address pairings that are not delivering value, which is essential for maintaining programme credibility with stakeholders and funders.
Components
- Pairing Detail Screen ui
- Mentor Program Service service
- Mentor Program Repository data