fix: resolve dashboard websocket 'disconnected' status
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

- Fixed status indicator UI mapping in websocket.js and index.html.
- Added missing CSS for connection status indicator and pulse animation.
- Made initial model registry fetch asynchronous to prevent blocking server startup.
- Improved configuration loading to correctly handle LLM_PROXY__SERVER__PORT from environment.
This commit is contained in:
2026-03-19 14:32:34 -04:00
parent 08cf5cc1d9
commit 9380580504
4 changed files with 78 additions and 15 deletions

View File

@@ -1134,6 +1134,53 @@ body {
gap: 0.75rem;
}
/* Connection Status Indicator */
.status-indicator {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0.875rem;
background: var(--bg1);
border: 1px solid var(--bg3);
border-radius: 6px;
font-size: 0.8rem;
font-weight: 600;
color: var(--fg3);
transition: all 0.2s;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--fg4);
position: relative;
}
.status-dot.connected {
background: var(--green-light);
box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.4);
animation: status-pulse 2s infinite;
}
.status-dot.disconnected {
background: var(--red-light);
}
.status-dot.connecting {
background: var(--yellow-light);
}
.status-dot.error {
background: var(--red);
}
@keyframes status-pulse {
0% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.4); }
70% { box-shadow: 0 0 0 6px rgba(184, 187, 38, 0); }
100% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0); }
}
/* WebSocket Dot Pulse */
@keyframes ws-pulse {
0% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.4); }