Skip to content

Add Clear All Data option to Developer Tools - #4

Merged
ivanfenenko merged 1 commit into
mainfrom
dev-tools-clear-data
May 31, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
dev-tools-clear-data

Conversation

@ivanfenenko

Copy link
Copy Markdown
Collaborator

Feature: Clear All Data in Developer Tools

Adds a "Clear All Data" row to the Developer Tools section on both platforms. When tapped, a confirmation dialog asks the user to approve before wiping all app state.

What it clears:

  • Connection profile (URL, username) from UserDefaults/DataStore
  • Password from Keychain/EncryptedSharedPreferences
  • Added worktrees
  • Imported themes
  • In-memory LiveStore caches
  • Disconnects ActiveConnectionManager

UX changes:

  • Removed the full-screen .onboarding root state. The home page (with top bar) is always visible. When disconnected, the content area shows a centered "Connect to your server" message.
  • iOS: Fixed connection setup URL text field resetting to default while typing (ViewModel was being recreated on sheet re-evaluation).
  • Live updates banner now hides in the disconnected state.

Platforms: iOS and Android (synchronized feature slice)

Documentation: docs/features/clear-data/

- iOS/Android: ConnectionProfileStore.clearAll(), ActiveConnectionManager.disconnect(),
  ThemeManager.clearAll(), LiveStore.clearCache()
- iOS: Container.clearAllData() orchestrator, SettingsView UI with confirmation alert
- Android: ConnectionSessionCoordinator.clearConnectionData(), SettingsViewModel,
  SettingsScreen UI with confirmation dialog
- Remove full-screen .onboarding state; show centered 'Connect to server' in home
  content area when disconnected
- Fix iOS connection setup URL reset bug by storing ViewModel in @State
- Hide live updates banner in disconnected state
@ivanfenenko
ivanfenenko merged commit c0b26c3 into main May 31, 2026
@ivanfenenko
ivanfenenko deleted the dev-tools-clear-data branch October 26, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant