mirror of
https://github.com/agoramachina/claude-exporter.git
synced 2026-07-09 15:59:52 +00:00
Old flow: click Import Backup -> OS file picker opens -> select file -> modal asks merge/replace. Awkward because the user was already deep in a filesystem dialog before being asked the meaningful question. New flow: click Import Backup -> modal asks merge/replace + "Choose File..." -> file picker opens -> import runs with the chosen mode. Refactor: - showImportBackupModal(backup, onConfirm) -> showImportModeModal(onConfirm). No longer takes a file/backup arg; no file-contents preview (snapshot /export counts, creation date) since the file isn't selected yet. Modal copy now reads "Choose how the imported data should be combined with your current data, then pick a backup file." - importBackup(file, onComplete) -> importBackup(file, mode, onComplete). No internal modal call; just validates the file and applies the pre-chosen mode. - options.js and browse.js each gained a pendingImportMode state variable that bridges the async modal-close -> file-picker-change boundary. Consumed and reset on file-picker change to prevent stale reuse. Both browsers identical. Tests still pass (54/54). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| CHANGELOG.md | ||
| INSTALL.md | ||
| TODO.md | ||