Skip to content

✨ feat: replace native confirm() dialogs with @mind-studio/ui AlertDialog - #19

Merged
rep0x merged 1 commit into
mainfrom
feat/replace-confirm-with-alertdialog
Jun 21, 2026
Merged

✨ feat: replace native confirm() dialogs with @mind-studio/ui AlertDialog#19
rep0x merged 1 commit into
mainfrom
feat/replace-confirm-with-alertdialog

Conversation

@rep0x

Copy link
Copy Markdown
Member

Replaces two blocking window.confirm() calls in the Vault app with the themed @mind-studio/uiAlertDialog.

Changes

  • Vault delete (src/apps/vault/index.tsx): the destructive delete trigger now opens a declarative "Delete item?" AlertDialog. The actual deletion lives in confirmDelete (wired to the "Delete" action), preserving all existing state updates.
  • ItemEditor discard (src/apps/vault/ItemEditor.tsx): closing the editor while dirty now opens a "Discard unsaved changes?" AlertDialog instead of confirm(). The original close behavior was extracted into proceedClose, shared by both the not-dirty path and the "Discard" action; "Keep editing" just dismisses.

Gates

  • npm run lint — clean (pre-existing warnings only)
  • npm run typecheck — pass
  • npm run test — pass (no test files)

🤖 Generated with Claude Code

…alog
Vault delete confirmation and ItemEditor discard-unsaved-changes prompt now
use the themed AlertDialog instead of blocking window.confirm().
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rep0x
rep0x merged commit b7291ea into mainJun 21, 2026
3 checks passed
@rep0x
rep0x deleted the feat/replace-confirm-with-alertdialog branch June 21, 2026 11:24
Sign up for freeto 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

@rep0x