Section groups with collapsible headers + Sinking Funds section #11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Restructure the budget and month pages into four collapsible groups and introduce a Sinking Funds section for savings goals (emergency fund, car maintenance, Christmas, etc).
Groups
Primary Debt Target sits inside the Committed group after Debt Minimums. It is not a section; it is a pseudo-row within Committed.
Income and Flexible are open by default because those are the sections users edit day to day. Committed and Savings collapse by default because they are set-and-forget.
Collapsibility
Use native HTML
<details>/<summary>so no JavaScript is required. Chevron rotation via CSS on[open]. Per-page-load state only; no persistence across reloads (add localStorage later if needed).New section
Section enum gains
sinking_fundwith label "Sinking Funds". An alembic migration covers the schema delta (the non-native enum is a VARCHAR with a CHECK, which needs a batch migration to update).Group subtotals
Each group header displays its total alongside the group name.
/): single number per group,sum(section.amount)across the group's sections (debt target is excluded since its amount comes from a debt_minimum row already counted)/month/YYYY-MM):Applied $X / Planned $Yper group headerAcceptance criteria
sinking_fundadded to Section enum with label "Sinking Funds"<details>groups in order: Income, Committed, Savings, FlexibleOut of scope