Global dashboard filter bar (date range, granularity, region) #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The reporting period is baked into every chart factory.
months()returns a fixed Jan–Jun list, and each chart gets a fixed six-value series. There is no way to change what the dashboard is showing without editing code.Proposal
Add a filter bar above the grid:
DashboardContext(or a small event bus) holding the current filter state; widgets subscribe and re-request their data when it changes.Widgets that do not care about a given filter simply ignore it.
Acceptance criteria
translations.properties,_en,_es).Depends on
Scope
Medium.
PR: #36
Umgesetzt: Filterleiste (Zeitraum Monat/Quartal/Halbjahr/Jahr + Region) über dem Grid,
DashboardContextals Bus, alle Widgets werden überupdateDatain place nachgefüttert. Filterzustand ist bewusst nicht persistiert (dokumentiert inDashboardContext) — das Grid-Layout bleibt wie gehabt imlocalStorage.Abweichung vom Vorschlag: statt eines Date-Range-Pickers ein Perioden-Selector, und keine separate Granularität — der Zeitraum bestimmt sie mit (ein Monat wird als vier Wochen gelesen, alles Längere in Monaten).
./mvnw test: 46 Tests grün, inkl. Playwright-E2E.