[PR #6646] [CLOSED] add absolute date mode for custom report #13703

Closed
opened 2026-04-10 22:01:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/6646
Author: @matt-fidd
Created: 1/14/2026
Status: Closed

Base: masterHead: absolute-dates


📝 Commits (4)

  • 08b5fca add absolute date option to custom reports
  • 7e74f53 note
  • 66336a4 fix data being fetched for entire interval
  • fbe8b55 [autofix.ci] apply automated fixes

📊 Changes

14 files changed (+191 additions, -50 deletions)

View changed files

📝 packages/desktop-client/src/components/reports/ReportOptions.ts (+1 -0)
📝 packages/desktop-client/src/components/reports/ReportSidebar.tsx (+116 -44)
📝 packages/desktop-client/src/components/reports/reportRanges.ts (+29 -2)
📝 packages/desktop-client/src/components/reports/reports/CustomReport.tsx (+10 -0)
📝 packages/desktop-client/src/components/reports/reports/GetCardData.tsx (+2 -0)
📝 packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts (+4 -0)
📝 packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts (+3 -0)
📝 packages/desktop-client/src/components/reports/spreadsheets/makeQuery.ts (+7 -4)
packages/loot-core/migrations/1768352735000_add_use_absolute_dates.sql (+7 -0)
📝 packages/loot-core/src/server/aql/schema/index.ts (+1 -0)
📝 packages/loot-core/src/server/db/types/index.ts (+1 -0)
📝 packages/loot-core/src/server/reports/app.ts (+2 -0)
📝 packages/loot-core/src/types/models/reports.ts (+2 -0)
upcoming-release-notes/6646.md (+6 -0)

📄 Description

{\color{red}\text{This PR contains a migration, don't connect it to a server you care about}}

This has bugged me for a while and seemed like a straightforward expansion. My use case is that it lets me define financial years in advance without having to change each report every month, but I imagine it can be useful for things like selecting a holiday (vacation) period or any other specific time range you care about without having to set the interval.

image

Before (no way to set starting day if not in "daily" interval mode, and can't preset future months):
image

After:
image


Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 27 14.81 MB → 14.81 MB (+2.61 kB) +0.02%
loot-core 1 5.86 MB → 5.86 MB (+179 B) +0.00%
api 1 4.4 MB → 4.4 MB (+167 B) +0.00%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
27 14.81 MB → 14.81 MB (+2.61 kB) +0.02%
Changeset
File Δ Size
src/components/reports/reportRanges.ts 📈 +445 B (+9.78%) 4.44 kB → 4.88 kB
src/components/reports/spreadsheets/makeQuery.ts 📈 +148 B (+9.31%) 1.55 kB → 1.7 kB
src/components/reports/ReportSidebar.tsx 📈 +1.39 kB (+8.35%) 16.63 kB → 18.02 kB
src/components/reports/reports/GetCardData.tsx 📈 +246 B (+3.03%) 7.92 kB → 8.16 kB
src/components/reports/spreadsheets/grouped-spreadsheet.ts 📈 +56 B (+1.63%) 3.37 kB → 3.42 kB
src/components/reports/reports/CustomReport.tsx 📈 +278 B (+1.05%) 25.78 kB → 26.05 kB
src/components/reports/spreadsheets/custom-spreadsheet.ts 📈 +56 B (+0.95%) 5.75 kB → 5.8 kB
src/components/reports/ReportOptions.ts 📈 +27 B (+0.37%) 7.22 kB → 7.24 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.15 MB → 1.15 MB (+2.61 kB) +0.22%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
static/js/index.js 9.52 MB 0%
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/ca.js 182.95 kB 0%
static/js/da.js 106.46 kB 0%
static/js/de.js 180.27 kB 0%
static/js/en-GB.js 7.18 kB 0%
static/js/en.js 168.47 kB 0%
static/js/es.js 173.67 kB 0%
static/js/fr.js 179.8 kB 0%
static/js/it.js 171.27 kB 0%
static/js/nb-NO.js 157.07 kB 0%
static/js/nl.js 106.47 kB 0%
static/js/pl.js 88.48 kB 0%
static/js/pt-BR.js 154.41 kB 0%
static/js/th.js 182.04 kB 0%
static/js/uk.js 214.89 kB 0%
static/js/resize-observer.js 18.37 kB 0%
static/js/BackgroundImage.js 120.54 kB 0%
static/js/narrow.js 637.33 kB 0%
static/js/TransactionList.js 106.18 kB 0%
static/js/wide.js 164 kB 0%
static/js/AppliedFilters.js 9.71 kB 0%
static/js/usePayeeRuleCounts.js 10.04 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.86 MB → 5.86 MB (+179 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/reports/app.ts 📈 +121 B (+2.77%) 4.27 kB → 4.39 kB
home/runner/work/actual/actual/packages/loot-core/src/server/aql/schema/index.ts 📈 +58 B (+0.49%) 11.57 kB → 11.63 kB
View detailed bundle breakdown

Added

Asset File Size % Changed
kcab.worker.BezNqn3l.js 0 B → 5.86 MB (+5.86 MB) -

Removed

Asset File Size % Changed
kcab.worker.Zwjv9l4n.js 5.86 MB → 0 B (-5.86 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.4 MB → 4.4 MB (+167 B) +0.00%
Changeset
File Δ Size
src/server/reports/app.ts 📈 +113 B (+2.92%) 3.78 kB → 3.89 kB
src/server/aql/schema/index.ts 📈 +54 B (+0.51%) 10.41 kB → 10.46 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

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

Smaller
No assets were smaller

Unchanged
No assets were unchanged


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/6646 **Author:** [@matt-fidd](https://github.com/matt-fidd) **Created:** 1/14/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `absolute-dates` --- ### 📝 Commits (4) - [`08b5fca`](https://github.com/actualbudget/actual/commit/08b5fcab35d773c0af634563d347d1bf0e3a2ec4) add absolute date option to custom reports - [`7e74f53`](https://github.com/actualbudget/actual/commit/7e74f5352ba5346ccd0d4518f34c9b5ea8466e87) note - [`66336a4`](https://github.com/actualbudget/actual/commit/66336a41a08ed2a3a0beda66ccd861fdcc6d640a) fix data being fetched for entire interval - [`fbe8b55`](https://github.com/actualbudget/actual/commit/fbe8b552a3e4bfdca0b13ca54f17ac163667aeff) [autofix.ci] apply automated fixes ### 📊 Changes **14 files changed** (+191 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/reports/ReportOptions.ts` (+1 -0) 📝 `packages/desktop-client/src/components/reports/ReportSidebar.tsx` (+116 -44) 📝 `packages/desktop-client/src/components/reports/reportRanges.ts` (+29 -2) 📝 `packages/desktop-client/src/components/reports/reports/CustomReport.tsx` (+10 -0) 📝 `packages/desktop-client/src/components/reports/reports/GetCardData.tsx` (+2 -0) 📝 `packages/desktop-client/src/components/reports/spreadsheets/custom-spreadsheet.ts` (+4 -0) 📝 `packages/desktop-client/src/components/reports/spreadsheets/grouped-spreadsheet.ts` (+3 -0) 📝 `packages/desktop-client/src/components/reports/spreadsheets/makeQuery.ts` (+7 -4) ➕ `packages/loot-core/migrations/1768352735000_add_use_absolute_dates.sql` (+7 -0) 📝 `packages/loot-core/src/server/aql/schema/index.ts` (+1 -0) 📝 `packages/loot-core/src/server/db/types/index.ts` (+1 -0) 📝 `packages/loot-core/src/server/reports/app.ts` (+2 -0) 📝 `packages/loot-core/src/types/models/reports.ts` (+2 -0) ➕ `upcoming-release-notes/6646.md` (+6 -0) </details> ### 📄 Description $${\color{red}\text{This PR contains a migration, don't connect it to a server you care about}}$$ This has bugged me for a while and seemed like a straightforward expansion. My use case is that it lets me define financial years in advance without having to change each report every month, but I imagine it can be useful for things like selecting a holiday (vacation) period or any other specific time range you care about without having to set the interval. <img width="234" height="346" alt="image" src="https://github.com/user-attachments/assets/0a92048c-8b1d-4f9f-8380-6a09ced8500d" /> Before (no way to set starting day if not in "daily" interval mode, and can't preset future months): <img width="266" height="140" alt="image" src="https://github.com/user-attachments/assets/96a6cf72-8a32-4c5f-8297-5a6a611b595d" /> After: <img width="251" height="385" alt="image" src="https://github.com/user-attachments/assets/4de3dd83-cffb-4820-b9c9-acf452c8ec57" /> <!--- actual-bot-sections ---> <hr /> <!--- bundlestats-action-comment key:combined start ---> ### Bundle Stats Bundle | Files count | Total bundle size | % Changed ------ | ----------- | ----------------- | --------- desktop-client | 27 | 14.81 MB → 14.81 MB (+2.61 kB) | +0.02% loot-core | 1 | 5.86 MB → 5.86 MB (+179 B) | +0.00% api | 1 | 4.4 MB → 4.4 MB (+167 B) | +0.00% <details> <summary>View detailed bundle stats</summary> #### desktop-client **Total** Files count | Total bundle size | % Changed ----------- | ----------------- | --------- 27 | 14.81 MB → 14.81 MB (+2.61 kB) | +0.02% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/components/reports/reportRanges.ts` | 📈 +445 B (+9.78%) | 4.44 kB → 4.88 kB `src/components/reports/spreadsheets/makeQuery.ts` | 📈 +148 B (+9.31%) | 1.55 kB → 1.7 kB `src/components/reports/ReportSidebar.tsx` | 📈 +1.39 kB (+8.35%) | 16.63 kB → 18.02 kB `src/components/reports/reports/GetCardData.tsx` | 📈 +246 B (+3.03%) | 7.92 kB → 8.16 kB `src/components/reports/spreadsheets/grouped-spreadsheet.ts` | 📈 +56 B (+1.63%) | 3.37 kB → 3.42 kB `src/components/reports/reports/CustomReport.tsx` | 📈 +278 B (+1.05%) | 25.78 kB → 26.05 kB `src/components/reports/spreadsheets/custom-spreadsheet.ts` | 📈 +56 B (+0.95%) | 5.75 kB → 5.8 kB `src/components/reports/ReportOptions.ts` | 📈 +27 B (+0.37%) | 7.22 kB → 7.24 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.15 MB → 1.15 MB (+2.61 kB) | +0.22% **Smaller** No assets were smaller **Unchanged** Asset | File Size | % Changed ----- | --------- | --------- static/js/index.js | 9.52 MB | 0% 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/ca.js | 182.95 kB | 0% static/js/da.js | 106.46 kB | 0% static/js/de.js | 180.27 kB | 0% static/js/en-GB.js | 7.18 kB | 0% static/js/en.js | 168.47 kB | 0% static/js/es.js | 173.67 kB | 0% static/js/fr.js | 179.8 kB | 0% static/js/it.js | 171.27 kB | 0% static/js/nb-NO.js | 157.07 kB | 0% static/js/nl.js | 106.47 kB | 0% static/js/pl.js | 88.48 kB | 0% static/js/pt-BR.js | 154.41 kB | 0% static/js/th.js | 182.04 kB | 0% static/js/uk.js | 214.89 kB | 0% static/js/resize-observer.js | 18.37 kB | 0% static/js/BackgroundImage.js | 120.54 kB | 0% static/js/narrow.js | 637.33 kB | 0% static/js/TransactionList.js | 106.18 kB | 0% static/js/wide.js | 164 kB | 0% static/js/AppliedFilters.js | 9.71 kB | 0% static/js/usePayeeRuleCounts.js | 10.04 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.86 MB → 5.86 MB (+179 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `home/runner/work/actual/actual/packages/loot-core/src/server/reports/app.ts` | 📈 +121 B (+2.77%) | 4.27 kB → 4.39 kB `home/runner/work/actual/actual/packages/loot-core/src/server/aql/schema/index.ts` | 📈 +58 B (+0.49%) | 11.57 kB → 11.63 kB </details> <details> <summary>View detailed bundle breakdown</summary> <div> **Added** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.BezNqn3l.js | 0 B → 5.86 MB (+5.86 MB) | - **Removed** Asset | File Size | % Changed ----- | --------- | --------- kcab.worker.Zwjv9l4n.js | 5.86 MB → 0 B (-5.86 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.4 MB → 4.4 MB (+167 B) | +0.00% <details> <summary>Changeset</summary> File | Δ | Size ---- | - | ---- `src/server/reports/app.ts` | 📈 +113 B (+2.92%) | 3.78 kB → 3.89 kB `src/server/aql/schema/index.ts` | 📈 +54 B (+0.51%) | 10.41 kB → 10.46 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.4 MB → 4.4 MB (+167 B) | +0.00% **Smaller** No assets were smaller **Unchanged** No assets were unchanged </div> </details> </details> <!--- bundlestats-action-comment key:combined end ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-10 22:01:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#13703