mirror of
https://github.com/smittix/intercept.git
synced 2026-06-09 06:31:55 -07:00
a3f2fa7b88
Fix app becoming unresponsive when two browser windows are open: the root cause was HTTP/1.1 connection pool exhaustion (6-connection limit per origin). VoiceAlerts was opening 3 SSE streams per window by default, so two windows produced 8 connections and permanently starved all regular HTTP requests. - voice-alerts.js: default all streams to false (opt-in) to stay within the browser connection limit; existing user preferences in localStorage are preserved - routes/alerts.py: replace direct AlertManager.stream_events() with sse_stream_fanout so both windows receive every alert instead of competing for the same queue - routes/bluetooth_v2.py: same fanout fix via subscribe_fanout_queue, preserving named SSE events (device_update, scan_started, etc.) Also includes accumulated UI/theming changes: accent-cyan CSS variable sweep across mode CSS/JS files, standalone dashboard pages, template updates, satellite TLE data refresh, and tile provider default rename. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
234 lines
5.6 KiB
CSS
234 lines
5.6 KiB
CSS
/* ============================================
|
|
RADIOSONDE MODE — Scoped Styles
|
|
============================================ */
|
|
|
|
/* Visuals container */
|
|
.radiosonde-visuals-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
padding: 8px;
|
|
}
|
|
|
|
/* Map container */
|
|
#radiosondeMapContainer {
|
|
flex: 1;
|
|
min-height: 300px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
/* Card container below map */
|
|
.radiosonde-card-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* Individual balloon card */
|
|
.radiosonde-card {
|
|
background: var(--bg-card, #1a1e2e);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
flex: 1 1 280px;
|
|
min-width: 260px;
|
|
max-width: 400px;
|
|
transition: border-color 0.2s ease, background 0.2s ease;
|
|
}
|
|
|
|
.radiosonde-card:hover {
|
|
border-color: var(--accent-cyan);
|
|
background: rgba(0, 204, 255, 0.04);
|
|
}
|
|
|
|
.radiosonde-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.radiosonde-serial {
|
|
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--accent-cyan);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.radiosonde-type {
|
|
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
background: rgba(255, 255, 255, 0.06);
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Telemetry stat grid */
|
|
.radiosonde-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 6px;
|
|
}
|
|
|
|
.radiosonde-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
.radiosonde-stat-value {
|
|
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.radiosonde-stat-label {
|
|
font-size: 9px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.8px;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* Leaflet popup overrides for radiosonde */
|
|
#radiosondeMapContainer .leaflet-popup-content-wrapper {
|
|
background: var(--bg-card, #1a1e2e);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
font-family: var(--font-mono, 'JetBrains Mono', monospace);
|
|
font-size: 11px;
|
|
}
|
|
|
|
#radiosondeMapContainer .leaflet-popup-tip {
|
|
background: var(--bg-card, #1a1e2e);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Scrollbar for card container */
|
|
.radiosonde-card-container::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.radiosonde-card-container::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.radiosonde-card-container::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Stats strip above map */
|
|
.radiosonde-strip {
|
|
background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
padding: 6px 12px;
|
|
margin-bottom: 8px;
|
|
overflow-x: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
.radiosonde-strip-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: max-content;
|
|
}
|
|
.radiosonde-strip .strip-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
background: rgba(var(--accent-cyan-rgb), 0.05);
|
|
border: 1px solid rgba(var(--accent-cyan-rgb), 0.15);
|
|
border-radius: 4px;
|
|
min-width: 55px;
|
|
}
|
|
.radiosonde-strip .strip-stat:hover {
|
|
background: rgba(var(--accent-cyan-rgb), 0.1);
|
|
border-color: rgba(var(--accent-cyan-rgb), 0.3);
|
|
}
|
|
.radiosonde-strip .strip-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--accent-cyan);
|
|
line-height: 1.2;
|
|
}
|
|
.radiosonde-strip .strip-label {
|
|
font-size: 8px;
|
|
font-weight: 600;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-top: 1px;
|
|
}
|
|
.radiosonde-strip .strip-divider {
|
|
width: 1px;
|
|
height: 28px;
|
|
background: var(--border-color);
|
|
margin: 0 4px;
|
|
}
|
|
.radiosonde-strip .strip-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
}
|
|
.radiosonde-strip .status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--text-muted);
|
|
}
|
|
.radiosonde-strip .status-dot.tracking {
|
|
background: var(--accent-green);
|
|
animation: radiosonde-strip-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
@keyframes radiosonde-strip-pulse {
|
|
0%, 100% { opacity: 1; box-shadow: 0 0 4px 2px currentColor; }
|
|
50% { opacity: 0.6; box-shadow: none; }
|
|
}
|
|
.radiosonde-strip .strip-waveform {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Responsive: stack cards on narrow screens */
|
|
@media (max-width: 480px) {
|
|
.radiosonde-card {
|
|
flex: 1 1 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.radiosonde-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|