Skip to content

UI: Add confirmation dialogs for all destructive actions #51

@P-r-e-m-i-u-m

Description

@P-r-e-m-i-u-m

Description

Destructive actions like deleting agents, workflows, knowledge bases and documents have no confirmation step. Users can accidentally delete important data with no way to recover it.

Actions Needing Confirmation

  • Delete agent
  • Delete workflow
  • Delete knowledge base
  • Delete document
  • Delete conversation
  • Clear all chat history
  • Delete account

Dialog Design

  • Modal dialog centered on screen
  • Warning icon at top
  • Clear title: "Delete Agent?"
  • Description of what will be lost
  • Two buttons: Cancel (secondary) and Delete (red/danger)
  • Focus trap inside dialog
  • ESC key closes dialog
  • Click outside closes dialog

Acceptance Criteria

  • All delete actions show confirmation dialog
  • Dialog clearly explains what will be deleted
  • Cancel button closes dialog without deleting
  • Delete button proceeds with deletion
  • ESC key cancels the action
  • Focus trapped inside dialog for accessibility
  • Loading state on confirm button while deleting

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions