Skip to content

feat(connection): implement delete connection functionality - #323

Merged
CalvinAllen merged 1 commit into
mainfrom
feat/connection/delete-connection
Dec 22, 2025
Merged

CalvinAllen merged 1 commit into
mainfrom
feat/connection/delete-connection

Conversation

@CalvinAllen

@CalvinAllen CalvinAllen commented Dec 22, 2025 •

Copy link
Copy Markdown
Contributor

Summary

  • Add BindingProxy class to enable context menu command bindings (WPF ContextMenus exist outside the visual tree)
  • Fix all context menu bindings to use BindingProxy instead of RelativeSource which doesn't work for ContextMenus
  • Add PreviewMouseRightButtonDown handler to select tree item on right-click before context menu opens
  • Implement OnDeleteConnection to properly disconnect from cluster, delete stored password, remove from settings, and update UI

Closes #26

Test plan

  • Right-click on a connection in the tree view
  • Verify the context menu appears with "Delete Connection" option
  • Click "Delete Connection" and verify confirmation dialog appears
  • Confirm deletion and verify connection is removed from the tree view
  • Restart Visual Studio and verify the deleted connection does not reappear

- Add BindingProxy class to enable context menu command bindings
  (WPF ContextMenus exist outside the visual tree)
- Fix all context menu bindings to use BindingProxy instead of
  RelativeSource which doesn't work for ContextMenus
- Add PreviewMouseRightButtonDown handler to select tree item on
  right-click before context menu opens
- Implement OnDeleteConnection to properly disconnect from cluster,
  delete stored password, remove from settings, and update UI
@CalvinAllen
CalvinAllen merged commit 253c830 into main Dec 22, 2025
@CalvinAllen
CalvinAllen deleted the feat/connection/delete-connection branch December 22, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[CONN-022] Support deleting connections with confirmation dialog

1 participant