Skip to content

Show active category filters as chips on the statistics page - #164

Merged
luflow merged 1 commit into
mainfrom
claude/statistik-aktive-kategorie-filter
Aug 10, 2026
Merged

Show active category filters as chips on the statistics page#164
luflow merged 1 commit into
mainfrom
claude/statistik-aktive-kategorie-filter

Conversation

@luflow

@luflow luflow commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • The category filter on the statistics page was easy to miss once set — the only sign it was active was the trigger button's own color, no different from the other filter dropdowns. Selected categories now render as closable chips below the filter row, mirroring the "All appointments" list's active-filters row.
  • Added a small "Filter" label above the category button (matching "Period"/"Range" next to it), and the category trigger now always renders as a proper (secondary-variant) button so it reads as a filter control at a glance.
  • Moved the export button to the right edge of the filter row.
  • Extracted the category-chip resolution and label-splitting logic — previously copy-pasted between the statistics page and the appointment list — into a shared useCategoryFilterChips composable, used by both views now.

Test plan

  • npm run lint (eslint)
  • npm run stylelint
  • npm run build (vite)
  • scripts/check-german-l10n.py / scripts/check-source-strings.py
  • Manual check in browser (not run in this environment)

Generated by Claude Code

The category filter on the statistics page was easy to miss once set —
nothing on screen showed it was active besides the button's own state.
Mirrors the "All appointments" list: selected categories now render as
closable chips below the filter row, with a "Filter" label above the
category button and the category trigger always shown as a proper button
so it reads as a filter control at a glance. The export button moved to
the right edge of the filter row.

Extracted the category-chip resolution and label-splitting logic (till now
copy-pasted) into a shared useCategoryFilterChips composable, used by both
the statistics page and the appointment list.
@luflow
luflow merged commit 571a8ff into main Aug 10, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants