fix(stats): validate max-titles against allowlist instead of positive-in

- `loadMaxTitles` now rejects values not in `MAX_TITLES_OPTIONS` (e.g. arbitrary integers like 8)
- Add test covering unsupported-but-numeric stored values
This commit is contained in:
2026-07-06 01:15:24 -07:00
parent 42433dc30b
commit 1cead99c98
3 changed files with 18 additions and 3 deletions
+4
View File
@@ -0,0 +1,4 @@
type: fixed
area: stats
- Show all trend chart titles by default, persist hidden-title choices, and add a per-chart top-title limit selector.