Repository navigation
Conversation
All files generated by `npx cap init` and `npx cap sync`.
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hello contributor! We would love to review your PR! Before we can do that, please make sure:
A quick note on volume: please get one PR reviewed and merged before opening several more. A stack of simultaneous, similar PRs from one author is reviewed slowly, and low-effort, untested, or undisclosed-AI PRs may be closed without a detailed review. We do this to reduce the TOIL the core contributor team has to go through for each PR and to allow for speedy reviews and merges. For more information, please see our Contributing Guide. |
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (2)
packages/mobile-client/android/app/src/main/res/xml/file_paths.xml (1)
1-5: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick winOverly broad FileProvider paths (
path=".").Both
external-pathandcache-pathexpose the entire external storage root and cache directory via the app'sFileProvider, which is combined withgrantUriPermissions="true"in the manifest. Android's own security guidance recommends avoiding this pattern and scoping shared directories to specific subfolders instead.🔒 Suggested narrower scoping
<paths xmlns:android="http://schemas.android.com/apk/res/android"> - <external-path name="my_images" path="." /> - <cache-path name="my_cache_images" path="." /> + <external-path name="my_images" path="Pictures/" /> + <cache-path name="my_cache_images" path="capacitor/" /> </paths>Confirm what the app actually stores/shares through this provider (e.g. camera captures, downloads) so paths can be scoped appropriately instead of the whole root.
🤖 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/mobile-client/android/app/src/main/res/xml/file_paths.xml` around lines 1 - 5, The FileProvider configuration in file_paths.xml is too broad because file_paths.xml uses external-path and cache-path with path=".", exposing entire storage roots. Update these shared-path entries to the narrowest subdirectories actually used by the app, and keep the definitions aligned with how the provider is referenced in the app and manifest. Verify what content is shared through FileProvider and scope the paths accordingly instead of granting access to the full external and cache directories.packages/mobile-client/android/app/src/main/AndroidManifest.xml (1)
27-35: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick winConsider scoping the FileProvider paths.
The referenced
file_paths.xmlgrantsexternal-path/cache-pathwithpath=".", exposing the entire external storage root and cache directory to shared content URIs. This is Capacitor's default; consider narrowing to specific subdirectories once file-sharing is actually needed, to limit what's exposed viagrantUriPermissions.🤖 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/mobile-client/android/app/src/main/AndroidManifest.xml` around lines 27 - 35, The FileProvider setup in AndroidManifest.xml is using overly broad paths from file_paths.xml, exposing too much of external storage and cache through the FileProvider. Update the FileProvider configuration referenced by android:name="androidx.core.content.FileProvider" and the `@xml/file_paths` resource to scope sharing to only the specific subdirectories needed for Capacitor file sharing, rather than keeping the default root-wide external-path and cache-path entries.
🤖 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/mobile-client/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java`:
- Around line 19-25: The instrumented test is asserting the wrong application
package name, so update the expected value in
ExampleInstrumentedTest.useAppContext() to match the app’s actual ID returned by
appContext.getPackageName(). Keep the test logic the same, but replace the
hardcoded com.getcapacitor.app assertion with the correct org.actualbudget
package name so the check aligns with the app configuration.
In `@packages/mobile-client/android/gradlew.bat`:
- Line 1: The Android Windows wrapper script is still being normalized as
text/auto instead of forcing CRLF, so update the repository attributes to add an
explicit rule for gradlew.bat. Modify the existing .gitattributes entry set so
packages/mobile-client/android/gradlew.bat is declared with text eol=crlf,
keeping the Windows wrapper checked out with CRLF while leaving the rest of the
Git attributes unchanged.
In `@packages/mobile-client/package.json`:
- Around line 11-12: The mobile-client build flow is missing the prerequisite
desktop-client bundle output, so a clean `yarn build` can fail when
`build:bundle` runs. Update the `build`/`build:bundle` scripts in `package.json`
so the `create-bundle` step is preceded by whatever task produces
`packages/desktop-client/build`, or make that dependency explicit in the script
chain. Use the existing script names `build`, `build:bundle`, and
`./bin/create-bundle` to keep the flow self-contained.
---
Nitpick comments:
In `@packages/mobile-client/android/app/src/main/AndroidManifest.xml`:
- Around line 27-35: The FileProvider setup in AndroidManifest.xml is using
overly broad paths from file_paths.xml, exposing too much of external storage
and cache through the FileProvider. Update the FileProvider configuration
referenced by android:name="androidx.core.content.FileProvider" and the
`@xml/file_paths` resource to scope sharing to only the specific subdirectories
needed for Capacitor file sharing, rather than keeping the default root-wide
external-path and cache-path entries.
In `@packages/mobile-client/android/app/src/main/res/xml/file_paths.xml`:
- Around line 1-5: The FileProvider configuration in file_paths.xml is too broad
because file_paths.xml uses external-path and cache-path with path=".", exposing
entire storage roots. Update these shared-path entries to the narrowest
subdirectories actually used by the app, and keep the definitions aligned with
how the provider is referenced in the app and manifest. Verify what content is
shared through FileProvider and scope the paths accordingly instead of granting
access to the full external and cache directories.
🪄 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: 05566016-7c7a-4f2b-9cf1-5c716721300e
⛔ Files ignored due to path filters (33)
packages/mobile-client/android/app/src/main/res/drawable-land-hdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-land-mdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-land-xhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-land-xxhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-land-xxxhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-port-hdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-port-mdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-port-xhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-port-xxhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable-port-xxxhdpi/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/drawable/splash.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.pngis excluded by!**/*.pngpackages/mobile-client/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.pngis excluded by!**/*.pngpackages/mobile-client/android/gradle/wrapper/gradle-wrapper.jaris excluded by!**/*.jarpackages/mobile-client/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected]is excluded by!**/*.pngpackages/mobile-client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.pngis excluded by!**/*.pngpackages/mobile-client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.pngis excluded by!**/*.pngpackages/mobile-client/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.pngis excluded by!**/*.pngpackages/mobile-client/ios/App/Podfile.lockis excluded by!**/*.lockyarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (43)
packages/mobile-client/android/.gitignorepackages/mobile-client/android/app/.gitignorepackages/mobile-client/android/app/build.gradlepackages/mobile-client/android/app/capacitor.build.gradlepackages/mobile-client/android/app/proguard-rules.propackages/mobile-client/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.javapackages/mobile-client/android/app/src/main/AndroidManifest.xmlpackages/mobile-client/android/app/src/main/java/org/actualbudget/MainActivity.javapackages/mobile-client/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xmlpackages/mobile-client/android/app/src/main/res/drawable/ic_launcher_background.xmlpackages/mobile-client/android/app/src/main/res/layout/activity_main.xmlpackages/mobile-client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xmlpackages/mobile-client/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xmlpackages/mobile-client/android/app/src/main/res/values/ic_launcher_background.xmlpackages/mobile-client/android/app/src/main/res/values/strings.xmlpackages/mobile-client/android/app/src/main/res/values/styles.xmlpackages/mobile-client/android/app/src/main/res/xml/file_paths.xmlpackages/mobile-client/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.javapackages/mobile-client/android/build.gradlepackages/mobile-client/android/capacitor.settings.gradlepackages/mobile-client/android/gradle.propertiespackages/mobile-client/android/gradle/wrapper/gradle-wrapper.propertiespackages/mobile-client/android/gradlewpackages/mobile-client/android/gradlew.batpackages/mobile-client/android/settings.gradlepackages/mobile-client/android/variables.gradlepackages/mobile-client/bin/create-bundlepackages/mobile-client/capacitor.config.tspackages/mobile-client/ios/.gitignorepackages/mobile-client/ios/App/App.xcodeproj/project.pbxprojpackages/mobile-client/ios/App/App.xcworkspace/contents.xcworkspacedatapackages/mobile-client/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plistpackages/mobile-client/ios/App/App/AppDelegate.swiftpackages/mobile-client/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.jsonpackages/mobile-client/ios/App/App/Assets.xcassets/Contents.jsonpackages/mobile-client/ios/App/App/Assets.xcassets/Splash.imageset/Contents.jsonpackages/mobile-client/ios/App/App/Base.lproj/LaunchScreen.storyboardpackages/mobile-client/ios/App/App/Base.lproj/Main.storyboardpackages/mobile-client/ios/App/App/Info.plistpackages/mobile-client/ios/App/Podfilepackages/mobile-client/package.jsontsconfig.jsonupcoming-release-notes/mobile-app-foundations.md
matt-fidd
left a comment
There was a problem hiding this comment.
I'm not too sure on a lot of this but that's because I don't actually understand what it is. Is this just boilerplate from Capacitor with some of our stuff in configs? If so, then I'm reasonably happy but I'll try to check it out and test later on today
| "ignoreDependencies": [ | ||
| "@capacitor/splash-screen", | ||
| "@capgo/capacitor-updater", | ||
| "@capgo/cli" | ||
| ] |
There was a problem hiding this comment.
Unfortunately yes, I couldn't figure out a way for it to detect them as used. Since technically they're not used in any JS project
Shoot, sorry! Was working on this last night and forgot to make it human reviewable. So everything in the first commit (and the "Update capacitor" commit) is generated by capacitor via The remaining commits are things I had to do to satisfy CI. |
* 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…
…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

master → (this PR) → #8388 → …
Bundle Stats
View detailed bundle stats
desktop-client
Total
Changeset
locale/en.jsonView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
Smaller
No assets were smaller
Unchanged
loot-core
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
api
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged
cli
Total
Changeset
node_modules/strip-ansi/index.jsView detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
Unchanged
No assets were unchanged
crdt
Total
View detailed bundle breakdown
Added
No assets were added
Removed
No assets were removed
Bigger
No assets were bigger
Smaller
No assets were smaller
Unchanged