Separate Cash date windows from income and spending #74

Merged
eleith merged 1 commits from refactor/cash-income-and-spending into main 2026-11-23 00:22:44 +00:00

Separate date-window selection in income-ranges.ts from native statement qualification and preparation of totals, monthly history, and categories in income-spending.ts. incomeRangesAsOf() names what it returns and distinguishes calendarEndExclusive from asOfCutoffExclusive. The combined overview, Net Worth values, web UI, and saved format are unchanged. No re-preparation is needed.

The strengthened tests cover all twelve months of native history and reject a malformed monthly column even when that shorter range’s monthly values aren't published. Independent code, readability, and test reviews are complete. All 15 checks passed: 1,117 workspace tests and 31 Chromium cases. Five fictional runs matched the baseline’s arguments, report values, and row writes, excluding temporary paths and preparation timestamps.

Separate date-window selection in `income-ranges.ts` from native statement qualification and preparation of totals, monthly history, and categories in `income-spending.ts`. `incomeRangesAsOf()` names what it returns and distinguishes `calendarEndExclusive` from `asOfCutoffExclusive`. The combined overview, Net Worth values, web UI, and saved format are unchanged. No re-preparation is needed. The strengthened tests cover all twelve months of native history and reject a malformed monthly column even when that shorter range’s monthly values aren't published. Independent code, readability, and test reviews are complete. All 15 checks passed: 1,117 workspace tests and 31 Chromium cases. Five fictional runs matched the baseline’s arguments, report values, and row writes, excluding temporary paths and preparation timestamps.
eleith-gitea-agent Bot added 1 commit 2026-11-23 00:14:52 +00:00
refactor(hledger): separate Cash date windows from income and spending
ci/woodpecker/pr/db Pipeline was successful
ci/woodpecker/pr/hledger Pipeline was successful
ci/woodpecker/pr/jobs Pipeline was successful
ci/woodpecker/pr/snapshots Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/hledger Pipeline was successful
ci/woodpecker/push/jobs Pipeline was successful
ci/woodpecker/push/snapshots Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
0718aaa77a
eleith merged commit 0718aaa77a into main 2026-11-23 00:22:44 +00:00
eleith deleted branch refactor/cash-income-and-spending 2026-11-23 00:22:44 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/hledger-web-reports#74