Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
👋 Hello contributor! We would love to review your PR! Before we can do that, please make sure:
A quick note on volume: please get one PR reviewed and merged before opening several more. A stack of simultaneous, similar PRs from one author is reviewed slowly, and low-effort, untested, or undisclosed-AI PRs may be closed without a detailed review. We do this to reduce the TOIL the core contributor team has to go through for each PR and to allow for speedy reviews and merges. For more information, please see our Contributing Guide. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
✅ Deploy Preview for actualbudget ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for actualbudget-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
matt-fidd
left a comment
There was a problem hiding this comment.
Thanks for this, it works well in my testing
When the filter doesn't cover any months in the report the average goes blank, e.g. year is 2020 on a 2025 to 2026 report leaves the card empty where it used to show 0.00. Could it show 0.00 there instead?
It also only kicks in for monthly reports, a quarterly report with a Jul to Sep filter still divides by all 5 quarters. Is that intentional?
|
🤖 Thanks for testing this, @matt-fidd. The average shows I also added a regression test for a |
matt-fidd
left a comment
There was a problem hiding this comment.
Thanks
Yearly, weekly and daily reports still divide by the whole range, e.g. a yearly report over 2025 to 2026 with a Jul to Sep filter divides by 2 years. Would you be up for covering those here too, or would you rather leave them for a follow-up?
Could we drop the second docs paragraph as well? The bit about an empty category selection feels like more detail than anyone needs there.
|
🤖 Thanks, @matt-fidd. I went ahead and covered daily, weekly, and yearly reports in this PR too. The July–September filter in your example now divides by one year, and I dropped the second paragraph from the docs. Could you take another look when you get a chance? |
Description
When you apply a toolbar date filter, the average in a custom transaction report now uses the days, weeks, months, quarters, or years the filter covers. The summary, data table, and dashboard table use the same period count. Partial periods and periods with no matching transactions still count once. If the date filter falls entirely outside the report range, the average is 0.00.
I used OpenAI Codex to write the implementation and regression tests.
Related issue(s)
Fixes #9525
Testing
Checklist
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
src/components/modals/StorageMigrationFailedModal.tsxsrc/components/reports/spreadsheets/countFilteredIntervals.tssrc/util/previous-storage.tssrc/components/reports/spreadsheets/custom-spreadsheet.tssrc/budgetfiles/budgetfilesSlice.tssrc/components/Modals.tsxsrc/components/reports/graphs/tableGraph/ReportTableRow.tsxsrc/components/reports/reports/GetCardData.tsxsrc/components/reports/reports/CustomReport.tsxsrc/components/reports/ReportSummary.tsxlocale/en.jsonsrc/util/error.tslocale/sv.jsonlocale/uk.jsonlocale/es.jsonlocale/fr.jsonlocale/pt-BR.jsonlocale/de.jsonlocale/ca.jsonlocale/pl.jsonlocale/it.jsonlocale/zh-Hant.jsonlocale/ru.jsonlocale/nl.jsonlocale/nb-NO.jsonsrc/components/reports/spreadsheets/makeQuery.tssrc/components/settings/StorageBackendToggle.tsxView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
Unchanged
loot-core
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/server/storage/app.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/storage/absurd-migration.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/storage/opfs-sahpool.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/storage/index.tshome/runner/work/actual/actual/packages/loot-core/src/server/budgetfiles/app.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/storage/files-store.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/storage/idb-memory.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/index.tshome/runner/work/actual/actual/packages/loot-core/src/shared/errors.tsView detailed bundle breakdown
Added
Removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
No assets were unchanged
api
Total
Changeset
home/runner/work/actual/actual/packages/loot-core/src/server/storage/app.tshome/runner/work/actual/actual/packages/loot-core/src/platform/server/sqlite/index.electron.tshome/runner/work/actual/actual/packages/loot-core/src/server/budgetfiles/app.tshome/runner/work/actual/actual/packages/loot-core/src/shared/errors.tsView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
No assets were smaller
Unchanged
cli
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
crdt
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged