## Summary Transfer categories with `cashflow_direction` set to `outflow` or `inflow` now appear in the **Sankey diagram** instead of the 12-month trend chart. This gives a clearer picture of money flow (e.g. investments, savings transfers) without inflating the income/expense trend lines. Hidden transfers remain excluded from everything. ## Changes - **Sankey endpoint**: Updated join to include tracked transfer categories on the matching flow side (outflow → expense side, inflow → income side) - **Trend endpoint**: Removed `transfer_inflow` and `transfer_outflow` columns from the SQL query and API response - **Trend chart UI**: Removed tracked inflow/outflow bars, tooltip rows, legend items, and related config - **TypeScript types**: Removed `transfer_inflow`/`transfer_outflow` from `TrendDataPoint` - **Category form**: Updated direction field description to reference "Sankey chart" instead of "monthly trend" - **Tests**: Updated 4 existing tests and added 2 new tests covering tracked transfers in Sankey breakdown ## Design decision Tracked transfers appear **only in the Sankey diagram** — they do not affect summary totals, savings rate, or breakdown cards. This keeps the high-level numbers accurate while still visualizing where money flows internally. |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| views | ||