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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user