From a1dce82d990e4af28f9848af8a3aaf8a5603cae8 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Tue, 17 Mar 2026 10:27:50 -0400 Subject: [PATCH] fix: wire vault persistence, connection loading, and MobaXterm import to real Go backend Replace all TODO stubs in frontend stores with real Wails Call.ByName bindings. The app store now calls WraithApp.IsFirstRun/CreateVault/Unlock so vault state persists across launches. The connection store loads from ConnectionService.ListConnections/ListGroups instead of hardcoded mock data. The import dialog calls a new WraithApp.ImportMobaConf method that parses the file, creates groups and connections in SQLite, and stores host keys. ConnectionEditDialog also uses real Go CRUD calls. MainLayout loads connections on mount after vault unlock. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/common/ImportDialog.vue | 48 +++++++++++--- .../connections/ConnectionEditDialog.vue | 57 +++++++++-------- frontend/src/layouts/MainLayout.vue | 4 +- frontend/src/stores/app.store.ts | 20 +++--- frontend/src/stores/connection.store.ts | 64 ++++++++++++------- internal/app/app.go | 59 +++++++++++++++++ 6 files changed, 183 insertions(+), 69 deletions(-) diff --git a/frontend/src/components/common/ImportDialog.vue b/frontend/src/components/common/ImportDialog.vue index 6a2bde3..c6bc792 100644 --- a/frontend/src/components/common/ImportDialog.vue +++ b/frontend/src/components/common/ImportDialog.vue @@ -88,6 +88,13 @@

Passwords are not imported (MobaXTerm uses proprietary encryption).

+ +
+ {{ importError }} +
@@ -116,10 +123,11 @@