DistanceFilterWidget
Component Detail
Description
Compact UI control that lets coordinators set a maximum travel radius and toggle proximity-based filtering on or off. Renders inside the geography match panel as a collapsible filter row. Persists last-used radius preference locally.
distance-filter-widget
Sources & reasoning
Line 99 directly ties geographic visualization to matching and assignment dispatch (oppdragstildeling), providing the provenance for this feature as a distinct matching capability beyond simple map display. Line 358 places it in Fase 3, normalizing to v1.1. The blueprint lists this feature under Geographic Map View at [v1.1]. Kept as a separate feature from peer-mentor-map because matching logic and the dispatch integration are distinct from rendering the map layer.
-
docs/source/likeperson.md · line 99Geografisk kartvisning av likepersoner for matching og oppdragstildeling (særlig store fylker).
-
docs/source/likeperson.md · line 358Geografisk kartvisning (Blindeforbundet)
Responsibilities
- Render radius slider and unit toggle (km/miles)
- Emit filter change events on value commit
- Persist last-used filter values to local storage
- Reset to defaults when assignment context changes
Interfaces
getValue(): DistanceFilterValue
setValue(value: DistanceFilterValue): void
onCommit(callback: (value: DistanceFilterValue) => void): void
reset(): void
Related Data Entities (1)
Data entities managed by this component