From df23cecdbda2dd0e58b1d650ec890d53c4b9d2e0 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Tue, 17 Mar 2026 11:08:40 -0400 Subject: [PATCH] fix: wire connection CRUD, add Group+/Host+ buttons, fix vault stubs - Delete connection/group now calls real Go backend (was local array splice) - Duplicate connection calls ConnectionService.CreateConnection - Rename group calls new ConnectionService.RenameGroup method - Added Group+ and Host+ buttons to sidebar header - Vault change password wired to real unlock/create flow - Export/import vault shows helpful path info instead of stub alert Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/common/SettingsModal.vue | 32 +++-- .../src/components/sidebar/ConnectionTree.vue | 109 +++++++++++++----- internal/connections/service.go | 8 ++ 3 files changed, 115 insertions(+), 34 deletions(-) diff --git a/frontend/src/components/common/SettingsModal.vue b/frontend/src/components/common/SettingsModal.vue index f487f4e..e309797 100644 --- a/frontend/src/components/common/SettingsModal.vue +++ b/frontend/src/components/common/SettingsModal.vue @@ -269,6 +269,7 @@ diff --git a/internal/connections/service.go b/internal/connections/service.go index 5ca5f23..b1f7cf8 100644 --- a/internal/connections/service.go +++ b/internal/connections/service.go @@ -159,6 +159,14 @@ func (s *ConnectionService) DeleteGroup(id int64) error { return nil } +func (s *ConnectionService) RenameGroup(id int64, name string) error { + _, err := s.db.Exec("UPDATE groups SET name = ? WHERE id = ?", name, id) + if err != nil { + return fmt.Errorf("rename group: %w", err) + } + return nil +} + // ---------- Connection CRUD ---------- func (s *ConnectionService) CreateConnection(input CreateConnectionInput) (*Connection, error) {