fix: resolve dashboard websocket 'disconnected' status
- 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:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user