View Certification Expiry Notification and Initiate Renewal
When the certification expiry check edge function detects a certification within the expiry warning window (e.g. 30 days), it creates an expiry notification record and delivers it via FCM. Inside the Notification Centre, expiry notifications render using the expiry-notification-banner component showing the certification name, exact expiry date, and days remaining. A 'Renew Now' action button navigates to the certification renewal screen pre-loaded with the expiring certification. If the certification has already lapsed, the notification text changes to 'Expired' and the banner adopts a critical-severity colour. A mentor-visibility-suppressor service hides the peer mentor from active rosters until renewal is confirmed.
User Story
Acceptance Criteria
- Given a peer mentor's certification will expire within the configured warning window, when the expiry check runs, then an expiry notification is created and appears in the Notification Centre.
- Given an expiry notification is displayed, when the notification renders, then it shows the certification name, expiry date, and days remaining with a warning-level colour accent.
- Given the 'Renew Now' button is tapped, when navigation resolves, then the record-renewal-screen opens pre-loaded with the expiring certification record.
- Given the certification expiry date has passed, when the notification renders, then the card displays 'Expired' in a critical-severity colour and the days-remaining field shows a negative value or 'Overdue' label.
- Given the certification is renewed successfully, when the renewal is confirmed, then the expiry notification is resolved and removed from the unread feed.
Business Value
HLF explicitly requires that peer mentors with lapsed certifications are automatically removed from the local chapter's public website. In-app expiry notifications with direct renewal navigation prevent accidental lapses and reduce coordinator workload spent manually chasing renewals. Timely renewal also ensures continuity of peer support for contacts who have ongoing assignments.
Components
- Certificate Expiry Notification Banner ui
- Certificate Expiry Notification Detail View ui
- Certificate Expiry Status Indicator ui
- Certificate Expiry Notification Orchestrator service
- Peer Mentor Visibility Suppressor service
- Certification Expiry Repository data
- Notification Record Repository data
- Certificate Expiry Check Edge Function infrastructure
- FCM Push Notification Sender infrastructure
- Record Renewal Screen ui
- Notification BLoC service
Dependencies
- View Consolidated Notification Feed critical