mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 22:21: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>
290 lines
5.4 KiB
CSS
290 lines
5.4 KiB
CSS
/**
|
|
* Proximity Visualization Components
|
|
* Styles for radar and timeline heatmap
|
|
*/
|
|
|
|
/* ============================================
|
|
PROXIMITY RADAR
|
|
============================================ */
|
|
|
|
.proximity-radar-svg {
|
|
display: block;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.radar-device {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.radar-device:hover .radar-dot {
|
|
filter: brightness(1.5);
|
|
}
|
|
|
|
/* Invisible larger hit area to prevent hover flicker */
|
|
.radar-device-hitarea {
|
|
fill: transparent;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.radar-dot-pulse circle:first-child {
|
|
animation: radar-pulse 1.5s ease-out infinite;
|
|
}
|
|
|
|
@keyframes radar-pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform: scale(2);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Radar filter buttons */
|
|
.bt-radar-filter-btn {
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.bt-radar-filter-btn:hover {
|
|
background: var(--bg-hover, #333) !important;
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.bt-radar-filter-btn.active {
|
|
background: var(--accent-cyan) !important;
|
|
color: var(--text-inverse) !important;
|
|
border-color: var(--accent-cyan) !important;
|
|
}
|
|
|
|
#btRadarPauseBtn.active {
|
|
background: var(--accent-orange) !important;
|
|
color: var(--text-inverse) !important;
|
|
border-color: var(--accent-orange) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
TIMELINE HEATMAP
|
|
============================================ */
|
|
|
|
.timeline-heatmap-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
padding: 8px 0;
|
|
margin-bottom: 8px;
|
|
border-bottom: 1px solid var(--border-color, #333);
|
|
}
|
|
|
|
.heatmap-control-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
color: var(--text-dim, #888);
|
|
}
|
|
|
|
.heatmap-select {
|
|
background: var(--bg-tertiary, #1a1a1a);
|
|
border: 1px solid var(--border-color, #333);
|
|
border-radius: 4px;
|
|
color: var(--text-primary, #e0e0e0);
|
|
font-size: 10px;
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.heatmap-select:hover {
|
|
border-color: var(--accent-color, #00d4ff);
|
|
}
|
|
|
|
.heatmap-btn {
|
|
background: var(--bg-tertiary, #1a1a1a);
|
|
border: 1px solid var(--border-color, #333);
|
|
border-radius: 4px;
|
|
color: var(--text-dim, #888);
|
|
font-size: 10px;
|
|
padding: 4px 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.heatmap-btn:hover {
|
|
background: var(--bg-hover, #252525);
|
|
color: var(--text-primary, #e0e0e0);
|
|
}
|
|
|
|
.heatmap-btn.active {
|
|
background: var(--accent-orange);
|
|
color: var(--text-inverse);
|
|
border-color: var(--accent-orange);
|
|
}
|
|
|
|
.timeline-heatmap-content {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.heatmap-loading,
|
|
.heatmap-empty,
|
|
.heatmap-error {
|
|
color: var(--text-dim, #666);
|
|
text-align: center;
|
|
padding: 30px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.heatmap-error {
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.heatmap-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: max-content;
|
|
}
|
|
|
|
.heatmap-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 0;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.heatmap-row:hover:not(.heatmap-header) {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.heatmap-row.selected {
|
|
background: rgba(var(--accent-cyan-rgb), 0.1);
|
|
outline: 1px solid rgba(var(--accent-cyan-rgb), 0.3);
|
|
}
|
|
|
|
.heatmap-header {
|
|
cursor: default;
|
|
border-bottom: 1px solid var(--border-color, #333);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.heatmap-label {
|
|
width: 120px;
|
|
min-width: 120px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding-right: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.heatmap-label .device-name {
|
|
font-size: 10px;
|
|
color: var(--text-primary, #e0e0e0);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.heatmap-label .device-rssi {
|
|
font-size: 9px;
|
|
color: var(--text-dim, #666);
|
|
font-family: monospace;
|
|
}
|
|
|
|
.heatmap-cells {
|
|
display: flex;
|
|
gap: 1px;
|
|
}
|
|
|
|
.heatmap-cell {
|
|
border-radius: 2px;
|
|
transition: transform 0.1s ease;
|
|
}
|
|
|
|
.heatmap-cell:hover {
|
|
transform: scale(1.5);
|
|
z-index: 10;
|
|
position: relative;
|
|
}
|
|
|
|
.heatmap-time-label {
|
|
font-size: 8px;
|
|
color: var(--text-dim, #666);
|
|
text-align: center;
|
|
transform: rotate(-45deg);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.heatmap-legend {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-top: 8px;
|
|
margin-top: 8px;
|
|
border-top: 1px solid var(--border-color, #333);
|
|
font-size: 10px;
|
|
color: var(--text-dim, #666);
|
|
}
|
|
|
|
.legend-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ============================================
|
|
ZONE SUMMARY
|
|
============================================ */
|
|
|
|
#btZoneSummary {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
#btZoneSummary > div {
|
|
min-width: 60px;
|
|
}
|
|
|
|
/* ============================================
|
|
RESPONSIVE ADJUSTMENTS
|
|
============================================ */
|
|
|
|
@media (max-width: 768px) {
|
|
.timeline-heatmap-controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.heatmap-control-group {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.proximity-radar-svg {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
#btRadarControls {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
#btZoneSummary {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|