Skip to content

fix(connections): confirm before removing a connection and leave its workspace - #1434

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/remove-connection-confirm
Oct 11, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/remove-connection-confirm

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Found while driving a build of `dev` (UI consistency review).

Problem

Remove connection in the context menu deleted the connection at once, with its saved password. And when the removed connection was the open one, its workspace stayed on screen and the status bar kept naming it.

Change

  • `ConnectionsPanel._removeConnection` asks first in a destructive `QueryaConfirmDialog` (Remove connection?, names the connection, says the database itself is not changed). Cancel does nothing.
  • New `onConnectionRemoved` callback; `MainScreen` goes back to the start screen (and clears the shell status) when the removed connection was the active one.

Tests

No existing test removes through the menu (the e2e helper removes through `LocalDb`). Not run locally; CI is the check.

…workspace

Remove connection deleted the connection at once from the context menu, and
the workspace of the removed connection stayed open with the status bar still
naming it. Removal now asks in a destructive QueryaConfirmDialog, and the shell
goes back to the start screen when the removed connection was the open one.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit bb0c349 into dev Oct 11, 2026
13 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the fix/remove-connection-confirm branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant