Stats Filter Bar Widget
Component Detail
User Interface
low complexity
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Compact filter control bar rendered at the top of the statistics dashboard, allowing the user to select a date range (week, month, quarter, year, or custom) and filter by activity type or contact. All controls meet WCAG 2.2 AA touch target and contrast requirements. Emits filter change events consumed by the stats Riverpod provider.
stats-filter-bar-widget
Responsibilities
- Render date range preset chips and a custom date picker
- Render activity type filter dropdown
- Emit filter state changes to Riverpod provider
- Persist last-used filter values across sessions
Interfaces
StatsFilterBarWidget({required StatsFilterNotifier notifier})
selectDateRange(DateRange range)
selectActivityType(String? activityType)
resetFilters()
getCurrentFilter() → StatsFilter