mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Surface connection errors clearly instead of hanging or failing silently
Bounds the connector's initial connect/login wait with a 15s timeout (an unreachable host previously hung forever with no error), rewrites tsclientlib's Debug-formatted errors into plain text, and adds a connecting/error UI state in the frontend with a dismissible banner instead of burying failures in the bottom log. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
02c5335a65
commit
4306da474b
3 files changed
+113
-14
No files matched your search
@@ -332,3 +332,27 @@
|
||||
.ts-log-error {
|
||||
color: var(--log-error);
|
||||
}
|
||||
|
||||
.ts-connect-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem 0.9rem;
|
||||
background: var(--log-error);
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ts-connect-error button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.ts-connect-error button:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
Reference in new issue
Block a user