You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ask before "Delete Profile" and allow deleting a profile that is not connected #795
Severity: P1 (data loss without confirmation; FR-1.1.3 requires a confirmation dialog)
What happens
Open ?mock=connected, right-click the "Local dev" connection tab, choose "Delete Profile".
The connection is closed and the profile is deleted straight away. There is no confirmation and no undo; the + menu no longer lists it.
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.
Activity
fix(ui): confirm before deleting a profile
release: 1.4.0 (#871)