Skip to content

[Critical] Confirmation Dialog for Destructive Actions #25

@7sg56

Description

@7sg56

Priority: Critical (Ship Blocker)

Currently deleteFile and deleteFolder execute immediately with no confirmation. One misclick permanently deletes user data.

Scope

Show a native Tauri confirmation dialog before deleting files/folders.

Frontend Changes

  • [MODIFY] useAppStore.ts — Wrap deleteFile and deleteFolder with await ask() from @tauri-apps/plugin-dialog so the user must confirm before deletion.

Verification

  • Right-click a file, click "Move to Trash" — verify a native confirmation dialog appears before deletion.

⚠️ This is a data-safety issue. Right now a single misclick permanently deletes files with no recovery. This should be the absolute first fix.

Source: changelogs/cinder-v0.2.md

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions