Implement connection flow, test connection, and secret prompts

- Change ConnectSession/ConnectQuick to return SessionInfo (not string)
- Change UpdateProfile to return (Profile, error) for frontend use
- Make session connection asynchronous to avoid Wails event loop deadlock
- Implement event-based secret prompt (backend ↔ frontend via requestID)
- Add TestConnection API for TCP reachability checks with latency
- Add 'Save & Connect' button in profile editor
- Wire _testConnection to real backend TCP check
- Add btn-accent CSS for the green action button
This commit is contained in:
2026-04-15 00:00:00 +01:00
parent ecb46cda6f
commit 8752ecef2d
7 changed files with 240 additions and 54 deletions
+15
View File
@@ -50,6 +50,21 @@
border-color: #3da69f;
}
/* Accent — success-tinted action, e.g. "Save & Connect" */
.btn-accent {
background: var(--success);
color: var(--text-inverse);
border-color: var(--success);
}
.btn-accent:hover {
background: #57a85c;
border-color: #57a85c;
}
.btn-accent:active {
background: #4a9a4e;
border-color: #4a9a4e;
}
/* Secondary — subtle border */
.btn-secondary {
background: transparent;