feat: custom year range on Cash Flow and Reports, drop redundant 12m preset

"This year" and "12 months" were two different ways of showing roughly
the same recent window, which read as duplicated. Replaced the "12m"
preset with "custom": pick an arbitrary fromYear-toYear span via a new
YearRangeSelector (two dropdowns built on the same internal component
YearSelector already uses).

Also de-duplicated the RangePreset/computeRange logic that was copied
verbatim between CashFlowPage and ReportsPage into shared
lib/dateRange.ts — both pages had the identical bug/duplication.
This commit is contained in:
ZProger
2026-08-16 22:23:25 +03:00
parent acff447673
commit 5b42e3d972
6 changed files with 124 additions and 76 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "aurum-frontend",
"private": true,
"version": "0.16.1",
"version": "0.17.0",
"type": "module",
"scripts": {
"dev": "vite",