Files
using.cash/frontend/src/api
rick afde51abf2
CI / docker (push) Has been cancelled
CI / build-and-test (push) Has started running
Add AccountTreeGrid component and tree report endpoints
New reusable AccountTreeGrid component:
- Hierarchical tree with expand/collapse per node
- Σ prefix on aggregated parent values when collapsed
- Parent nodes show sum of all descendants when collapsed
- Own-value shown when expanded (for nodes with direct amounts)
- Column totals invariant: same regardless of expand/collapse state
- Folder/document icons matching v5 visual language
- CSS transitions on hover and state changes
- CSV download support per section

New backend endpoints:
- GET /api/organizations/{orgId}/reports/balance-sheet-tree?year=N
  Returns accounts with quarterly columns: Start, Q1, Q2, Q3, Q4, Current
- GET /api/organizations/{orgId}/reports/profit-loss-tree?year=N
  Returns accounts with: Last Year, Q1, Q2, Q3, Q4, YTD

Rebuilt pages using tree grid:
- Balance Sheet: Assets and Liabilities sections with quarterly breakdown
- Profit & Loss: Revenue and Expenses sections with quarterly breakdown,
  net result chip, CSV download

Modeled after v5 Open Ledgers treegrid functionality.

Made-with: Cursor
2026-04-09 09:38:56 +02:00
..