claude-exporter/docs
tux tucker aec2906fb2 Import Backup: ask mode before opening file picker (v1.10.17)
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>
2026-05-18 22:30:00 -04:00
..
CHANGELOG.md Import Backup: ask mode before opening file picker (v1.10.17) 2026-05-18 22:30:00 -04:00
INSTALL.md Move CHANGELOG, INSTALL, TODO into docs/ 2026-05-14 23:12:01 -04:00
TODO.md Drop View button + page-level horizontal scroll (v1.10.9) 2026-05-18 20:03:06 -04:00