towerops/assets/js/hooks
Graham McIntire 98da879399 fix(config-timeline): implement the missing chart hook
ConfigTimelineLive's chart panel was rendering a bare 'Loading chart...'
placeholder forever — the phx-hook="ConfigTimelineChart" had no JS
implementation registered anywhere, so the whole point of the page
(correlating QoE regressions with config edits) was lost.

Add a focused lazy hook in hooks/config_timeline_chart.ts that:

  * Plots Preseem latency / throughput / loss across three Y-axes.
  * Overlays vertical dashed markers at each config-change timestamp
    with a small badge showing how many lines changed.
  * Drops a red triangle on the time axis for every failed check.
  * Reuses the Chart.js vendor chunk (esbuild --splitting factors it
    into a shared chunk with sensor_chart, so visiting either page
    primes the other).

Bundle delta:
  chunk-RSDHLN2L.js (Chart.js, shared)   314.8 KB
  config_timeline_chart                    7.2 KB
  sensor_chart (was 325 KB standalone)    10.6 KB after dedup
2026-05-07 08:11:48 -05:00
..
config_timeline_chart.ts fix(config-timeline): implement the missing chart hook 2026-05-07 08:11:48 -05:00
coverage_hooks.ts feat(coverage): LOS/NLOS dual compute + buildings clutter + MS importer 2026-05-06 16:50:05 -05:00
mikrotik_port_sync.ts perf(assets): lazy-load three more hooks + trim CopyToClipboard 2026-05-07 08:05:22 -05:00
network_map.ts perf(assets): split big hooks into per-page chunks 2026-05-07 07:58:38 -05:00
sensor_chart.ts perf(assets): split big hooks into per-page chunks 2026-05-07 07:58:38 -05:00
sites_map.ts perf(assets): split big hooks into per-page chunks 2026-05-07 07:58:38 -05:00
weathermap.ts perf(assets): split big hooks into per-page chunks 2026-05-07 07:58:38 -05:00