Filter Map Pins by Mentor Availability Status
A horizontal filter bar sits at the top of the Map View Screen with toggle chips for 'Available', 'Paused', and 'All'. Selecting a filter immediately updates the visible pins without a full map reload. When 'Available' is selected, only mentors whose availability status is active are shown. When 'Paused' is selected, only paused mentors are shown. The active filter chip is visually highlighted. The Geographic Matching Service applies the filter server-side to minimise data transfer.
User Story
Acceptance Criteria
- Given the map is showing all pins, when I tap the 'Available' filter chip, then only pins for mentors with active availability status are displayed and paused mentor pins are hidden
- Given I have selected the 'Available' filter, when I tap 'All', then all mentor pins reappear on the map
- Given I select a filter, when the map updates, then the transition completes within 1 second with no full page reload
- Given I select the 'Paused' filter, when the map updates, then only paused mentor pins are shown and the chip is visually highlighted to indicate the active filter state
Business Value
When coordinating an urgent assignment, the coordinator needs to act on available mentors only. Filtering removes cognitive noise from paused or inactive mentors, reducing decision time and preventing the error of dispatching to a mentor who is temporarily unavailable.
Components
- Map Filter Bar ui
- Map View Screen ui
- Geographic Matching Service service
- Location Repository data