You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
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.
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The new OPFS persistence could only be turned on by adding
?storage=opfsto 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
Checklist