feat: add confirmation dialog before character import replaces current data (Closes #84) #126

Merged
shahondin1624 merged 1 commits from feature/issue-84-import-replaces-entire-character-with-no-confirma into main 2026-04-04 23:27:44 +02:00
Owner

Summary

  • Adds a confirmation dialog ("Replace Current Character?") that appears after valid JSON is parsed but before the import replaces the current character
  • Users can cancel the confirmation to return to the import dialog without losing their current character
  • Invalid JSON still shows an error inline without triggering the confirmation step
  • Adds 5 new Compose UI tests covering the confirmation flow

Test plan

  • ImportCharacterDialogTest.clickingImportWithValidJsonShowsConfirmationDialog
  • ImportCharacterDialogTest.cancellingConfirmationReturnsToImportDialog
  • ImportCharacterDialogTest.confirmingImportTriggersOnImportCallback
  • ImportCharacterDialogTest.invalidJsonShowsErrorWithoutConfirmation
  • ImportCharacterDialogTest.dismissButtonDismissesDialog

Closes #84

## Summary - Adds a confirmation dialog ("Replace Current Character?") that appears after valid JSON is parsed but before the import replaces the current character - Users can cancel the confirmation to return to the import dialog without losing their current character - Invalid JSON still shows an error inline without triggering the confirmation step - Adds 5 new Compose UI tests covering the confirmation flow ## Test plan - [x] `ImportCharacterDialogTest.clickingImportWithValidJsonShowsConfirmationDialog` - [x] `ImportCharacterDialogTest.cancellingConfirmationReturnsToImportDialog` - [x] `ImportCharacterDialogTest.confirmingImportTriggersOnImportCallback` - [x] `ImportCharacterDialogTest.invalidJsonShowsErrorWithoutConfirmation` - [x] `ImportCharacterDialogTest.dismissButtonDismissesDialog` Closes #84
shahondin1624 added 1 commit 2026-04-04 23:27:36 +02:00
shahondin1624 merged commit 53a8385d0c into main 2026-04-04 23:27:44 +02:00
shahondin1624 deleted branch feature/issue-84-import-replaces-entire-character-with-no-confirma 2026-04-04 23:27:45 +02:00
Sign in to join this conversation.