[PR #6137] Feat/add-budget-analysis-report #6347

Closed
opened 2026-02-28 21:27:03 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6137

State: closed
Merged: Yes


Feature: add budget analysis report

This feature allows the user to track how the Budget/Spent/Balance of categories as a function of time.

This feature is modelled after the Cash Flow and Net Worth reports. Currently, the user defines the interval resolution unlike "Cash Flow" which has the interval resolution (daily/monthly, etc) defined for each preset option. This can be adjusted based off maintainer feedback.

This feature also allows for both a line chart and bar chart representation, with balance always being a line chart.

Thank you maintainers for looking at this and considering this. This is related to feature request #6116

AI disclaimer: this PR was partly generated with Copilot as indicated in the git history.

Image of cards on report dashboard:

Screenshot 2025-11-13 at 10 36 44 AM
Screenshot 2025-11-13 at 10 38 44 AM

Individual pages:
Screenshot 2025-11-13 at 10 39 11 AM
Screenshot 2025-11-13 at 10 40 26 AM


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 28 14.42 MB → 14.47 MB (+48.69 kB) +0.33%
loot-core 1 5.84 MB → 5.84 MB (+32 B) +0.00%
api 1 4.38 MB → 4.38 MB (+28 B) +0.00%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
28 14.42 MB → 14.47 MB (+48.69 kB) +0.33%
Changeset
File Δ Size
src/components/reports/reports/BudgetAnalysis.tsx 🆕 +21.05 kB 0 B → 21.05 kB
src/components/reports/graphs/BudgetAnalysisGraph.tsx 🆕 +12.94 kB 0 B → 12.94 kB
src/components/reports/reports/BudgetAnalysisCard.tsx 🆕 +8.37 kB 0 B → 8.37 kB
src/components/reports/spreadsheets/budget-analysis-spreadsheet.ts 🆕 +4.68 kB 0 B → 4.68 kB
src/components/reports/ReportRouter.tsx 📈 +706 B (+12.95%) 5.32 kB → 6.01 kB
src/hooks/useFeatureFlag.ts 📈 +31 B (+7.73%) 401 B → 432 B
src/components/reports/Overview.tsx 📈 +750 B (+3.14%) 23.32 kB → 24.05 kB
src/components/settings/Experimental.tsx 📈 +256 B (+2.41%) 10.37 kB → 10.62 kB
src/components/reports/spreadsheets/summary-spreadsheet.ts 📈 +20 B (+0.30%) 6.42 kB → 6.44 kB
src/hooks/useWidget.ts 📈 +2 B (+0.26%) 767 B → 769 B
src/components/reports/reportRanges.ts 📈 +10 B (+0.22%) 4.43 kB → 4.44 kB
src/components/reports/DateRange.tsx 📈 +8 B (+0.21%) 3.8 kB → 3.81 kB
src/components/reports/spreadsheets/calendar-spreadsheet.ts 📈 +10 B (+0.17%) 5.64 kB → 5.65 kB
src/components/reports/SnapshotButton.tsx 📈 +2 B (+0.13%) 1.5 kB → 1.5 kB
src/components/reports/spreadsheets/makeQuery.ts 📈 +2 B (+0.13%) 1.55 kB → 1.55 kB
src/components/reports/GraphButton.tsx 📈 +2 B (+0.12%) 1.58 kB → 1.58 kB
src/components/reports/reports/CashFlow.tsx 📈 +10 B (+0.11%) 9.06 kB → 9.07 kB
src/components/reports/spreadsheets/crossover-spreadsheet.ts 📈 +10 B (+0.10%) 9.32 kB → 9.33 kB
src/components/reports/reports/Summary.tsx 📈 +26 B (+0.09%) 27.35 kB → 27.38 kB
src/components/reports/reports/Spending.tsx 📈 +10 B (+0.04%) 23.28 kB → 23.29 kB
src/components/reports/reports/NetWorth.tsx 📈 +6 B (+0.04%) 14.63 kB → 14.64 kB
src/components/reports/spreadsheets/custom-spreadsheet.ts 📈 +2 B (+0.03%) 5.74 kB → 5.75 kB
src/components/reports/reports/Crossover.tsx 📈 +14 B (+0.03%) 40.86 kB → 40.88 kB
src/components/reports/spreadsheets/spending-spreadsheet.ts 📈 +2 B (+0.03%) 6.1 kB → 6.1 kB
src/hooks/useFormulaExecution.ts 📈 +2 B (+0.02%) 8.01 kB → 8.01 kB
src/components/reports/reports/CustomReportListCards.tsx 📈 +2 B (+0.02%) 8.98 kB → 8.98 kB
src/components/reports/reports/Calendar.tsx 📈 +6 B (+0.02%) 28.98 kB → 28.99 kB
src/components/reports/reports/CalendarCard.tsx 📈 +2 B (+0.02%) 12.67 kB → 12.67 kB
src/components/reports/reports/CustomReport.tsx 📈 +2 B (+0.01%) 24.89 kB → 24.89 kB
src/components/formula/QueryManager.tsx 📉 -2 B (-0.01%) 23.85 kB → 23.85 kB
src/components/reports/ReportSidebar.tsx 📉 -2 B (-0.01%) 16.63 kB → 16.63 kB
src/components/reports/graphs/DonutGraph.tsx 📉 -2 B (-0.01%) 13.96 kB → 13.96 kB
src/components/reports/graphs/AreaGraph.tsx 📉 -2 B (-0.02%) 12.18 kB → 12.18 kB
src/components/reports/graphs/BarGraph.tsx 📉 -2 B (-0.02%) 11.25 kB → 11.25 kB
src/components/reports/reports/CrossoverCard.tsx 📉 -2 B (-0.02%) 10.62 kB → 10.61 kB
src/components/reports/graphs/StackedBarGraph.tsx 📉 -2 B (-0.02%) 10.24 kB → 10.24 kB
src/components/reports/graphs/LineGraph.tsx 📉 -2 B (-0.02%) 9.62 kB → 9.62 kB
src/components/reports/graphs/SpendingGraph.tsx 📉 -2 B (-0.02%) 8.96 kB → 8.96 kB
src/components/reports/graphs/NetWorthGraph.tsx 📉 -4 B (-0.02%) 16.14 kB → 16.13 kB
src/components/reports/graphs/CrossoverGraph.tsx 📉 -2 B (-0.03%) 7.13 kB → 7.13 kB
src/components/reports/graphs/BarLineGraph.tsx 📉 -2 B (-0.03%) 5.93 kB → 5.92 kB
src/components/reports/spreadsheets/net-worth-spreadsheet.ts 📉 -2 B (-0.03%) 5.63 kB → 5.62 kB
src/components/reports/graphs/CalendarGraph.tsx 📉 -4 B (-0.04%) 10.51 kB → 10.5 kB
src/components/reports/ReportSummary.tsx 📉 -2 B (-0.06%) 3.53 kB → 3.53 kB
src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx 📉 -4 B (-0.06%) 6.5 kB → 6.49 kB
src/components/reports/Container.tsx 📉 -2 B (-0.14%) 1.35 kB → 1.35 kB
src/components/reports/graphs/CashFlowGraph.tsx 📉 -54 B (-0.56%) 9.4 kB → 9.35 kB
src/components/reports/Header.tsx 📉 -97 B (-0.66%) 14.3 kB → 14.21 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/ReportRouter.js 1.07 MB → 1.11 MB (+48.41 kB) +4.43%
static/js/index.js 9.24 MB → 9.24 MB (+287 B) +0.00%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/indexeddb-main-thread-worker-e59fee74.js 12.94 kB 0%
static/js/workbox-window.prod.es5.js 5.64 kB 0%
static/js/da.js 106.62 kB 0%
static/js/de.js 175.37 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 160.18 kB 0%
static/js/es.js 171.21 kB 0%
static/js/fr.js 179.72 kB 0%
static/js/it.js 171.54 kB 0%
static/js/nb-NO.js 157.23 kB 0%
static/js/nl.js 103.35 kB 0%
static/js/pl.js 88.64 kB 0%
static/js/pt-BR.js 146.24 kB 0%
static/js/ru.js 106.97 kB 0%
static/js/sv.js 78.2 kB 0%
static/js/th.js 182.35 kB 0%
static/js/uk.js 215.11 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/narrow.js 641.19 kB 0%
static/js/TransactionList.js 105.97 kB 0%
static/js/wide.js 159.97 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 11.79 kB 0%
static/js/useTransactionBatchActions.js 13.23 kB 0%
static/js/FormulaEditor.js 1.04 MB 0%

loot-core

Total

Files count Total bundle size % Changed
1 5.84 MB → 5.84 MB (+32 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts 📈 +32 B (+0.33%) 9.57 kB → 9.6 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.-4eQWbrL.js 0 B → 5.84 MB (+5.84 MB) -

Removed

Asset File Size % Changed
kcab.worker.BInehE-N.js 5.84 MB → 0 B (-5.84 MB) -100%

Bigger
No assets were bigger

Smaller
No assets were smaller

Unchanged
No assets were unchanged


api

Total

Files count Total bundle size % Changed
1 4.38 MB → 4.38 MB (+28 B) +0.00%
Changeset
File Δ Size
src/server/dashboard/app.ts 📈 +28 B (+0.32%) 8.57 kB → 8.59 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
bundle.api.js 4.38 MB → 4.38 MB (+28 B) +0.00%

Smaller
No assets were smaller

Unchanged
No assets were unchanged

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6137 **State:** closed **Merged:** Yes --- Feature: add budget analysis report This feature allows the user to track how the Budget/Spent/Balance of categories as a function of time. This feature is modelled after the Cash Flow and Net Worth reports. Currently, the user defines the interval resolution unlike "Cash Flow" which has the interval resolution (daily/monthly, etc) defined for each preset option. This can be adjusted based off maintainer feedback. This feature also allows for both a line chart and bar chart representation, with balance always being a line chart. Thank you maintainers for looking at this and considering this. This is related to feature request #6116 AI disclaimer: this PR was partly generated with Copilot as indicated in the git history. Image of cards on report dashboard: ![Screenshot 2025-11-13 at 10 36 44 AM](https://github.com/user-attachments/assets/e5bb10d2-6fc1-4b70-87db-fa129ed24f7f) ![Screenshot 2025-11-13 at 10 38 44 AM](https://github.com/user-attachments/assets/d3db0601-d21b-47ab-86b9-df2e100743ea) Individual pages: ![Screenshot 2025-11-13 at 10 39 11 AM](https://github.com/user-attachments/assets/553156ab-eb84-48cb-9466-a481b08232d5) ![Screenshot 2025-11-13 at 10 40 26 AM](https://github.com/user-attachments/assets/ee368457-5b46-483c-81f7-05c973a32009) <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 28 | 14.42 MB → 14.47 MB (+48.69 kB) | +0.33% loot-core | 1 | 5.84 MB → 5.84 MB (+32 B) | +0.00% api | 1 | 4.38 MB → 4.38 MB (+28 B) | +0.00% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 28 | 14.42 MB → 14.47 MB (+48.69 kB) | +0.33% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/reports/reports/BudgetAnalysis.tsx` | 🆕 +21.05 kB | 0 B → 21.05 kB `src/components/reports/graphs/BudgetAnalysisGraph.tsx` | 🆕 +12.94 kB | 0 B → 12.94 kB `src/components/reports/reports/BudgetAnalysisCard.tsx` | 🆕 +8.37 kB | 0 B → 8.37 kB `src/components/reports/spreadsheets/budget-analysis-spreadsheet.ts` | 🆕 +4.68 kB | 0 B → 4.68 kB `src/components/reports/ReportRouter.tsx` | 📈 +706 B (+12.95%) | 5.32 kB → 6.01 kB `src/hooks/useFeatureFlag.ts` | 📈 +31 B (+7.73%) | 401 B → 432 B `src/components/reports/Overview.tsx` | 📈 +750 B (+3.14%) | 23.32 kB → 24.05 kB `src/components/settings/Experimental.tsx` | 📈 +256 B (+2.41%) | 10.37 kB → 10.62 kB `src/components/reports/spreadsheets/summary-spreadsheet.ts` | 📈 +20 B (+0.30%) | 6.42 kB → 6.44 kB `src/hooks/useWidget.ts` | 📈 +2 B (+0.26%) | 767 B → 769 B `src/components/reports/reportRanges.ts` | 📈 +10 B (+0.22%) | 4.43 kB → 4.44 kB `src/components/reports/DateRange.tsx` | 📈 +8 B (+0.21%) | 3.8 kB → 3.81 kB `src/components/reports/spreadsheets/calendar-spreadsheet.ts` | 📈 +10 B (+0.17%) | 5.64 kB → 5.65 kB `src/components/reports/SnapshotButton.tsx` | 📈 +2 B (+0.13%) | 1.5 kB → 1.5 kB `src/components/reports/spreadsheets/makeQuery.ts` | 📈 +2 B (+0.13%) | 1.55 kB → 1.55 kB `src/components/reports/GraphButton.tsx` | 📈 +2 B (+0.12%) | 1.58 kB → 1.58 kB `src/components/reports/reports/CashFlow.tsx` | 📈 +10 B (+0.11%) | 9.06 kB → 9.07 kB `src/components/reports/spreadsheets/crossover-spreadsheet.ts` | 📈 +10 B (+0.10%) | 9.32 kB → 9.33 kB `src/components/reports/reports/Summary.tsx` | 📈 +26 B (+0.09%) | 27.35 kB → 27.38 kB `src/components/reports/reports/Spending.tsx` | 📈 +10 B (+0.04%) | 23.28 kB → 23.29 kB `src/components/reports/reports/NetWorth.tsx` | 📈 +6 B (+0.04%) | 14.63 kB → 14.64 kB `src/components/reports/spreadsheets/custom-spreadsheet.ts` | 📈 +2 B (+0.03%) | 5.74 kB → 5.75 kB `src/components/reports/reports/Crossover.tsx` | 📈 +14 B (+0.03%) | 40.86 kB → 40.88 kB `src/components/reports/spreadsheets/spending-spreadsheet.ts` | 📈 +2 B (+0.03%) | 6.1 kB → 6.1 kB `src/hooks/useFormulaExecution.ts` | 📈 +2 B (+0.02%) | 8.01 kB → 8.01 kB `src/components/reports/reports/CustomReportListCards.tsx` | 📈 +2 B (+0.02%) | 8.98 kB → 8.98 kB `src/components/reports/reports/Calendar.tsx` | 📈 +6 B (+0.02%) | 28.98 kB → 28.99 kB `src/components/reports/reports/CalendarCard.tsx` | 📈 +2 B (+0.02%) | 12.67 kB → 12.67 kB `src/components/reports/reports/CustomReport.tsx` | 📈 +2 B (+0.01%) | 24.89 kB → 24.89 kB `src/components/formula/QueryManager.tsx` | 📉 -2 B (-0.01%) | 23.85 kB → 23.85 kB `src/components/reports/ReportSidebar.tsx` | 📉 -2 B (-0.01%) | 16.63 kB → 16.63 kB `src/components/reports/graphs/DonutGraph.tsx` | 📉 -2 B (-0.01%) | 13.96 kB → 13.96 kB `src/components/reports/graphs/AreaGraph.tsx` | 📉 -2 B (-0.02%) | 12.18 kB → 12.18 kB `src/components/reports/graphs/BarGraph.tsx` | 📉 -2 B (-0.02%) | 11.25 kB → 11.25 kB `src/components/reports/reports/CrossoverCard.tsx` | 📉 -2 B (-0.02%) | 10.62 kB → 10.61 kB `src/components/reports/graphs/StackedBarGraph.tsx` | 📉 -2 B (-0.02%) | 10.24 kB → 10.24 kB `src/components/reports/graphs/LineGraph.tsx` | 📉 -2 B (-0.02%) | 9.62 kB → 9.62 kB `src/components/reports/graphs/SpendingGraph.tsx` | 📉 -2 B (-0.02%) | 8.96 kB → 8.96 kB `src/components/reports/graphs/NetWorthGraph.tsx` | 📉 -4 B (-0.02%) | 16.14 kB → 16.13 kB `src/components/reports/graphs/CrossoverGraph.tsx` | 📉 -2 B (-0.03%) | 7.13 kB → 7.13 kB `src/components/reports/graphs/BarLineGraph.tsx` | 📉 -2 B (-0.03%) | 5.93 kB → 5.92 kB `src/components/reports/spreadsheets/net-worth-spreadsheet.ts` | 📉 -2 B (-0.03%) | 5.63 kB → 5.62 kB `src/components/reports/graphs/CalendarGraph.tsx` | 📉 -4 B (-0.04%) | 10.51 kB → 10.5 kB `src/components/reports/ReportSummary.tsx` | 📉 -2 B (-0.06%) | 3.53 kB → 3.53 kB `src/components/reports/spreadsheets/cash-flow-spreadsheet.tsx` | 📉 -4 B (-0.06%) | 6.5 kB → 6.49 kB `src/components/reports/Container.tsx` | 📉 -2 B (-0.14%) | 1.35 kB → 1.35 kB `src/components/reports/graphs/CashFlowGraph.tsx` | 📉 -54 B (-0.56%) | 9.4 kB → 9.35 kB `src/components/reports/Header.tsx` | 📉 -97 B (-0.66%) | 14.3 kB → 14.21 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- static/js/ReportRouter.js | 1.07 MB → 1.11 MB (+48.41 kB) | +4.43% static/js/index.js | 9.24 MB → 9.24 MB (+287 B) | +0.00% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/indexeddb-main-thread-worker-e59fee74.js | 12.94 kB | 0% static/js/workbox-window.prod.es5.js | 5.64 kB | 0% static/js/da.js | 106.62 kB | 0% static/js/de.js | 175.37 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 160.18 kB | 0% static/js/es.js | 171.21 kB | 0% static/js/fr.js | 179.72 kB | 0% static/js/it.js | 171.54 kB | 0% static/js/nb-NO.js | 157.23 kB | 0% static/js/nl.js | 103.35 kB | 0% static/js/pl.js | 88.64 kB | 0% static/js/pt-BR.js | 146.24 kB | 0% static/js/ru.js | 106.97 kB | 0% static/js/sv.js | 78.2 kB | 0% static/js/th.js | 182.35 kB | 0% static/js/uk.js | 215.11 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/narrow.js | 641.19 kB | 0% static/js/TransactionList.js | 105.97 kB | 0% static/js/wide.js | 159.97 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 11.79 kB | 0% static/js/useTransactionBatchActions.js | 13.23 kB | 0% static/js/FormulaEditor.js | 1.04 MB | 0% </div> </details> --- #### loot-core **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 5.84 MB → 5.84 MB (+32 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/dashboard/app.ts` | 📈 +32 B (+0.33%) | 9.57 kB → 9.6 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.-4eQWbrL.js | 0 B → 5.84 MB (+5.84 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BInehE-N.js | 5.84 MB → 0 B (-5.84 MB) | -100% **Bigger** No assets were bigger **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> --- #### api **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 1 | 4.38 MB → 4.38 MB (+28 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/server/dashboard/app.ts` | 📈 +28 B (+0.32%) | 8.57 kB → 8.59 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** No assets were added **Removed** No assets were removed **Bigger** Asset | File Size | % Changed ----- | --------- | --------- bundle.api.js | 4.38 MB → 4.38 MB (+28 B) | +0.00% **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> </details> <!--- bundlestats-action-comment key:combined end --->
GiteaMirror added the pull-request label 2026-02-28 21:27:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#6347