See Expiry Warning Banner on Home Screen
When a peer mentor's certification is within the 30-day warning threshold, a dismissible (but re-appearing) banner is shown at the top of the home screen. The banner displays the expiry date, the number of days remaining, and a 'Renew Now' button. The banner reappears on each app session even if previously dismissed, to ensure the mentor cannot permanently ignore the warning. The expiry check is performed by the certification expiry checker at app launch using locally cached data to avoid network latency on startup. The banner must support Dynamic Type scaling and meet WCAG contrast requirements.
User Story
Acceptance Criteria
- Given a peer mentor whose certification expires in 25 days, When they open the app and navigate to the home screen, Then a warning banner is displayed showing 'Certification expires in 25 days – Renew Now'
- Given the warning banner is displayed and the peer mentor dismisses it, When they close and reopen the app, Then the banner reappears in the next session
- Given a peer mentor whose certification is more than 30 days away, When they open the home screen, Then no expiry warning banner is shown
- Given a peer mentor whose certification has expired, When they open the home screen, Then the banner changes to an error state reading 'Your certification has expired. You are no longer visible as an active peer mentor.'
- Given a peer mentor taps 'Renew Now' on the banner, When the action fires, Then they are navigated to the certification status screen
- Given the device is offline at startup, When the app loads, Then the banner uses the last known certification status from local cache
Business Value
Not all peer mentors enable push notifications. The in-app banner provides a redundant, unavoidable warning channel that ensures certification expiry is communicated regardless of device notification settings. This prevents silent lapses that would remove the mentor from the active roster without their awareness.