Skip to content

[FEATURE]: Add Confirmation Dialog Before Workflow Deletion #14

Description

@amaan1114

Feature Summary

Add a confirmation dialog before deleting a workflow to help prevent accidental deletions and improve the overall user experience.


Problem Statement

Currently, workflows can be deleted immediately after clicking the delete action. This increases the risk of accidentally removing workflows without giving users a chance to confirm their action.

Since deleting a workflow is a destructive operation, users should be prompted to confirm before the deletion is performed.


Proposed Solution

Display a confirmation dialog whenever a user attempts to delete a workflow.

The dialog should include:

  • A clear warning that the workflow will be permanently deleted.
  • The name of the workflow being deleted.
  • A Cancel button to dismiss the dialog.
  • A Delete button to confirm the action.

The workflow should only be deleted after the user explicitly confirms the operation.

Example:

Delete Workflow?

Are you sure you want to delete "Daily Email Automation"?

This action cannot be undone.

[Cancel] [Delete]


Benefits

  • Prevents accidental workflow deletion.
  • Improves user confidence when performing destructive actions.
  • Provides a more polished and user-friendly experience.
  • Aligns with common UX practices for destructive operations.

Additional Context

  • This feature primarily affects the frontend.
  • Existing delete APIs should remain unchanged.
  • Contributors should use the project's existing dialog/modal component where possible.
  • The dialog should follow the project's design system and accessibility guidelines.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions