Skip to content

Ask before "Delete Profile" and allow deleting a profile that is not connected #795

Closed

Description

@EVWorth

Severity: P1 (data loss without confirmation; FR-1.1.3 requires a confirmation dialog)

What happens

  1. Open ?mock=connected, right-click the "Local dev" connection tab, choose "Delete Profile".
  2. The connection is closed and the profile is deleted straight away. There is no confirmation and no undo; the + menu no longer lists it.
  3. On ?mock, open +. A saved profile row offers only Connect and a hover pencil (Edit), and the Edit dialog has no Delete button. Delete and Duplicate exist only on a connected tab's context menu. A profile that cannot connect ("MariaDB sandbox") can therefore never be deleted or duplicated from the UI.

Cause

  • src/components/layout/ConnectionTabs.tsx:220-228: Delete Profile calls disconnect and deleteProfile with no confirmation.
  • src/components/layout/ConnectionTabs.tsx:376-400: popover rows have only connect and edit.
  • src/components/connection/ConnectionDialog.tsx:141-165: footer has no Delete.

Fix

Confirm with ConfirmDialog, naming the profile and saying that open tabs will disconnect. Add Delete and Duplicate to the Edit dialog footer and to a context menu on the popover rows.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    4469eb1
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions