Skip to content

💾 Changing approach to toggling OPFS - #9540

Merged
MikesGlitch merged 1 commit into
actualbudget:masterfrom
MikesGlitch:feat/sqlite-wasm-storage-setting
Nov 13, 2026
Merged

MikesGlitch merged 1 commit into
actualbudget:masterfrom
MikesGlitch:feat/sqlite-wasm-storage-setting

Conversation

@MikesGlitch

@MikesGlitch MikesGlitch commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Description

The new OPFS persistence could only be turned on by adding ?storage=opfs to the address, and its setting stayed hidden until you had done that. This shows the setting in Experimental settings for everyone on the web app. I opted for this approach because it seems stable, and even though it's not a budget setting it seems like the only way I'll be able to get people to test it.

Related issue(s)

Testing

image

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

@netlify

netlify Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget ready!

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

@netlify

netlify Bot commented Nov 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget-storybook ready!

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

@netlify

netlify Bot commented Nov 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for actualbudget-website ready!

Name Link
🔨 Latest commit dd787f8
🔍 Latest deploy log https://app.netlify.com/projects/actualbudget-website/deploys/6af6f5fbcd6270347c8223d7
😎 Deploy Preview https://deploy-preview-9540.www.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.

@MikesGlitch
MikesGlitch marked this pull request as ready for review November 13, 2026 11:46
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The browser storage setting is now shown in Experimental settings for web apps without a separate visibility flag. The migration test, troubleshooting guidance, and release note reflect the setting-based flow.

Changes: Browser storage setting

Layer / File(s) Summary
Remove the separate visibility flag
packages/loot-core/src/platform/client/browser-preload/storage-backend.ts, packages/loot-core/src/platform/client/browser-preload/index.ts, packages/loot-core/src/platform/client/browser-preload/storage-backend.test.ts
Remove STORAGE_PREFS_KEY and the URL-triggered write that set it. Backend selection from a valid URL parameter remains.
Expose and document the setting
packages/desktop-client/src/components/settings/Experimental.tsx, packages/desktop-client/src/components/settings/StorageBackendToggle.tsx, packages/desktop-client/e2e/storage.test.ts, packages/docs/docs/troubleshooting/browser-storage.md, upcoming-release-notes/show-storage-engine-setting.md
Show storage preferences in non-Electron apps. Update the toggle comment, migration test, troubleshooting instructions, and release note to describe the setting.

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

Change: Feature

Suggested labels: documentation

Merge Risk: Minimal · up to dd787

The browser storage setting now appears in Experimental settings for all web users, and the docs and tests match. No merge-blocking risk is evident from the reviewed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: the approach to toggling OPFS is changed. The diff removes the URL-flag gate (?storage=opfs) and the STORAGE_PREFS_KEY visibility flag, and shows the browser storage en…
Description check Passed The description explains the change. The old OPFS persistence needed ?storage=opfs in the address, and the setting stayed hidden until then. The author states the setting now appears in Experimental…
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.
Full details: Title check

Explanation

The title names the change: the approach to toggling OPFS is changed. The diff removes the URL-flag gate (?storage=opfs) and the STORAGE_PREFS_KEY visibility flag, and shows the browser storage engine setting in Experimental settings for all web users. The title is partially specific: it says the approach changed but not what the new approach is. It also uses an emoji, which the title guidance discourages.

Full details: Description check

Explanation

The description explains the change. The old OPFS persistence needed ?storage=opfs in the address, and the setting stayed hidden until then. The author states the setting now appears in Experimental settings for all web app users, and gives the reason for this approach. The description is on-topic and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f5f0689 and dd787f8.

Files selected for processing: 8

  • packages/desktop-client/e2e/storage.test.ts
  • packages/desktop-client/src/components/settings/Experimental.tsx
  • packages/desktop-client/src/components/settings/StorageBackendToggle.tsx
  • packages/docs/docs/troubleshooting/browser-storage.md
  • packages/loot-core/src/platform/client/browser-preload/index.ts
  • packages/loot-core/src/platform/client/browser-preload/storage-backend.test.ts
  • packages/loot-core/src/platform/client/browser-preload/storage-backend.ts
  • upcoming-release-notes/show-storage-engine-setting.md
Files with no reviewable changes: 3

  • packages/loot-core/src/platform/client/browser-preload/index.ts
  • packages/loot-core/src/platform/client/browser-preload/storage-backend.test.ts
  • packages/loot-core/src/platform/client/browser-preload/storage-backend.ts

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

@matt-fidd matt-fidd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, it's been good in my testing

@MikesGlitch
MikesGlitch added this pull request to the merge queue Nov 13, 2026
Merged via the queue into actualbudget:master with commit e9afd77 Nov 13, 2026
60 checks passed
@MikesGlitch
MikesGlitch deleted the feat/sqlite-wasm-storage-setting branch November 13, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants