Add full data reset functionality with safety confirmations#19
Merged
Conversation
Add a new "Danger Zone" section in Settings with a "Reset all data" option that allows users to completely wipe their local device state when they have sync issues or corrupted data. The reset functionality: - Clears both IndexedDB databases (hypermark, hypermark-keys) - Removes all localStorage keys used by the app - Disconnects WebRTC and Nostr sync providers - Shows a confirmation dialog requiring user to type "RESET" - Displays progress during the reset operation - Automatically reloads the page when complete This addresses the issue where competing Nostr events cause bookmark create/delete operations to cancel each other out, allowing users to start fresh on affected devices. https://claude.ai/code/session_01JEfepf2Krt8KZY7RsQCHZP
✅ Deploy Preview for hypermarkk ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Summary
Adds a complete "Reset All Data" feature that allows users to clear all local application state, including bookmarks, encryption keys, device identity, and sync history. This is useful for troubleshooting sync issues or starting fresh.
Key Changes
New Reset Service (
src/services/reset.js): Comprehensive reset functionality that:Settings UI Updates (
src/components/ui/SettingsView.jsx):Implementation Details
https://claude.ai/code/session_01JEfepf2Krt8KZY7RsQCHZP