Persist Filter State Across Navigation
The Member Status Filter Widget integrates with the Navigation State Store to persist active filter selections across navigation events. When a coordinator drills into a peer mentor detail page from a filtered list view and then navigates back, the filter widget restores its prior state and the member list re-renders with the same filter criteria applied. This behavior is achieved by writing filter state into the Navigation State Store on every filter change and reading it on screen initialization. The state persists for the lifetime of the app session but resets on logout.
User Story
Acceptance Criteria
- Given I have applied filters on the member overview screen, when I tap a member card to view their detail page, then my filter state is saved to the Navigation State Store before navigation
- Given I am on a member detail page reached from a filtered list, when I press back, then the member overview screen restores with the same filter chips active and the filtered list displayed
- Given the app is foregrounded after being backgrounded, when I return to the member overview screen, then filter state persists within the same session
- Given I log out and log back in, when I navigate to the member overview screen, then filter state is cleared and the default unfiltered view is shown
Business Value
Coordinators frequently switch between the overview list and individual member profiles during a work session. Losing filter context on each navigation forces repeated manual re-filtering, creating unnecessary friction. Persisted filter state reduces the number of taps required per session and supports the extended, administrative-style sessions typical of coordinator workflows.