Skip to content

feat: implement main tool window and connection dialog - #314

Merged
CalvinAllen merged 2 commits into
mainfrom
feature/tool-window-and-connection-dialog
Dec 20, 2025
Merged

CalvinAllen merged 2 commits into
mainfrom
feature/tool-window-and-connection-dialog

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Changes

Tool Window (#310)

  • ViewModels: TreeNodeBase, ConnectionNode, BucketNode, ScopeNode, CollectionNode, DocumentNode, IndexNode, LoadMoreNode, PlaceholderNode
  • Toolbar: Add Connection, Refresh, Collapse All buttons
  • TreeView: HierarchicalDataTemplates for all node types with VS theme support
  • Context Menus: Connection (Connect/Disconnect/Edit/Delete), Bucket/Scope (Refresh), Collection (New Document/Refresh), Document (Open/Copy ID/Delete)
  • Empty State: "Right-click to add a connection" message

Connection Dialog (#311)

  • VS-styled dialog following the "Add Connection" pattern
  • Connection Type selection (Couchbase Server vs Capella)
  • Field validation with inline error messages
  • Test Connection with status indicator
  • Auto-detect Capella URLs and enforce SSL
  • Support for both Add and Edit modes

Dependencies

  • CouchbaseNetClient: 3.5.2 → 3.8.1

Test plan

  • Open Couchbase Explorer from View → Other Windows
  • Click Add Connection toolbar button → dialog opens
  • Verify field validation (required fields, unique name)
  • Select Capella type → SSL checkbox auto-enables and locks
  • Test Connection button shows status changes
  • Save creates connection node in tree
  • Right-click connection → Edit opens dialog with pre-filled values
  • Right-click connection → Delete shows confirmation
  • Context menus appear for all node types
  • Collapse All button collapses expanded nodes
  • Theme colors adapt to VS Light/Dark themes

Tool Window (#310):
- Add MVVM structure with ViewModels for all tree node types
- Implement toolbar with Add Connection, Refresh, Collapse All
- Add TreeView with HierarchicalDataTemplates for each node type
- Implement context menus for Connection, Bucket, Scope, Collection, Document
- Add VS theme support using VsBrushes
- Add empty state message when no connections exist

Connection Dialog (#311):
- Create VS-styled dialog following Add Connection pattern
- Add Connection Type selection (Server vs Capella)
- Implement field validation with inline error messages
- Add Test Connection with status indicator (Not tested/Testing/Success/Failed)
- Auto-detect Capella URLs and enforce SSL
- Support both Add and Edit modes
- Wire up Add/Edit/Delete connection commands

Other:
- Update CouchbaseNetClient from 3.5.2 to 3.8.1 (security fix)
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.

1 participant