Skip to content

🔒 reconciliation on mobile - #8384

Merged
matt-fidd merged 15 commits into
actualbudget:masterfrom
matt-fidd:mobile-reconcile
Jul 15, 2026
Merged

matt-fidd merged 15 commits into
actualbudget:masterfrom
matt-fidd:mobile-reconcile

Conversation

@matt-fidd

@matt-fidd matt-fidd commented Jul 2, 2026 •

Copy link
Copy Markdown
Member

Description

One of the most requested things for the mobile view, and something I'm missing too.

Related issue(s)

#7312
#3724
#3385

Testing

Screen.Recording.2026-07-02.at.22.12.45.mov

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 30 13.28 MB → 13.29 MB (+18.97 kB) +0.14%
loot-core 1 4.83 MB 0%
api 2 3.88 MB 0%
cli 1 8.02 MB 0%
crdt 1 11.12 kB 0%
View detailed bundle stats

desktop-client

Total

Files count Total bundle size % Changed
30 13.28 MB → 13.29 MB (+18.97 kB) +0.14%
Changeset
File Δ Size
src/components/modals/AccountReconcileModal.tsx 🆕 +5.38 kB 0 B → 5.38 kB
src/components/mobile/accounts/ReconcilingBanner.tsx 🆕 +3.69 kB 0 B → 3.69 kB
src/accounts/reconciliation.ts 🆕 +2.23 kB 0 B → 2.23 kB
src/components/mobile/accounts/AccountTransactions.tsx 📈 +3.52 kB (+40.94%) 8.6 kB → 12.12 kB
src/components/mobile/transactions/TransactionListItem.tsx 📈 +3.03 kB (+23.16%) 13.07 kB → 16.09 kB
src/components/mobile/accounts/AccountPage.tsx 📈 +695 B (+7.57%) 8.96 kB → 9.64 kB
src/components/modals/AccountMenuModal.tsx 📈 +604 B (+6.24%) 9.46 kB → 10.05 kB
src/components/mobile/transactions/TransactionListWithBalances.tsx 📈 +467 B (+4.51%) 10.11 kB → 10.56 kB
src/components/mobile/transactions/TransactionList.tsx 📈 +481 B (+2.60%) 18.04 kB → 18.51 kB
src/components/Modals.tsx 📈 +133 B (+1.00%) 12.97 kB → 13.1 kB
src/components/mobile/budget/BudgetPage.tsx 📈 +2 B (+0.01%) 36.92 kB → 36.92 kB
src/components/accounts/Account.tsx 📉 -1.21 kB (-2.73%) 44.27 kB → 43.06 kB
View detailed bundle breakdown

Added
No assets were added

Removed
No assets were removed

Bigger

Asset File Size % Changed
static/js/narrow.js 359.49 kB → 367.84 kB (+8.35 kB) +2.32%
static/js/index.js 5.28 MB → 5.28 MB (+6.1 kB) +0.11%
static/js/TransactionList.js 85.19 kB → 88.69 kB (+3.5 kB) +4.10%
static/js/PayeeRuleCountLabel.js 7.1 kB → 9.33 kB (+2.23 kB) +31.40%

Smaller

Asset File Size % Changed
static/js/wide.js 304.69 kB → 303.48 kB (-1.21 kB) -0.40%

Unchanged

Asset File Size % Changed
static/js/AppliedFilters.js 36.47 kB 0%
static/js/BackgroundImage.js 121.09 kB 0%
static/js/FormulaEditor.js 760.33 kB 0%
static/js/ReportRouter.js 1.28 MB 0%
static/js/bootstrapHyperFormula.js 302 B 0%
static/js/ca.js 174.64 kB 0%
static/js/da.js 98.1 kB 0%
static/js/de.js 181.92 kB 0%
static/js/en-GB.js 11.1 kB 0%
static/js/en.js 201.68 kB 0%
static/js/es.js 168.08 kB 0%
static/js/fr.js 169.79 kB 0%
static/js/indexeddb-main-thread-worker-e59fee74.js 13.46 kB 0%
static/js/it.js 155.52 kB 0%
static/js/nb-NO.js 139.35 kB 0%
static/js/nl.js 116.92 kB 0%
static/js/pl.js 139.95 kB 0%
static/js/pt-BR.js 182.8 kB 0%
static/js/th.js 170 kB 0%
static/js/theme.js 31.02 kB 0%
static/js/uk.js 204.6 kB 0%
static/js/useDateFormat.js 2.85 MB 0%
static/js/useTransactionBatchActions.js 9.71 kB 0%
static/js/workbox-window.prod.es5.js 7.21 kB 0%
static/js/zh-Hans.js 109.57 kB 0%

loot-core

Total

Files count Total bundle size % Changed
1 4.83 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
kcab.worker.CEHtIopf.js 4.83 MB 0%

api

Total

Files count Total bundle size % Changed
2 3.88 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
index.js 3.88 MB 0%
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.12 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.12 kB 0%

@netlify

netlify Bot commented Jul 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget ready!

Name Link
🔨 Latest commit b779514
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget/deploys/6a5684194c6d920008545bd7
😎 Deploy Preview https://deploy-preview-8384.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.

@github-actions

github-actions Bot commented Jul 2, 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.

@matt-fidd

Copy link
Copy Markdown
Member Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Full review finished.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This file needs splitting up really, but I don't want to do it in this PR, it's big enough already

@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR adds mobile account reconciliation through account-menu and modal wiring, shared reconciliation operations, reconciliation-state transaction UI, Playwright coverage, and release notes.

Changes

Mobile account reconciliation

Layer / File(s) Summary
Reconciliation helpers
packages/desktop-client/src/accounts/reconciliation.ts
Adds transaction locking, unlocking, balance calculation, reconciliation completion, and adjustment transaction operations.
Account reconciliation delegation
packages/desktop-client/src/components/accounts/Account.tsx
Delegates account reconciliation operations to the shared reconciliation module.
Modal contracts and rendering
packages/desktop-client/src/modals/modalsSlice.ts, packages/desktop-client/src/components/Modals.tsx
Adds reconciliation modal options and registers the modal renderer.
Reconcile modal and menu action
packages/desktop-client/src/components/modals/AccountReconcileModal.tsx, packages/desktop-client/src/components/modals/AccountMenuModal.tsx
Adds the reconciliation amount modal and conditional account-menu action.
Account page reconcile entry point
packages/desktop-client/src/components/mobile/accounts/AccountPage.tsx
Connects the menu action to the reconciliation search parameter and modal stack.
Account transactions reconciliation flow
packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx, packages/desktop-client/src/components/mobile/accounts/ReconcilingBanner.tsx
Parses reconciliation state, renders reconciliation actions, and handles account and transaction updates.
Transaction list reconciliation UI
packages/desktop-client/src/components/mobile/transactions/*
Propagates reconciliation state, supports cleared-status toggling, and updates balance and row rendering.
E2E coverage and release notes
packages/desktop-client/e2e/accounts.mobile.test.ts, packages/desktop-client/e2e/page-models/mobile-account-page.ts, upcoming-release-notes/add-mobile-reconciliation.md
Adds mobile reconciliation coverage, page-model interactions, and a release note entry.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AccountMenuModal
  participant AccountReconcileModal
  participant AccountTransactions
  participant ReconcilingBanner
  participant reconciliation

  AccountMenuModal->>AccountReconcileModal: open reconciliation modal
  AccountReconcileModal->>AccountTransactions: submit reconciliation amount
  AccountTransactions->>ReconcilingBanner: render reconciliation state
  ReconcilingBanner->>reconciliation: create transaction or finish reconciliation
Loading

Suggested reviewers: joel-jeremy, matissjanis, youngcw

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly summarizes the main change: reconciliation support on mobile.
Description check ✅ Passed The description is related to the mobile reconciliation changes and linked issues.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
packages/desktop-client/e2e/page-models/mobile-account-page.ts (1)

66-84: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider completing the page-model encapsulation for reconciliation actions.

startReconciliation() nicely encapsulates opening the menu/filling the amount, but the remaining reconciliation actions used by the new e2e test ("Create reconciliation transaction", "Unclear/Clear transaction", "Lock transactions") are left as raw page.getByRole calls in the test file instead of methods here. This is inconsistent with the rest of this page model (e.g., searchByText, clickCreateTransaction).

♻️ Example of extending the page model
+  async createReconciliationTransaction() {
+    await this.page
+      .getByRole('button', { name: 'Create reconciliation transaction' })
+      .click();
+  }
+
+  async toggleTransactionCleared(cleared: boolean) {
+    await this.page
+      .getByRole('button', { name: cleared ? 'Clear transaction' : 'Unclear transaction' })
+      .first()
+      .click();
+  }
+
+  async lockTransactions() {
+    await this.page.getByRole('button', { name: 'Lock transactions' }).click();
+  }

As per coding guidelines, "Keep reusable Playwright page interactions in e2e/page-models/."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/desktop-client/e2e/page-models/mobile-account-page.ts` around lines
66 - 84, The reconciliation flow is only partially encapsulated in
MobileAccountPage, leaving several reusable Playwright interactions in the test
file. Add page-model methods in mobile-account-page.ts for the remaining
reconciliation actions (the “Create reconciliation transaction”, “Unclear/Clear
transaction”, and “Lock transactions” steps) alongside startReconciliation(),
following the pattern used by searchByText and clickCreateTransaction. Then
update the e2e test to call those new MobileAccountPage methods instead of raw
page.getByRole calls.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/desktop-client/src/accounts/reconciliation.ts`:
- Around line 114-123: Handle nullable results from `rules-run` in
`reconciliation.ts` before accessing `tombstone`; the current `Promise.all`
result in `ruledTransactions` may contain `null`, which will break the `filter`
callbacks. Update the `send('rules-run', ...)` flow to first separate out only
non-null transactions, then use that filtered list when building the
`transactions-batch-update` payload for `added` and `deleted`, matching the
nullable guard already used in `Account.tsx`.

In `@packages/desktop-client/src/components/mobile/accounts/AccountPage.tsx`:
- Around line 152-155: The reconcile-mode navigation in AccountPage’s
search-param update is pushing a new history entry because setSearchParams is
called without replace. Update the setSearchParams call that sets the reconcile
param to use the same replace behavior as AccountTransactions’ onDoneReconciling
cleanup, so opening and closing reconcile mode stay in sync in the back stack.

---

Nitpick comments:
In `@packages/desktop-client/e2e/page-models/mobile-account-page.ts`:
- Around line 66-84: The reconciliation flow is only partially encapsulated in
MobileAccountPage, leaving several reusable Playwright interactions in the test
file. Add page-model methods in mobile-account-page.ts for the remaining
reconciliation actions (the “Create reconciliation transaction”, “Unclear/Clear
transaction”, and “Lock transactions” steps) alongside startReconciliation(),
following the pattern used by searchByText and clickCreateTransaction. Then
update the e2e test to call those new MobileAccountPage methods instead of raw
page.getByRole calls.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: afb5f45a-9b44-45e3-be7c-0b42fe6564af

📥 Commits

Reviewing files that changed from the base of the PR and between 62ced9a and a0d2910.

📒 Files selected for processing (15)
  • packages/desktop-client/e2e/accounts.mobile.test.ts
  • packages/desktop-client/e2e/page-models/mobile-account-page.ts
  • packages/desktop-client/src/accounts/reconciliation.ts
  • packages/desktop-client/src/components/Modals.tsx
  • packages/desktop-client/src/components/accounts/Account.tsx
  • packages/desktop-client/src/components/mobile/accounts/AccountPage.tsx
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
  • packages/desktop-client/src/components/mobile/accounts/ReconcilingBanner.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionList.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionListWithBalances.tsx
  • packages/desktop-client/src/components/modals/AccountMenuModal.tsx
  • packages/desktop-client/src/components/modals/AccountReconcileModal.tsx
  • packages/desktop-client/src/modals/modalsSlice.ts
  • upcoming-release-notes/add-mobile-reconciliation.md

@github-actions

This comment has been minimized.

@matt-fidd

Copy link
Copy Markdown
Member Author

/update-vrt

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 2, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 2, 2026
matt-fidd pushed a commit to matt-fidd/actual that referenced this pull request Jul 2, 2026
Auto-generated by VRT workflow

PR: actualbudget#8384
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 2, 2026
@matt-fidd

Copy link
Copy Markdown
Member Author

/update-vrt

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 3, 2026
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 3, 2026
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget-storybook ready!

Name Link
🔨 Latest commit c9d2cb6
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget-storybook/deploys/6a568400b6831b000850b0eb
😎 Deploy Preview https://deploy-preview-8384--actualbudget-storybook.netlify.app
📱 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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx (1)

86-95: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Remove manual memoization hooks as per desktop-client guidelines.

The codebase guidelines explicitly state to avoid manual useCallback and useMemo in desktop-client React code because the React Compiler automatically memoizes component bodies. Remove the useCallback wrappers from these added/modified functions to align with the standard.

  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx#L86-L95: Remove useCallback and its dependency array from baseTransactionsQuery.
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx#L108-L114: Remove useCallback and its dependency array from onSearch.
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx#L236-L253: Remove useCallback and its dependency array from onDoneReconciling.
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx#L255-L263: Remove useCallback and its dependency array from onCreateReconciliationTransaction.
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx#L265-L290: Remove useCallback and its dependency array from onToggleTransactionCleared.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx`
around lines 86 - 95, Remove the useCallback wrappers and dependency arrays from
baseTransactionsQuery, onSearch, onDoneReconciling,
onCreateReconciliationTransaction, and onToggleTransactionCleared in
packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
at lines 86-95, 108-114, 236-253, 255-263, and 265-290. Preserve each function’s
existing body and behavior while defining them directly in the component.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx`:
- Around line 236-253: Update onDoneReconciling so last_reconciled is stamped
only when reconciliation.finishReconciliation successfully completes a locked
reconciliation; preserve the account update and search-parameter cleanup for the
exit flow without recording reconciliation when finishReconciliation no-ops for
an unbalanced amount.

---

Nitpick comments:
In
`@packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx`:
- Around line 86-95: Remove the useCallback wrappers and dependency arrays from
baseTransactionsQuery, onSearch, onDoneReconciling,
onCreateReconciliationTransaction, and onToggleTransactionCleared in
packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
at lines 86-95, 108-114, 236-253, 255-263, and 265-290. Preserve each function’s
existing body and behavior while defining them directly in the component.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9c3a7e88-7d5e-4ea3-8842-916338c096d5

📥 Commits

Reviewing files that changed from the base of the PR and between 73f3d48 and b779514.

⛔ Files ignored due to path filters (6)
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-1-chromium-linux.png is excluded by !**/*.png
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-2-chromium-linux.png is excluded by !**/*.png
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-3-chromium-linux.png is excluded by !**/*.png
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-4-chromium-linux.png is excluded by !**/*.png
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-5-chromium-linux.png is excluded by !**/*.png
  • packages/desktop-client/e2e/accounts.mobile.test.ts-snapshots/Mobile-Accounts-reconciles-an-account-6-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (15)
  • packages/desktop-client/e2e/accounts.mobile.test.ts
  • packages/desktop-client/e2e/page-models/mobile-account-page.ts
  • packages/desktop-client/src/accounts/reconciliation.ts
  • packages/desktop-client/src/components/Modals.tsx
  • packages/desktop-client/src/components/accounts/Account.tsx
  • packages/desktop-client/src/components/mobile/accounts/AccountPage.tsx
  • packages/desktop-client/src/components/mobile/accounts/AccountTransactions.tsx
  • packages/desktop-client/src/components/mobile/accounts/ReconcilingBanner.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionList.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx
  • packages/desktop-client/src/components/mobile/transactions/TransactionListWithBalances.tsx
  • packages/desktop-client/src/components/modals/AccountMenuModal.tsx
  • packages/desktop-client/src/components/modals/AccountReconcileModal.tsx
  • packages/desktop-client/src/modals/modalsSlice.ts
  • upcoming-release-notes/add-mobile-reconciliation.md
🚧 Files skipped from review as they are similar to previous changes (14)
  • upcoming-release-notes/add-mobile-reconciliation.md
  • packages/desktop-client/src/components/Modals.tsx
  • packages/desktop-client/e2e/accounts.mobile.test.ts
  • packages/desktop-client/src/components/modals/AccountMenuModal.tsx
  • packages/desktop-client/src/modals/modalsSlice.ts
  • packages/desktop-client/src/components/mobile/transactions/TransactionList.tsx
  • packages/desktop-client/src/components/modals/AccountReconcileModal.tsx
  • packages/desktop-client/src/components/mobile/accounts/ReconcilingBanner.tsx
  • packages/desktop-client/e2e/page-models/mobile-account-page.ts
  • packages/desktop-client/src/components/mobile/transactions/TransactionListWithBalances.tsx
  • packages/desktop-client/src/accounts/reconciliation.ts
  • packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx
  • packages/desktop-client/src/components/accounts/Account.tsx
  • packages/desktop-client/src/components/mobile/accounts/AccountPage.tsx

@matt-fidd

Copy link
Copy Markdown
Member Author

Everything looks good to me. The tests aren't happy though

Sorted with a rebase, not sure what happened there

@matt-fidd
matt-fidd requested a review from MatissJanis July 14, 2026 19:06
@MatissJanis

Copy link
Copy Markdown
Member

Don't wait around for me to do code review. Feel free to merge :)

I reviewed the general UI/UX and am happy with it!

@matt-fidd
matt-fidd added this pull request to the merge queue Jul 15, 2026
Merged via the queue into actualbudget:master with commit 566ee38 Jul 15, 2026
36 checks passed
@matt-fidd
matt-fidd deleted the mobile-reconcile branch July 15, 2026 21:02
Steve-Klingele pushed a commit to Steve-Klingele/actual that referenced this pull request Oct 2, 2026
* Fix mobile category delete confirmation (#8301)

* Formulas code clean up (#8369)

* Clean up

* [autofix.ci] apply automated fixes

* md

* code review from coderabbit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Added an importer for German DKB and comdirect banks to the list of community importers (#8371)

* Added link to German DKB and Comdirect bank importer

* made text bold

* [AI] resolve release-note PR links from base branch history (#8368)

* [AI] Resolve release-note PR links from base branch history

The release-note generator recovered each note's PR number by reading the
"(#NNNN)" suffix that GitHub appends to squash-merge commit subjects, searching
HEAD — the release-notes/X.Y.Z branch it commits to. That branch only carries
the note file *contents* (checked out from origin/release), not the commit
history, so any note added to the release branch after it was cut (e.g. release
cherry-picks) has no add-commit reachable from HEAD and silently loses its link.

Search origin/master instead, where every note traces back to its original
squash commit with the correct PR number. The release branch is unsuitable
because "bring release branch up to date" squashes collapse original PRs.

Verified across all 63 descriptively-named notes in the 26.7.0 set: 60 resolve
identically to before, 3 previously-unlinked cherry-picks (#8301, #8335, #8339)
are now linked, 0 regressions.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* make the note human

* Update upcoming-release-notes/release-notes-resolve-pr-link-from-master.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* 🔖 (26.7.0) (#8332)

* 🔖 (26.7.0)

* Generate release notes for v26.7.0

* update blog author

* Generate release notes for v26.7.0

* release notes

* Generate release notes for v26.7.0

* Generate release notes for v26.7.0

* Generate release notes for v26.7.0

* relink PRs from cherry-picked changes

* tweak wording of release summary

* update blog post date

* akahu experimental

---------

Co-authored-by: github-merge-queue <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Fiddaman <[email protected]>

* [AI] Improved context menu (#8106)

* Context Menu is implemented

* allow Document and Window in ref event listener hook

* did stupid examples to showcase api usage

* recreated TransactionMenu using new context action

* fixed styling and removed excess calls to useContextMenuAction

* removed extra call

* extra imports

* started converting files to useContextMenu

* fixed context menus in reports

* linting and formatting

* deleted TransactionMenu

* release notes

* fixed coderabbit

* light context menu refactor

* added nested contexts for state and actions

* refactored useContextMenuAction

* [autofix.ci] apply automated fixes

* removed log

* updated contextMenuSlice

* removed package.json change

* filter => some

* tried to improve test

* [AI] test: fix payees e2e right-click test by scoping row query to table

* linting

* [AI] chore: fix all linting issues from new context menu files

* fixed compiler

* fixed linting/formatting

* coderabbit fix

* [AI] fix(electron): connect to sync server on 127.0.0.1 instead of localhost

Node.js > 17 resolves localhost to ::1 (IPv6) by default, while the Electron
sync server binds explicitly to 127.0.0.1 (IPv4). This caused setServerUrl to
fail when the desktop app starts its internal sync server, trapping the user
in an onboarding loop between /config-server and /bootstrap.

This commit updates the URL to use 127.0.0.1 to match the server binding.

* [AI] Fix isPlaywright detection for Electron Playwright tests

The userAgent check was changed from includes('playwright') to
=== 'playwright', but the Electron main process appends ' playwright'
to the default userAgent (preserving the 'Electron' substring that
isElectron() relies on). Use includes() so the flag is detected
correctly in Electron e2e tests.

Also reverts the localhost→127.0.0.1 change which did not resolve the
VRT pixel diffs.

* re-added missing menu option

---------

Co-authored-by: Alec Bakholdin <alecbakholdin.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* ✨ Added support to pluggy date correction based on installments (#8380)

* Added support to pluggy date correction based on installments

* md

* Update packages/sync-server/src/app-pluggyai/app-pluggyai.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* date now considers instalments, originalDate is the date without it

* creating new instance instead of same obj

* code review

* aligning to code review

* simpler

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* 🐛 Fix Formula query sliding-window timeframes (#8244)

* clean up sliding window to use the default feature

* more feedbacks

* Fix formula sliding window helper import

* Use report time range for formula queries

* fixes

* Trim formula sliding window fix

* code rabbit code review

* removing local helpers

* change query definitions to show the mode when not static / sliding window

* [autofix.ci] apply automated fixes

* Simplified even more the code

* Added test to sliding window + feedback

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* Bump js-yaml in the npm_and_yarn group across 1 directory (#8379)

Bumps the npm_and_yarn group with 1 update in the / directory: [js-yaml](https://github.com/nodeca/js-yaml).


Updates `js-yaml` from 3.14.2 to 3.15.0
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.14.2...3.15.0)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 3.15.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Reload when PWA shared worker is killed by Android (#8322)

* Reload when PWA shared worker is killed by OS

Android can kill a SharedWorker process while the PWA is
in the background. The the PWA become unresponsive when user reopens
it. This change introduces a 1s reload timer whenever the tab becomes
visible, and uses the 'resume association' mechanism to track if
the shared worker is responsive (which cancels the timer). If it's not,
it reloads the page and recovers the shared worker.

* [autofix.ci] apply automated fixes

* Improve release note

* Simplify guard for app init (started safer, initialized was redundant)

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* [AI] Clarify nYNAB export alternatives (#8330)

* bcrypt -> argon2id (#7829)

* bcrypt -> argon2id

* coderabbit feedback

* copilot review

* switch hashing settings

* [AI] Add unit tests for sync-server password hashing

Cover password.js, focused on the bcrypt -> argon2id migration:
- loginWithPassword upgrades a legacy bcrypt hash to argon2id on a
  successful login, leaves it untouched on a failed login, and does not
  needlessly rehash an existing argon2id hash
- hashPassword/verifyPassword round-trip, bcrypt backward-compat, and
  graceful handling of non-string/malformed hashes
- bootstrapPassword/changePassword/checkPassword behaviour

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* dedupe minimatch

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>

* [AI] Add tag button mobile (#8344)

* added hash button to enable one-click mobile usage of tags feature

* added tags to demo

* release notes

* [autofix.ci] apply automated fixes

* fixed long tags wrapping

* removed duplicate <Button> usages and fixed coderabbit smell

* removed lint

* added null check per coderabbit

* moved Menus to after the menu to be consistent with transaction menus

* textWrap => whiteSpace for coderabbit

* updated tsconfig to fix typecheck issue

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8344

* typecheck

* improved button ergonomics

* also don't add space if beginning of note

* fixed not working on iOS

* handle focus properly for add tag button

* fixed focus issue when clicking button on new transaction

* added delay because without it chrome doesnt work

* Added some more logic for button focusing

* fix typecheck

* extracted common style into iconStyle

* added aria label

* removed log statement

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Bank Sync Provider per budget file [1/3] - Sync server - Add file-scoped bank sync secrets (#8316)

* First PR for secrets per file

* md

* Code Review

* Code rabbit code review

* Removed migration (new column) in favor of string concatenation

* automation UI: reference schedule by ID not name (#8308)

* schedule by id

* migrate schedule indicators

* add tests

* update release note

* fix loading states

* [AI] feat(budget analysis report): Add Balance & Category selector (#8162)

* [AI] feat(budget-report): add balance-only view mode

Add a 'Balance only' toggle to the Budget Analysis report that hides the
Budgeted, Spent, and Overspending Adjustment series and renders the balance
as a plain line chart, similar to the Net Worth graph.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] fix(budget-report): always display ending balance for consistent header spacing

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] feat(budget-report): replace balance toggle buttons with series dropdown

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] fix(budget-report): capitalize Categories in balance mode dropdown

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] fix(budget-report): fix test imports and lint errors in BudgetAnalysisGraph test

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* fix: added in release note

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>

* [AI] Fix Age of Money report widget title not saving correctly (#8320)

* [AI] Fix Age of Money report widget title not saving correctly

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] Use mutateAsync to properly await mutations in AgeOfMoney widget

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>

* fix flaky vrt by increasing timeout (#8323)

* fix test

* note

* Update docs with Actuali iOS app (#8324)

* Update docs with Actuali iOS app

* Update packages/docs/docs/community-repos.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Initial payee location documentation (#8241)

* Initial payee location documentation

* Move to dedicated experimental section

Based on PR feedback

* [AI] feat(budget analysis report): show hidden categories (#8164)

* [AI] feat(budget-report): add toggle to include hidden categories

Add a 'Show hidden categories' button that includes hidden expense
categories in the Budget Analysis report. This prevents historic data
from being misrepresented when a category (e.g. a car fund) is hidden.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] feat(budget-report): replace hidden categories button with icon toggle

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] fix(budget-analysis): use correct package alias in test import

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* fix: added in release note

* [AI] refactor(budget-analysis): extract isBaseCategory helper and reuse in tests

Assisted-by: ClaudeCode:claude-sonnet-4-6

* [AI] feat(budget-report): clarify hidden categories toggle state

Replace the ambiguous icon-only toggle with a highlighted active state
and explicit click-to-show/hide tooltip text so the current selection is
clear. Add aria-pressed for accessibility.

Assisted-by: ClaudeCode:claude-opus-4.8

* [AI] feat(budget-report): consolidate chart options into Options dropdown menu

Replace the separate chart-type icon toggle, balance/category Select dropdown,
and hidden-categories eye icon with a single Options popover (Popover + Menu)
matching the pattern used by other reports (Sankey). The menu contains:
- Switch to line/bar chart
- Show balance (toggle)
- Show categories (toggle, replaces balanceOnly)
- Show hidden categories (toggle)

Also rebases onto upstream/master to incorporate the balanceOnly/Select
changes from #8162 before consolidating them.

Assisted-by: ClaudeCode:claude-sonnet-4-6

* [AI] fix(budget-report): use static 'Bar chart' toggle in Options menu for i18n

Replace the dynamic 'Switch to line/bar chart' string with a static
'Bar chart' label and a boolean toggle (on = bar, off = line), matching
the toggle pattern used by other menu items and making the string
straightforward to translate.

Assisted-by: ClaudeCode:claude-sonnet-4-6

* Enhance budget analysis report with dropdown options

Introduced a dropdown to group options and added the ability to show hidden categories in the budget analysis report.

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>

* update release process (#8334)

* [AI] Add cross-platform hook adding :robot: emoji to comments (#8331)

* [AI] Add cross-platform hook keeping GitHub comments/issues in Chinese or pirate voice

Adds a shared agent hook that requires anything an agent posts to GitHub
(PR/issue comments, PR reviews, created issues) to be written in 简体中文
(preferred) or, failing that, a fun pirate voice — never plain English.

- scripts/agent-hooks/github-comment-style.sh: shared guard. Reads
  tool_input.body/.title, allows CJK or pirate-flavoured text, blocks plain
  English via exit 2. Fails open on malformed payloads.
- Wired for Claude (.claude/settings.json PreToolUse), Codex
  (.codex/config.toml PreToolUse) and Cursor (beforeMCPExecution adapter).
- Documents the rule in AGENTS.md, the canonical pr-and-commit-rules.md and
  the Cursor rule so platforms without hook support apply it manually.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Use a slug for the release-note filename; document slug naming in AGENTS.md

Release-note filenames don't need to be the PR number — a short descriptive
slug works too (the PR link is resolved at release time). Rename the new note
accordingly and note this in AGENTS.md's directory reference.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [autofix.ci] apply automated fixes

* [AI] Auto-label PRs with Chinese descriptions as "ai spam" via CodeRabbit

Add a CodeRabbit labeling instruction (auto_apply_labels is already on) that
applies the "ai spam" label when a PR description contains Chinese/CJK
characters — a strong signal of AI-generated spam for this English-language
project.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Exempt CodeRabbit-addressed comments from the Chinese/pirate voice hook

CodeRabbit parses its commands (@coderabbitai review/resolve/etc.) as plain
English, so the github-comment-style guard now skips any comment mentioning
@coderabbitai / @coderabbit instead of forcing it into Chinese or pirate.
Documented the exception in the canonical and Cursor rule files.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Key CodeRabbit voice exemption on authorship, not mentions

The hook only ever runs on the agent's own outgoing comments, so CodeRabbit's
own comments are already out of scope (it posts under its own identity). Drop
the @coderabbitai mention bypass — a comment merely name-dropping the bot is
still the agent's prose and must follow the Chinese/pirate rule, closing an
easy plain-English bypass. Docs updated to match.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Pin CodeRabbit reviews to English

CodeRabbit was reading AGENTS.md / pr-and-commit-rules.md (which ask
contributors to comment in Chinese/pirate) and applying that to its own
reviews, posting them in Chinese. Set `language: en-US` and `tone_instructions`
so the bot's own reviews, summaries and replies stay in English; the
Chinese/pirate rule is for contributor/agent comments, not CodeRabbit.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Replace Chinese/pirate comment voice with a robot-emoji prefix

Scrap the 简体中文/pirate voice scheme (and its CodeRabbit language override and
Chinese-based "ai spam" label) in favour of one simple rule: every GitHub
comment, review or issue an agent posts must be prefixed with 🤖. The shared
guard now blocks any body — or, for issues, title — that doesn't start with the
robot emoji; docs and per-platform wiring updated to match. .coderabbit.yaml is
restored to its original state.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Silence SC1007 false positive on CDPATH= cd in Cursor MCP adapter

shellcheck flags the intentional `CDPATH= cd` empty-env prefix as SC1007
(mistaking it for an assignment). Add a scoped inline disable directive on that
line; behaviour is unchanged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Fail closed on guard execution errors in Cursor MCP adapter

The adapter previously allowed the call on any non-0/2 exit from
github-comment-style.sh, so a broken or missing guard would silently disable
enforcement. Deny on unexpected exits instead (matching guard-shell.sh), with a
message that marks it as an execution problem rather than a real policy denial.
The shared guard still fails open on malformed payloads (its own exit-0 choice).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Add hook requiring a blank PR template when agents create PRs

New shared guard pr-template-blank.sh blocks mcp__github__create_pull_request
unless the body is the repo's PR template, unmodified (cosmetic whitespace
aside) — agents must leave it blank for the human, per AGENTS.md. Wired for
Claude (PreToolUse), Codex (PreToolUse) and Cursor (the beforeMCPExecution
adapter now dispatches per-tool to the right guard). Docs and a release note
updated.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Lqu3eZi5djm2cPAEm3yVht

* [AI] Simplify agent-hook guard scripts

- github-comment-style.sh: fold the empty/whitespace-only case into the
  prefix check, dropping a redundant tr subshell per field.
- pr-template-blank.sh: drop the dead CR strip in canon() (the trailing
  whitespace sub already removes a trailing carriage return).
- before-mcp-github.sh: emit the constant allow payload with printf instead
  of spawning jq on the common (allow) path.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] Drop duplicated PR-template/robot-emoji rules now that hooks enforce them

The PR-template-blank and GitHub-comment robot-emoji-prefix rules are enforced
by cross-platform hooks, so the copies scattered across AGENTS.md and the
Cursor rules file are redundant. Remove them and point at the canonical
pr-and-commit-rules.md, which keeps the full rule (including the PR-template
Chinese exception that no hook can enforce). Also delete the internal
PR-template-guard release note.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] Drop "enforced by hooks" wording from the PR/comment rule docs

State the rules plainly without the meta-commentary about hook enforcement.
Keeps the actual rules (don't fill the PR template, prefix GitHub
comments/reviews/issues with 🤖, the Chinese exception, and the
your-own-comments-only note) intact.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] Trim enforcement meta-commentary; shorten robot-emoji release note

Drop the "isn't enforced automatically" / "handled by tooling" framing from
AGENTS.md and pr-and-commit-rules.md (keeping the rule and the "apply it
yourself" responsibility), and shorten the robot-emoji-prefix release note.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] Fail closed on unreadable payloads in the GitHub agent guards

Align the new guards with the git-guard.sh / guard-shell.sh convention: fail
closed when the hook payload can't be read, fail open only on a genuinely
absent optional field.

- github-comment-style.sh: block on invalid JSON / missing / non-object
  .tool_input; allow only an absent body/title within a valid object.
- before-mcp-github.sh: deny on a jq parse failure / missing .tool_name
  instead of falling through to allow.
- pr-template-blank.sh: an absent/null body now fails open (previously it
  normalized to "" and wrongly blocked PR creation); an empty-string body is
  still treated as a real non-template submission.
- .codex/config.toml: describe the full guard scope (comment body + issue
  title) in the hook comment and statusMessage.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* speed up electron builds (#8337)

* size up runners, skip translations where possible

* note

* mdx -> md (#8338)

* mdx -> md

* [AI] Outlaw .mdx in the docs package

Docusaurus 3 compiles .md through MDX, so JSX and imports work in plain
.md files and there is no need for the .mdx extension. Narrow the
enforce-doc-links remark plugin to only accept .md: reject any .mdx
source file at build time, flag links that target a .mdx file, and drop
the .mdx branches from the directory scanner and link resolution.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>

* [AI] Add performance indexes for transactions table (#8335)

* [AI] Add performance indexes for transactions table

* release notes

* [AI] Remove unselective tombstone-only index from performance migration

* [AI] api: make the browser build work in consumer production bundles (#8289)

* api: make the browser build work in consumer production bundles

The browser build shipped `new Worker(new URL("./worker.js", import.meta.url))`
in dist/browser.js. A consumer bundler (Vite/Rollup) recognizes that as a worker
entry and re-bundles the already-prebuilt worker.js from scratch, which desyncs
the absurd-sql/connection RPC so `init` throws a structured-clone error. It only
worked in dev and in the package's own e2e because both serve dist verbatim.

Make the browser build fully self-contained instead:

- Inline the worker into browser.js and spawn it from a Blob URL, so consumer
  bundlers never see a worker entry to re-bundle. The worker is built as an IIFE
  (classic worker), mirroring the web app's kcab.worker.
- Embed the sql.js wasm and the default filesystem data (migrations + default
  DB) into the worker so it performs no PUBLIC_URL asset fetches:
  - loot-core sqlite gains an opt-in `setWasmBinary` (dormant for web/node);
  - the worker installs a scoped fetch shim serving the embedded data/* files
    from a sentinel base URL.
- Share the asset-collection logic between the Node disk copy and the embedded
  build via scripts/embedded-assets.mjs so the two never drift.

Result: `import '@actual-app/api'` + `init()` works in any bundler with zero
config; only COOP/COEP headers remain required (SharedArrayBuffer).

Adds an e2e (e2e/consumer + e2e/global-setup.mjs) that builds a real consumer
app for production and boots it under COOP/COEP — coverage the verbatim-dist
harness can't provide. Docs note the build is self-contained and that
cross-origin isolation is still required.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: address review feedback (guard DOM lookup, revoke blob URL on worker failure)

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: address review nitpicks (drop BodyInit cast, reword release note)

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: build the browser worker via Vite ?worker&inline

Replace the hand-rolled worker inlining (a custom Vite plugin that read the
prebuilt worker.js off disk and inlined it as a string, plus a second build
config and a build-ordering dependency) with Vite's native `?worker&inline`
import. This collapses the two browser build configs into one, removes the
`virtual:actual-worker-code` module and the manual Blob URL spawn, and drops
the worker-before-facade build step.

Vite's `?worker&inline` sub-build doesn't receive vite-plugin-node-polyfills'
global-shim injection (the plugin writes it to `build.rollupOptions`, but the
worker sub-build reads `worker.rollupOptions`), so the worker crashed on
`process is not defined`. Patch the plugin to also emit the injection on
`worker.rollupOptions` — additive and backwards compatible (the web app build,
including loot-core's nodePolyfills worker, is unaffected).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: embed browser assets via Vite, drop the embedded-assets script

Replace scripts/embedded-assets.mjs with Vite-native asset imports in the
worker entry: `?inline` for the sql.js wasm and default DB, `import.meta.glob`
(`?raw`) for the migrations. The worker builds the default-filesystem wire
format from those at module load, so the embedded set comes straight from
loot-core and can't drift.

The Node build only needs migrations + the default DB on disk (it reads them at
runtime); the old script also wrote sql-wasm.wasm and the data/ fetch tree,
which are dead now that the browser worker is self-contained. Replace
writeEmbeddedAssetsToDist with a small closeBundle copy of just those two.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: simplify embedded data map; drop loot-core comment churn

Merge the worker's binData/textData into a single dataFiles map (Response
accepts both bytes and strings), collapsing the fetch shim's two lookups into
one. Revert the unrelated comment edits to loot-core's backend-worker.ts and
fs/index.ts.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] api: rename e2e consumer-dist to consumer/dist; drop a prose comment

Use the standard `dist` directory name for the consumer fixture's build output
(now e2e/consumer/dist), and remove the verbose comment from index.browser.ts.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] loot-core: own the default-filesystem assets; consumers stop reaching in

Add packages/loot-core/default-filesystem.mjs as the single source of truth for
loot-core's runtime assets (sql.js wasm, default DB, migrations) and the
data-file-index wire format, exported as @actual-app/core/default-filesystem.

- @actual-app/api: the browser worker embeds them via the actual-embedded-assets
  Vite plugin (which calls collectEmbeddedAssets), replacing the relative
  ?inline/?raw/import.meta.glob reaches into ../loot-core; the Node build copies
  migrations + default DB using the helper's paths. Drops the direct
  @jlongster/sql.js devDependency (loot-core resolves the wasm).
- @actual-app/web: stagePublicData copies from the helper's paths instead of
  hardcoding loot-core's tree and the sql.js wasm location.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* [AI] loot-core: scan migrations once when collecting embedded assets

collectEmbeddedAssets() read the migrations directory twice — once in its
own loop and once via buildDataFileIndex(). List the names once and pass
them through, keeping the index wire-format defined in a single place.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>

* Restore budget table scroll position when navigating back from spent transactions (#8144)

* feat: Restore budget table scroll position when navigating back from spent transactions page

* fix: Update transaction tests to include new categories and adjust assertions

* Add release notes for budget scroll position restoration

* refactor: Improve error handling when clicking on visible spent-amount cells, per suggestion from coderabbit bot

* refactor: revert changes to test budget, add separate scroll-test test budget

* revert previous snapshot changes

* Add gitignore pattern for personal devcontainer config

* fix: broken tests

* refactor: address coderabbitai feedback

https://github.com/actualbudget/actual/pull/8144#discussion_r3446850158

* fix: update VRT snapshots for onboarding screen

* [autofix.ci] apply automated fixes

* refactor: modify scrolling test to add categories to existing test budget instead of creating separate budget

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* [AI] Add design competition blog post for sidenav redesign (#8297)

* [AI] Add design competition blog post for sidenav redesign

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HbXFM9ooWVw9SRA9No7vhF

* [AI] Set design competition blog post publish date to 27th July 2026

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HbXFM9ooWVw9SRA9No7vhF

* [AI] Remove stray closing tags from design competition blog post

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HbXFM9ooWVw9SRA9No7vhF

* Update 2026-07-27-design-competition-sidenav.md

---------

Co-authored-by: Claude <[email protected]>

* Always show stacked bar graph tooltip label on hover (#8356)

* Always show stacked bar graph tooltip label on hover

* Handle edge case with maxToolTipItems+1 labels showing

* Replace last item label instead of adding new one

* Filter visible items on non zero values for consistency

* make SimpleFIN token 'forbidden' check more flexible (#8339)

* make SimpleFIN token 'forbidden' check more flexible

* clear accessKey when token is updated

* https -> fetch

* [AI] Add tests for SimpleFIN token claim fix

Cover the flexible 'Forbidden' matching, full claim-response handling, and access-key invalidation when the setup token changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

* note

* Update upcoming-release-notes/fix-simplefin-token-claim.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* coderabbit feedback

* [AI] Test SimpleFIN blank access key handling

Cover rejecting a blank claim response (not persisted) and re-claiming when an empty access key is cached.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: Matt Fiddaman <[email protected]>
Co-authored-by: tabedzki <[email protected]>
Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: youngcw <[email protected]>
Co-authored-by: Matt Farrell <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Dustin Brewer <[email protected]>
Co-authored-by: Matiss Janis Aboltins <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alec Bakholdin <[email protected]>
Co-authored-by: clintharris <[email protected]>
Co-authored-by: Darwin Do <[email protected]>

* fix: add scoped ErrorBoundaries to mobile budget, account, and transaction pages (#8336)

* fix: add scoped ErrorBoundaries to mobile budget, account and transaction pages

Wrap the mobile BudgetPage, AccountPage and TransactionEdit in
<ErrorBoundary FallbackComponent={FeatureErrorFallback}> so a rendering
error in one of these pages is contained instead of crashing the whole app.

Relates to #7391

* [autofix.ci] apply automated fixes

* fix(desktop-client): enclose mobile page hooks within scoped ErrorBoundary

The scoped ErrorBoundary added for the mobile budget, account, and
transaction-edit pages only wrapped the returned JSX, so errors thrown by
the pages' own hooks and initialization logic (data loading, useEffect)
still escaped to the global fatal screen, defeating the boundary.

Move each page's body into a child component rendered inside the boundary
so the boundary encloses the full hook/render path, and add resetKeys so
the feature recovers when the account (accountIdParam) or month
(startMonth) changes.

Addresses CodeRabbit review feedback on the mobile error-boundary PR.

* refactor(desktop-client): remove prose comments from mobile error boundaries

Drop the explanatory comments added with the scoped error boundaries on the
mobile account, budget, and transaction edit pages, per maintainer review
feedback. The code is self-explanatory without them; behavior is unchanged.

* refactor(desktop-client): move mobile error boundaries to the route level

Wrap the mobile budget, account, and transaction edit routes in FinancesApp
with the same ErrorBoundary/FeatureErrorFallback pattern already used for the
/rules routes, instead of splitting each page into a wrapper and inner
component. Each page renders as a child of the boundary, so its hooks and
initialization logic are still enclosed, and the page components are left
unchanged.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* add Zero Dark theme (#8396)

* Add Zero-Dark theme

* Update customThemeCatalog.json

* Create add-zero-dark-theme.md

* Check in mobile app scaffolding generated by Capacitor  (#8387)

* Check in app scaffolding generated by Capacitor

All files generated by `npx cap init` and `npx cap sync`.

* Add release notes

* Add package.json file

* Update capacitor

* Prune deps

* CodeRabbit feedback

* [AI] Add writing-release-notes skill (#8398)

* [AI] Add writing-release-notes skill

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015pA2AZaXmt8ebDNNYEdBDA

* [AI] Remove em-dashes from writing-release-notes skill

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015pA2AZaXmt8ebDNNYEdBDA

* [AI] Add release note for writing-release-notes skill

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_015pA2AZaXmt8ebDNNYEdBDA

---------

Co-authored-by: Claude <[email protected]>

* Change single quote to double quotes usage (#8402)

* prevent duplicate draft releases (#8381)

* prevent duplicate draft releases

* note

* recognise EUA expired GoCardless responses (#8383)

* recognise EUA expired GoCardless responses

* note

* add test

* Bank Sync Provider per budget file [2/3] - Sync server - Pluggy.ai use per-budget credentials when available (#8317)

* PR for pluggy ai wiring per file budget ni pluggy

* Fixes from rebase

* Code rabbit code review

* [autofix.ci] apply automated fixes

* added md

* Restoring client cache

* code review

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* [AI] Add api.getPreferences() for reading synced preferences (#8410)

* [AI] Add api.getPreferences() for reading synced preferences

Expose the internal 'preferences/get' handler as a public API method so
consumers can read the budget's synced preferences (number format,
currency, date format, etc.) without calling internal handlers directly.
Re-export the SyncedPrefs type from @actual-app/api/models and document
the new method in the API reference.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KxwSQJiPo5mEk79mA54TWg

* Update models.ts

---------

Co-authored-by: Claude <[email protected]>

* Improve crossover reloads (#8352)

* fix: Preserve crossover report view during refresh

* fix: Preserve crossover report view during refresh

---------

Co-authored-by: youngcw <[email protected]>

* [AI] Add api.importBudget() and api.exportBudget() (#8414)

* [AI] Add api.importBudget() and api.exportBudget()

Add first-class import/export functions to @actual-app/api so consumers
no longer have to drive the low-level worker RPC and the engine
filesystem by hand.

- api.importBudget(pathOrBytes, { type?, filename? }) imports an Actual
  .zip export (or a YNAB4/YNAB5 export), loads it, and resolves with the
  imported budget id. Raw bytes are passed straight to the import-budget
  handler instead of the upload-file-web temp-file dance, so it works in
  both the Node and browser builds and leaves no temp files behind.
- api.exportBudget() exports the currently-loaded budget and resolves
  with the zip contents as a Uint8Array.
- Both reject with an Error on failure instead of resolving { error }.
- The import-budget handler now optionally accepts raw file contents
  (buffer + filename) alongside the existing filepath input, and returns
  the id of the loaded budget on success; existing callers are
  unaffected.
- Add round-trip, file-path, and failure integration tests; update the
  API reference docs.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014wq2oMcHb99mLb9qpaR8SN

* [AI] Move ImportableBudgetType re-export to models.ts

Type re-exports for API consumers live in models.ts (like Preferences),
not methods.ts — follow the existing pattern.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014wq2oMcHb99mLb9qpaR8SN

* [AI] Address review: relax error assertions, document type union

- Assert importBudget failures on the stable "Error importing budget:"
  prefix instead of backend-specific error codes
- Document options.type as the 'actual' | 'ynab4' | 'ynab5' union in the
  API reference instead of a generic string

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014wq2oMcHb99mLb9qpaR8SN

---------

Co-authored-by: Claude <[email protected]>

* [AI] feat(budget analysis report): export csv feature (#8163)

* [AI] feat(budget-report): add CSV export for budget analysis report

Add an 'Export CSV' button that downloads a CSV file containing Month,
Budgeted, Spent, Overspending Adjustment, and Balance columns for the
currently displayed date range.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] feat(budget-report): replace CSV export button with download icon

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] refactor(csv-export): centralize CSV utility to loot-core with formula injection protection

Extracts CSV field escaping and row building into a shared
loot-core/shared/csv.ts module so desktop-client and cli packages can
reuse it without duplication. Adds single-quote prefix guard against
spreadsheet formula injection for values starting with =, +, -, @, tab,
or carriage-return.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* [AI] fix(csv-export): fix loot-core import path and remove over-broad formula injection protection for negative numbers

* fix: added in release note

* Update packages/desktop-client/src/components/reports/reports/BudgetAnalysis.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update BudgetAnalysis.tsx

removed extra </Tooltip> introduced by coderabbitai

* fix: applied coderabbitai's suggestions for this PR

* [autofix.ci] apply automated fixes

* [AI] fix: resolve typecheck errors and test failures in csv export

- Make labels param optional with English defaults in buildBudgetAnalysisCsv
- Pass translated labels from BudgetAnalysis component call site
- Fix escapeCsvField: remove tab from quote-wrapping check (formula prefix handles it)

Assisted-by: ClaudeCode:claude-sonnet-4-6

* [AI] refactor(budget-analysis-export): use csv-stringify, move labels inside buildBudgetAnalysisCsv

- Replace custom buildCsv with csv-stringify/sync (already used in loot-core)
- Move translated column labels inside buildBudgetAnalysisCsv; callers no longer pass labels
- Pass numbers directly to csv-stringify instead of converting with toFixed(2)
- Add csv-stringify to desktop-client package.json deps
- Fix release notes title to user-facing prose

Assisted-by: ClaudeCode:claude-sonnet-4-6

* [AI] fix: remove orphaned csv.ts, fix release note wording

- Delete loot-core/src/shared/csv.ts and csv.test.ts (orphaned after switch to csv-stringify)
- Remove [AI] prefix from release note body (commit-style prefix inappropriate in release note content)

Assisted-by: ClaudeCode:claude-sonnet-4-6

* [AI] fix: add csv-stringify to yarn.lock to fix immutable install

The rebase onto main reset yarn.lock without the csv-stringify entry under the @actual-app/web workspace, while package.json still declared it. CI runs yarn install --immutable, which refused to reconcile the mismatch and failed the build.

Assisted-by: ClaudeCode:claude-opus-4.8

* attempt to resolve the hanging error

* [AI] fix: restore Tooltip import dropped during rebase

Resolving the import-collision conflict against master accidentally dropped
the Tooltip import used by the CSV export button. Restore it.

Assisted-by: ClaudeCode:claude-opus-4.8

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* [AI] Fix mobile swipe-to-delete broken by React Aria Button stopping pointerdown propagation (#8421)

The a11y commit (65dee4c) replaced the plain div with a React Aria Button
in ActionableGridListItem. React Aria's usePress unconditionally calls
stopPropagation() on pointerdown, preventing the event from reaching the
parent animated.div where useDrag listens. Adding onPressStart with
continuePropagation() lets the event bubble through so the swipe gesture works.

Co-authored-by: Claude Sonnet 4.6 <[email protected]>

* custom report clickthrough for category groups (#8391)

* hide focus styling

* allow clickthrough to group filters

* note

* [AI] Skip unused transfer payees in nYNAB import (#8424)

* [AI] fix(ynab-import): skip literal transfer payees in nYNAB import

YNAB auto-generates a 'Transfer : <Account Name>' payee for every
account-to-account link. Actual already has its own account-transfer
payee per account and transactions resolve to that instead, so the
literal-text payee was being created but never used, just cluttering
the Payees list after import.

* [AI] test(ynab-import): cover transfer-payee resolution in importTransactions

Regression test proving a transfer transaction resolves to the real
Actual account-transfer payee via transfer_account_id, and never
needs an entityIdMap entry for the (now-skipped) YNAB transfer payee.

* [AI] docs: add release note for skipping ynab transfer payees

* 🐛 Prevent Pluggy bank sync from repeatedly rewriting transactions (#8392)

* Prevent Pluggy bank sync from repeatedly rewriting uncategorized and transfer transactions

* Regression test

* Changed solution for the fix

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* ✨ Adding visual improvements to excel formulas (#8245)

* Adding visual improvements to excel formulas

* cursor aware fix

* code clean up

* small fix

* md

* bug fix

* bug fix

* code rabbit code review

* Code review

* code rabbit code review

* Bug fix when AST tree is invalid

* code rabbit code review

---------

Co-authored-by: youngcw <[email protected]>

* added dracula and alucard themes (#8447)

* chore(api): migrate node version validation to TypeScript (#8461)

* chore(api): migrate node version validation to TypeScript

* [autofix.ci] apply automated fixes

* docs: add release note for API TypeScript migration

* Update upcoming-release-notes/wip-chore-api-migrate-node-version-validation-to-typescript.md

Co-authored-by: Matiss Janis Aboltins <[email protected]>

* Update upcoming-release-notes/wip-chore-api-migrate-node-version-validation-to-typescript.md

Co-authored-by: Matiss Janis Aboltins <[email protected]>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Matiss Janis Aboltins <[email protected]>

* Disable the shared worker on Android (same as is done for iOS already) (#8457)

* Revert "Reload when PWA shared worker is killed by Android (#8322)"

This reverts commit 62ced9aa2beafe5d806320e03f9741d74292fcd0.

* Disable shared worker in PWA on Android

* 🐛 Theme fetch cache bursting (#8448)

* cache bursting

* retrigger actions

* [AI] Remove grouped option from api/categories-get (#8415)

The categories-get API now always returns a flat list of categories.
Use category-groups-get for grouped data instead.

* [AI] Run agent hooks and skills in Codex-based harnesses (ChatGPT desktop app) (#8462)

* [AI] Run agent hooks and skills in Codex-based harnesses (ChatGPT desktop app)

The ChatGPT desktop app (and Codex CLI/IDE) never picked up the repo's
agent skills or lifecycle hooks:

- Skills: Codex surfaces scan .agents/skills, not .claude/skills. Add a
  symlink mirror so both harness families load the same skill files.
- Hooks: Codex lifecycle hooks are feature-flagged; enable them in the
  project .codex/config.toml and document the trust steps (project
  .codex layer trust + one-time /hooks trust) required for them to run.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FMdDFdaErx9dqieTGh8ETg

* [AI] Drop .agents/skills/README.md; document the mirror in AGENTS.md instead

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FMdDFdaErx9dqieTGh8ETg

* [AI] Ignore .agents/** in knip like .claude/**

The .agents/skills symlink mirror exposes skill reference files under a
path knip scanned, flagging highlight-element.js as an unused file.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FMdDFdaErx9dqieTGh8ETg

---------

Co-authored-by: Claude <[email protected]>

* [AI] Enable React Compiler for all monorepo packages with React code (#8463)

* [AI] Enable React Compiler for all monorepo packages with React code

The compiler was previously scoped to desktop-client/src only. Now:
- desktop-client's Vite build also compiles component-library source
  (consumed as raw source through the same build), covering web,
  desktop, and mobile bundles
- component-library's Storybook and Vitest pipelines apply the compiler
  so they exercise the same compiled output
- docs (Docusaurus) enables babel-plugin-react-compiler for the site's
  own React components

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PdcKq244khwKhedvLCwu7p

* [AI] Declare npm-run-all in component-library so its test script resolves

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PdcKq244khwKhedvLCwu7p

* [AI] Generalize React Compiler include to any workspace package source

Match packages/<name>/src instead of enumerating package names, so a
future workspace library with React components is compiled automatically.
Third-party code stays out via the babel plugin's default node_modules
exclude, which applies alongside a custom include.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PdcKq244khwKhedvLCwu7p

* [AI] Inline component-library test script instead of using npm-run-all

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PdcKq244khwKhedvLCwu7p

* [AI] Drop React Compiler from docs

The docs site is static content with a handful of simple components, so
auto-memoization buys nothing there, and an unscoped babel plugin would
also process Docusaurus theme code and every MDX page. Reverting keeps
the compiler where it pays off: desktop-client and component-library.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PdcKq244khwKhedvLCwu7p

---------

Co-authored-by: Claude <[email protected]>

* fix split transaction error popover from being shrunk vertically (#8479)

* prevent TransactionError from having max-height:0 applied

* note

* [AI] Add tooltips to titlebar theme, privacy, and server status icons (#8440)

* [AI] Add tooltips to titlebar theme, privacy, and server status icons

Explain what the theme switcher, amount-visibility toggle, and server sync/status indicators do on hover, including what having a server connected means when none is configured yet.

Assisted-by: ClaudeCode:claude-sonnet-5

* [AI] Merge duplicate server status branching in LoggedInUser

Combine serverMessage() and serverTooltip() into a single getServerStatus() resolver so the button label and tooltip stay in sync as server states change.

Assisted-by: ClaudeCode:claude-sonnet-5

* Add in requested line break

* [AI] Add running-vrts skill for visual regression testing (#8477)

* [AI] Add running-vrts skill for visual regression testing

Documents how VRTs work in this repo (toMatchThemeScreenshots matcher,
three-theme snapshots, data-vrt-mask, strict diff tolerance), the
docker-based snapshot generation workflow, and the /update-vrt CI
fallback.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AZAw7AR6LMHTGss1BtnBDT

* [AI] Add codex skill symlink for running-vrts

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AZAw7AR6LMHTGss1BtnBDT

* [AI] Add release note for running-vrts skill

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AZAw7AR6LMHTGss1BtnBDT

---------

Co-authored-by: Claude <[email protected]>

* 🔒 reconciliation on mobile (#8384)

* extract shared logic

* entry point for mobile reconciliation

* mobile reconciliation

* note

* e2e tests

* generalise tests more

* allow reconciling closed accounts

* try to stop VRT updating

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8384

* drop line break in reconciling banner

* move reconciled/cleared icon to right side and shrink

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8384

* fix icon spacing

* fix layout shift

* Update VRT screenshots

Auto-generated by VRT workflow

PR: #8384

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* [AI] api: attach stable error codes that survive the worker boundary (#8437)

* [AI] Attach stable error codes that survive the worker boundary

Rejections from the backend worker reached consumers as an English
message only: the machine-readable reason was stripped when the error
was serialized for postMessage, so API consumers had to regex the prose
to categorize failures.

- Serialize rejected handler errors through a shared helper that lifts
  the reason slug onto a `code` field (plus `name`) on the envelope, so
  it survives the worker/utility-process boundary. `message` is
  unchanged, so the change is purely additive.
- Tag the common connect failures with codes at their throw sites:
  init auth failures (network-failure, invalid-password, token-expired)
  and api/download-budget, api/load-budget, api/sync, api/bank-sync
  (budget-not-found, missing-key, decrypt-failure, ...).
- Harden the error post: if the original error holds a non-cloneable
  value (e.g. an Emscripten ErrnoError carrying methods), postMessage
  used to throw a DataCloneError in the worker and that clone failure
  replaced the real error. Retry with a plain cloneable shape instead.
- Add an integration test driving the real web client/server connection
  pair across a structured-clone channel, document the codes in the API
  reference, and add a release note.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AG6f77cRxhwPFjsNpQRmYo

* [AI] Remove worker-boundary connection integration test

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AG6f77cRxhwPFjsNpQRmYo

* [AI] Remove prose comment from connection error helpers

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AG6f77cRxhwPFjsNpQRmYo

* [AI] Simplify worker-boundary error posting

- Hoist the three-way reply-envelope dispatch out of the two platform
  connection files into a single postErrorReply helper, so the envelope
  rules and the DataCloneError fallback live in one place.
- Return APIError envelopes from coerceError unchanged, and drop the
  unreachable fallbacks and unused meta field from the cloneable shape.
- Let withErrorCode accept an undefined code, removing the one-off
  ternary at the bank-sync throw site.
- Declare the client-side connection error shape once as
  ConnectionError instead of twice inline.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AG6f77cRxhwPFjsNpQRmYo

* [AI] Address review feedback on error-code contract wording and types

- Docs and release note: scope the stable-code promise to the common
  documented failures, and say errors "usually" carry a message.
- ConnectionError: model APIError (message required) and ServerError
  (message may be absent) as separate variants to match the wire shape,
  and adapt the sendCatch consumers in SavedFilterMenuButton.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AG6f77cRxhwPFjsNpQRmYo

---------

Co-authored-by: Claude <[email protected]>

* [AI] migrations: enforce append-only migration files in CI (#8446)

* [AI] Enforce append-only migration files in CI

Shipped migrations are append-only: existing installs never re-run
them, so editing one silently forks the database schema across the user
base, and deleting one breaks the migration check for every existing
budget file. The CI migration check now diffs blob hashes against the
merge base to reject edits/deletions, keeps the existing
timestamp-ordering rule, emits advisory PR annotations for migrations
containing DROP/RENAME statements, and fails loudly when git commands
fail instead of passing on empty output.

First of a series that makes clients on different app versions sync
safely against the same budget file.

Co-Authored-By: Claude Fable 5 <[email protected]>

* [AI] Derive the newest upstream migration id with an explicit max

The ls-tree listing is alphabetical, so taking the last entry only
worked while every migration id has the same digit count.

Co-Authored-By: Claude Fable 5 <[email protected]>

* [AI] Post advisory migration warnings as a PR comment

The risky-SQL warnings were only visible as job annotations, and since
the job passes there was no prompt to look at them. The migrations job
now uploads its findings as an artifact, and a new workflow_run workflow
(trusted base-repo context, so it also works for fork PRs whose tokens
are read-only) validates the artifact against a fixed allowlist and
posts/updates a PR comment — removing it again once the warnings are
resolved.

Co-Authored-By: Claude Fable 5 <[email protected]>

* [AI] Align overview numbering with the inline check comments

---------

Co-authored-by: Claude Fable 5 <[email protected]>

* [AI] Refresh running balances after transaction edits (#8490)

Co-authored-by: tianrking <[email protected]>

* [AI] fix(loot-core): replace adm-zip with fflate for zip handling (#8393)

* [AI] fix(loot-core): replace adm-zip with fflate for zip handling

Replaces the adm-zip dependency (which requires Node's `process`/`Buffer`
and can break in browser bundle contexts) with fflate, a zero-dependency,
isomorphic zip library that works identically in node and browser builds.

Adds a small `zip-utils.ts` wrapper (`safeZip`/`safeUnzip`) around fflate
to preserve the safety guarantees a hardened zip library provides by
default, since all three call sites parse zips that may cross a trust
boundary (cloud sync downloads, user-supplied budget/import files):

- Rejects zip-slip/path-traversal entry names (absolute paths, `..`
  segments, backslashes, drive letters, NUL bytes).
- Caps total archive size and per-entry uncompressed size, enforced via
  fflate's `filter` callback before it allocates the decompression buffer
  for each entry, to guard against decompression bombs.
- Rejects duplicate/case-variant entry names to avoid ambiguity attacks.

Updated call sites: budgetfiles/backups.ts (local backup zip write/read),
cloud-storage.ts (cloud sync export/import), importers/ynab4.ts (YNAB4
budget import).

* [AI] test(desktop-client): drop export/import perf e2e test

Removes packages/desktop-client/e2e/export-import-performance.test.ts,
added in an earlier commit to benchmark adm-zip vs fflate. Per review
feedback (matt-fidd): this zip-handling logic changes rarely, and a
future library swap would warrant its own fresh benchmarking rather
than maintaining a ~300 line permanent regression test for it.

The benchmark numbers already recorded in the PR description remain
accurate for this change.

* [AI] fix(loot-core): distinguish oversized-zip errors from generic parse failures

cloud-storage.ts's importBuffer (shared by both cloud-sync download and the
local "Import my budget -> Actual" file picker) caught every safeUnzip
failure the same way and threw FileDownloadError('not-zip-file'). Since
safeZip has no size limit but safeUnzip enforces one by default, a
self-generated export that grows past that cap (e.g. a large db.sqlite)
would fail to re-import with a misleading "this isn't a zip file" message,
even though the file is perfectly valid, just larger than the cap.

Catches UnsafeZipError separately and surfaces a new 'zip-too-large' reason,
with matching UI messages in both places that already handle
not-zip-file/invalid-zip-file/invalid-meta-file (loot-core's shared error
mapper and desktop-client's local import modal), reusing the same support-
link phrasing already used for invalid files.

* [AI] fix(loot-core): stop faking runtime config for zip upload size limit

Vite bakes process.env.ACTUAL_UPLOAD_FILE_SIZE_LIMIT_MB into the client
bundle at build time, so it was never actually runtime-configurable in
the browser build despite looking like sync-server's real env var.
Drop the env indirection and hardcode a fixed 20MB entry cap / 60MB
archive cap instead.

* [AI] fix(loot-core): tighten zip entry-name matching in importBuffer

* [AI] feat(loot-core): raise zip size limits to 500MB, warn on oversized/low-memory exports

Matt-fidd's review on #8393 argued 20MB was too tight for real budgets and
asked for (1) a more generous cap, (2) a warning when a backup is created
that won't be re-importable, and (3) test coverage for zip.ts's safety
checks (path traversal, size limits, duplicate entries, unsafe names,
round-trip). Later review passes asked to trim the verbose comments in
zip.ts and to use <Trans> instead of t() for the new warning strings.

- Collapse the three separate default caps into one MAX_ZIP_SIZE (500MB),
  since archive size, per-entry size, and total uncompressed size all
  shared the same value anyway. safeUnzip can run outside the browser
  (Electron, or Node via @actual-app/api) where the whole archive is held
  in memory at once, and some self-hosting providers (PikaPods) run
  containers with as little as 256MB RAM, so the cap stays flat rather
  than compounding into a multi-GB worst case.
- Add exceedsSafeUnzipLimits() to zip.ts so exportBuffer() can warn
  upfront, using the same cap import enforces, instead of drifting.
- Add #platform/server/memory (default/api/electron) exposing
  os.freemem() on node/electron and null in the browser, per the existing
  platform-conditional-export pattern. exportBuffer() warns if the
  uncompressed db.sqlite is bigger than currently-free memory; skipped
  entirely when the platform has no such API.
- Surface both warnings in the Export settings screen via <Trans>.
- Add zip.test.ts covering round trip, path traversal, unsafe names,
  duplicate entries, and all three size caps.
- Trim zip.ts's file-header comment per review feedback that it was too
  verbose to be useful.

* [AI] feat: surface descriptive, translatable errors for unsafe zip imports

UnsafeZipError now carries structured meta (zipReason + entryName/maxSize)
instead of only a free-text English message. The meta rides on
FileDownloadError('zip-too-large', ...) through the download and import-budget
paths, and the desktop-client maps it to detailed, translated messages
(which file, which limit) in getUnsafeZipError(); loot-core's shared
getDownloadError() gets a plain-English equivalent for the headless API.

Why structured meta rather than translating the message itself: i18n must not
live in loot-core (see platform/client/connection/index.ts) - the backend
worker has no i18next instance and doesn't know the user's locale, and a
message translated at throw time would bake a locale into a string that also
feeds the headless @actual-app/api and server logs, which want stable English.
i18next also needs a static key plus interpolation params to extract and look
up translations, so the error must cross the worker boundary as code + params
(zipReason + entryName/maxSize) and be rendered with t() at display time in
the client. The English Error.message is kept for logs and the API.

* Update release note to include safe wrappers

* [AI] fix(loot-core): require db.sqlite and metadata.json from the same archive directory

importBuffer previously located db.sqlite and metadata.json independently,
so an archive with a/db.sqlite and b/metadata.json would pair unrelated
files, and duplicate matches were resolved by archive order. Now prefer the
root-level pair; otherwise both files must come from exactly one shared
directory, and anything ambiguous is rejected as invalid-zip-file.

* [AI] fix(loot-core): restrict safeZip to flat entries so every name is validated

safeZip only ran assertSafeEntryName on top-level keys, but fflate's
Zippable type permits nested directory objects whose child names would
reach zipSync unvalidated. Both callers pass flat records, so narrow the
parameter to Record<string, Uint8Array> and let the compiler rule out
nested input.

* [AI] api: support custom dataDir (#8397)

* [AI] Support custom dataDir in API browser build and stop masking worker errors

Two fixes for the browser build of @actual-app/api:

1. A dataDir other than /documents failed with a cryptic DataCloneError:
   the directory didn't exist in the worker's virtual filesystem, and the
   resulting Emscripten ErrnoError (which carries a function-valued
   property) couldn't be structured-cloned, so postMessage's own
   DataCloneError replaced the real error entirely.

   The web worker connection now retries a failed postMessage with a
   serialized, cloneable copy of the message so the client always receives
   the actual failure. Cloneable errors pass through unchanged.

2. The web filesystem registers the configured document dir as a persisted
   root: it is created automatically on init, its files are persisted to
   IndexedDB (sqlite files symlinked into the blocked fs), and files
   recorded in IndexedDB are restored at boot regardless of prefix. The
   API browser worker defaults dataDir to /documents when omitted.

Co-Authored-By: Claude Fable 5 <[email protected]>

* [AI] Trim trailing sla…
RafaelEspino pushed a commit to RafaelEspino/actual that referenced this pull request Oct 28, 2026
* extract shared logic

* entry point for mobile reconciliation

* mobile reconciliation

* note

* e2e tests

* generalise tests more

* allow reconciling closed accounts

* try to stop VRT updating

* Update VRT screenshots

Auto-generated by VRT workflow

PR: actualbudget#8384

* drop line break in reconciling banner

* move reconciled/cleared icon to right side and shrink

* Update VRT screenshots

Auto-generated by VRT workflow

PR: actualbudget#8384

* fix icon spacing

* fix layout shift

* Update VRT screenshots

Auto-generated by VRT workflow

PR: actualbudget#8384

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

6 participants