View Certification Status and Expiry Details
HLF specifically requires that when a peer mentor's certification expires, they are automatically removed from local chapter websites and flagged as inactive. This story ensures the peer mentor themselves receives clear, timely information about their certification health. The certification status badge should use distinct visual states (valid, expiring soon within 60 days, expired) and link to the course enrollment pathway. The certification record should show the issuing body, course name, issue date, and expiry date.
User Story
Acceptance Criteria
- Given I am on my profile screen, When my certification is valid and not expiring within 60 days, Then the certification-status-badge shows a green 'Valid' state with the expiry date
- Given I am on my profile screen, When my certification expires within 60 days, Then the badge shows an amber 'Expiring Soon' state and a certification-alert-banner appears with enrollment instructions
- Given my certification has expired, When I view my profile, Then the badge shows a red 'Expired' state and I see a warning that I am no longer visible in the chapter directory
- Given I tap on the certification status badge, When the detail view opens, Then I can see course name, issuing body, issue date, and expiry date
- Given I am on the certification detail view, When I tap 'Renew Certification', Then I am navigated to the course enrollment screen or external link
Business Value
Certification validity is a contractual and safety requirement for peer mentors. Expired certifications must automatically remove mentors from public directories (HLF requirement), and mentors who are unaware of expiry risk an unexpected loss of active status. Proactive in-app notification of expiry reduces both compliance risk for the organization and the disruptive experience for the volunteer.
Components
- Certification Status Badge ui
- Certification Alert Banner ui
- Certification Status Derivation Service service
- Certification Record Repository data
- Peer Mentor Detail BLoC service
- Certification Expiry Auto-Pause Job infrastructure
- Supabase Client Provider infrastructure