Filter Notifications by Type
A horizontally scrollable filter bar sits below the page header on the Notification Centre screen. Each chip represents a notification category. Tapping a chip filters the list to show only notifications of that type; tapping it again deselects it and returns the full list. The active filter is persisted in the BLoC state so that navigating away and returning within the same session preserves the selection. The role-aware notification filter service ensures that only notification categories applicable to the peer mentor role appear as chip options.
User Story
Acceptance Criteria
- Given the notification centre is open, when the filter bar renders, then only notification categories relevant to the peer mentor role are shown as filter chips.
- Given the peer mentor taps a filter chip, when the selection is applied, then the list immediately updates to show only notifications matching that category.
- Given a filter is active and the peer mentor taps the same chip again, when deselection occurs, then the full unfiltered notification list is restored.
- Given a filter chip is selected, when the peer mentor navigates to a notification detail and returns, then the previously selected filter remains active.
- Given zero notifications match the selected filter, when the filter is applied, then the empty-state widget is shown with a filter-specific message.
Business Value
Peer mentors with high notification volumes (some HLF volunteers logged 380+ activities in a year) need efficient triage. Filtering by category lets a peer mentor instantly surface certification expiry alerts or scenario prompts without scrolling past unrelated reminders, reducing the time to act on critical notifications and lowering abandonment of the notification centre entirely.
Components
Dependencies
- View Consolidated Notification Feed critical