Admin Tracker Full Rebuild + Uptime Truth Pipeline
Why it matters: this commit upgrades admin uptime from coarse status rendering to transition-accurate telemetry, preserving micro-downtime and preventing stale offline carryover after fast restarts.
Frontend re-architecture: tracker and uptime ingestion are unified across API pull, SSE streams, and snapshot fallback with stronger reconnect choreography.
Precision timeline semantics: short-window controls, deterministic hover mapping, mixed-bin logic, and event-transition overlap now preserve 3s-level outages accurately.
Backend truth preservation: uptime persistence and SSE signatures now emit repaired/session-level changes and avoid collapsing rapid off/on transitions.
Tracker Frontend Rebuild
Reworked admin tracker runtime into clearer state domains for auth, transport, tracking payloads, uptime events/sessions, and chart lifecycle. Snapshot freshness indicators and offline fallback flow now keep operators informed during network disruption.
Uptime Precision + Zoom Controls
Added 10m/30m/1h/2h controls, tighter short-window buckets, deterministic hover mapping, and transition-driven bin overlap math with mixed-state bins. This prevents same-minute micro-outages from being flattened into misleading multi-minute offline spans.
Backend Uptime Integrity
Upgraded uptime persistence and repair path to preserve rapid transitions with sub-second timing fidelity, rebuild sessions from events safely, and prevent aggressive commonization that previously erased short drop/recover sequences.
Realtime SSE Reliability
Expanded uptime stream signatures to include event and session markers so repaired/open-session changes are emitted consistently. Added guarded uptime sync pulls on reconnect and tracker-only payloads to heal stale client state faster.
Files touched (3 files, +2058 / -1682)
admin_tracker.html- +1690 / -1670service-worker.js- +1 / -1tg.py- +367 / -11