feat(settings): add "Refresh cached data" recovery action#508
Open
shukiv wants to merge 1 commit into
Open
Conversation
When the mailbox view gets into a stale or wrong state, the only escape was the browser's "clear site data" — which also wipes the saved account list, forcing a re-login of every account. Add a non-destructive "Refresh cached data" button under Settings → Data. It clears the server-derived caches (contacts, calendars, identities, per-account snapshots) and reloads so they re-fetch fresh, while preserving accounts, sessions, settings, themes and user content (templates, S/MIME). Two-click confirm to avoid an accidental reload. English strings added across all locales (translation follow-up); unit tests cover the cache-clear (keeps account-registry/auth/prefs) and the reload.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When the mailbox view gets into a stale/wrong state, the only escape was the browser's "clear site data" — which also wipes the saved account list, forcing re-login of every account.
Adds a non-destructive "Refresh cached data" button under Settings → Data: clears server-derived caches (contacts, calendars, identities, per-account snapshots) and reloads to re-fetch fresh, while preserving accounts, sessions, settings, themes, and user content (templates, S/MIME). Two-click confirm avoids an accidental reload.
Pairs with #506 (which auto-recovers the slot-desync case) as the manual escape hatch.
Notes
account-registry,auth-storage,settings-storage,theme-storage,locale-storage,template-storage,smime-preferences.Test
lib/__tests__/clear-cached-data.test.ts— cache keys cleared, accounts/auth/prefs/templates preserved, reload fired.