Spending: a Charts tab with filters

Eight charts over the same spend / income rule as the rest of broke (transfers
never count): cash flow, savings rate per month, spending by category over time,
this month so far vs last month and the 3-month average, balance over time per
account and in total (worked back from today's balances), top merchants,
spending by weekday and biggest changes vs the period before.

Filters in the URL: time range or custom dates, grouping, accounts, categories,
tags, direction, merchant search, and compare with the previous period.
Clicking a bar or point opens those transactions in Activity. Every chart has a
legend and a table view; series colors are a validated palette in a fixed order
set by all-time spending, so filters never repaint a series.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MangaValkandClaude Opus 5.5 committed 2026-11-19 20:40:35 +01:00
1 parent 2371a5674f
commit 759b0c0d62
9 files changed
+823 -1

No files matched your search

+6
View File
@@ -26,6 +26,10 @@
--shadow-card: 0 1px 2px #0000000a, 0 6px 20px -8px #00000014;
--shadow-pop: 0 1px 3px #0000000f, 0 18px 44px -14px #00000038;
--backdrop: #0000004d; /* behind a modal */
/* Charts page: categorical series, in this fixed order (validated for colour blindness on #fff; three sit below 3:1,
so every chart has a legend, tooltips and a table view). "other" is the fold for everything past slot 7. */
--series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
--series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948; --series-other: #a3a3a0;
color-scheme: light;
}
@@ -37,6 +41,7 @@
/* Dark lifts cards with a top highlight, not a shadow. */
--shadow-card: inset 0 1px 0 #ffffff0a, 0 1px 2px #00000059; --shadow-pop: inset 0 1px 0 #ffffff0f, 0 18px 44px -14px #000000b3;
--good: #4ade80; --bad: #f87171; --on-ink: #141414; --backdrop: #000000a6; color-scheme: dark;
--series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-8: #e66767; --series-other: #6b6b72;
/* Tailwind's pale status tints, dimmed for dark surfaces. */
--color-green-50: #4ade801a; --color-green-100: #4ade8033; --color-red-50: #f871711f; --color-amber-50: #f59e0b1f; --color-amber-600: #fbbf24;
}
@@ -47,6 +52,7 @@
/* Dark lifts cards with a top highlight, not a shadow. */
--shadow-card: inset 0 1px 0 #ffffff0a, 0 1px 2px #00000059; --shadow-pop: inset 0 1px 0 #ffffff0f, 0 18px 44px -14px #000000b3;
--good: #4ade80; --bad: #f87171; --on-ink: #141414; --backdrop: #000000a6; color-scheme: dark;
--series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-8: #e66767; --series-other: #6b6b72;
--color-green-50: #4ade801a; --color-green-100: #4ade8033; --color-red-50: #f871711f; --color-amber-50: #f59e0b1f; --color-amber-600: #fbbf24;
}