Skip to content

[AI] Keep custom report charts stable with long legends (#5394) - #8911

Merged
jfdoming merged 5 commits into
actualbudget:masterfrom
femedici:agent/5394-report-legend-scroll
Sep 24, 2026
Merged

jfdoming merged 5 commits into
actualbudget:masterfrom
femedici:agent/5394-report-legend-scroll

Conversation

@femedici

@femedici femedici commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Related issue(s)

Testing

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I have read every line of this diff and can explain what each change does and why it is needed

Bundle Stats

Bundle Files count Total bundle size % Changed
desktop-client 42 13.81 MB → 13.81 MB (+221 B) +0.00%
loot-core 1 4.65 MB → 4.65 MB (+243 B) +0.00%
api 2 3.87 MB → 3.87 MB (+243 B) +0.01%
cli 1 8.02 MB 0%
crdt 1 11.16 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
42 13.81 MB → 13.81 MB (+221 B) +0.00%
Changeset
File Δ Size
locale/en.json 📈 +230 B (+0.08%) 271.22 kB → 271.45 kB
src/components/reports/reports/CustomReport.tsx 📉 -9 B (-0.03%) 25.71 kB → 25.7 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/en.js 271.22 kB → 271.45 kB (+230 B) +0.08%

Smaller

Asset File Size % Changed
static/js/ReportRouter.js 1.54 MB → 1.54 MB (-9 B) -0.00%

Unchanged

Asset File Size % Changed
static/js/index.js 1.7 MB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/DateSelect.js 2.37 MB 0%
static/js/FormulaEditor.js 767.24 kB 0%
static/js/ManageRules.js 71.66 kB 0%
static/js/NotesTagFormatter.js 25.94 kB 0%
static/js/PayeeRuleCountLabel.js 12.81 kB 0%
static/js/ScheduleEditForm.js 75.41 kB 0%
static/js/SchedulesTable.js 171.25 kB 0%
static/js/TourHost.js 169.22 kB 0%
static/js/TourProvider.js 1.54 kB 0%
static/js/TransactionEdit.js 219.59 kB 0%
static/js/TransactionList.js 79.22 kB 0%
static/js/Value.js 1.79 MB 0%
static/js/bootstrapHyperFormula.js 302 B 0%
static/js/ca.js 170.64 kB 0%
static/js/client.js 452.05 kB 0%
static/js/columns.js 673.28 kB 0%
static/js/de.js 186.43 kB 0%
static/js/en-GB.js 13.69 kB 0%
static/js/es.js 182.1 kB 0%
static/js/fr.js 178.59 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 151.91 kB 0%
static/js/months.js 590.14 kB 0%
static/js/narrow.js 290.52 kB 0%
static/js/nb-NO.js 135.89 kB 0%
static/js/nl.js 151.78 kB 0%
static/js/pl.js 136.51 kB 0%
static/js/pt-BR.js 178.74 kB 0%
static/js/ru.js 211 kB 0%
static/js/theme.js 31.68 kB 0%
static/js/uk.js 211.1 kB 0%
static/js/useFormatList.js 10.4 kB 0%
static/js/useLocalPref.js 97.2 kB 0%
static/js/useReducedMotion.js 594 B 0%
static/js/wide.js 274.53 kB 0%
static/js/workbox-window.prod.es5.js 7.21 kB 0%
static/js/zh-Hans.js 106.8 kB 0%
static/js/zh-Hant.js 130.92 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.65 MB → 4.65 MB (+243 B) +0.00%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/sync/index.ts 📈 +243 B (+1.37%) 17.33 kB → 17.57 kB
View detailed bundle breakdown

Added

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

Removed

Asset File Size % Changed
kcab.worker.CDaQOzoA.js 4.65 MB → 0 B (-4.65 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
2 3.87 MB → 3.87 MB (+243 B) +0.01%
Changeset
File Δ Size
home/runner/work/actual/actual/packages/loot-core/src/server/sync/index.ts 📈 +243 B (+1.41%) 16.82 kB → 17.06 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
index.js 3.87 MB → 3.87 MB (+243 B) +0.01%

Smaller
No assets were smaller

Unchanged

Asset File Size % Changed
models.js 0 B 0%

cli

Total

Files count Total bundle size % Changed
1 8.02 MB 0%
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

Asset File Size % Changed
cli.js 8.02 MB 0%

crdt

Total

Files count Total bundle size % Changed
1 11.16 kB 0%
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

Asset File Size % Changed
index.js 11.16 kB 0%

@actual-github-bot actual-github-bot Bot changed the title [AI] Keep custom report charts stable with long legends (#5394) [WIP] [AI] Keep custom report charts stable with long legends (#5394) Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

👋 Hello contributor!

We would love to review your PR! Before we can do that, please make sure:

  • ✅ All CI checks pass
  • ✅ The PR is moved from draft to open (if applicable)
  • ✅ The "[WIP]" prefix is removed from the PR title
  • ✅ The PR description follows the provided template, with all checklist boxes filled in
  • ✅ All CodeRabbit code review comments are resolved (if you disagree with anything - reply to the bot with your reasoning so we can read through it). The bot will eventually approve the PR.
  • ✅ Any AI usage is disclosed (see our AI Usage Policy)

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.

@netlify

netlify Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit 32db3e3
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget/deploys/6ab46df1c1ca590008e7c526
😎 Deploy Preview https://deploy-preview-8911.demo.actualbudget.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: actualbudget/actual/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 7ce72c5b-359b-409c-8616-53e56ed93835

📥 Commits

Reviewing files that changed from the base of the PR and between 0065b51 and 32db3e3.

📒 Files selected for processing (1)
  • packages/desktop-client/e2e/reports.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/desktop-client/e2e/reports.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The custom report content container now preserves chart height while long legends scroll independently. End-to-end tests cover bar and line graphs. A release note documents the bugfix.

Changes

Custom Report Legend Scrolling

Layer / File(s) Summary
Stable chart layout and validation
packages/desktop-client/src/components/reports/reports/CustomReport.tsx, packages/desktop-client/e2e/reports.test.ts, upcoming-release-notes/fix-custom-report-legend-scroll.md
The report content container now uses flex: 1. End-to-end tests verify stable chart height and legend scrolling for bar and line graphs. The release note describes the bugfix.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: size small

Suggested reviewers: jfdoming

Merge Risk: ⚪ Minimal · up to 32db3

No actionable merge-blocking issue was identified; the change is ready for normal checks.

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description contains only the submission template, checklist, and bundle statistics. It does not provide a meaningful explanation of the change or testing details. Add a concise description of the chart-height fix, the long-legend problem it addresses, and the end-to-end tests that verify the behavior.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: keeping custom report charts stable when legends are long.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Sep 9, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hi! It looks like this PR has not had any changes for a week now. Would you like someone to review this PR? If so - please remove the "[WIP]" prefix from the PR title. That will let the community know that this PR is open for a review.

@github-actions github-actions Bot added the Stale label Sep 17, 2026
@github-actions github-actions Bot removed the Stale label Sep 18, 2026
@femedici femedici changed the title [WIP] [AI] Keep custom report charts stable with long legends (#5394) [AI] Keep custom report charts stable with long legends (#5394) Sep 18, 2026
@jfdoming

Copy link
Copy Markdown
Member

Hi, if this is ready for review please fill in the PR description

@jfdoming jfdoming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments, otherwise tested and looks better, thanks for the fix!

@femedici

femedici commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

See comments, otherwise tested and looks better, thanks for the fix!

@jfdoming Thanks! I just resolved the comment and committed the changes.

@jfdoming jfdoming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! For next time please fill in the PR description so we have more context on the change

@jfdoming
jfdoming added this pull request to the merge queue Sep 24, 2026
Merged via the queue into actualbudget:master with commit bc9bba6 Sep 24, 2026
43 checks passed
flafleur pushed a commit to flafleur/actual that referenced this pull request Oct 21, 2026
…t#5394) (actualbudget#8911)

* [AI] Keep custom report charts stable with long legends (actualbudget#5394)

Fixes actualbudget#5394

* [AI] Use forEach for parameterized report tests

---------

Co-authored-by: Felipe Medici <[email protected]>
RafaelEspino pushed a commit to RafaelEspino/actual that referenced this pull request Oct 28, 2026
…t#5394) (actualbudget#8911)

* [AI] Keep custom report charts stable with long legends (actualbudget#5394)

Fixes actualbudget#5394

* [AI] Use forEach for parameterized report tests

---------

Co-authored-by: Felipe Medici <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants