mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-09-27 01:07:53 +00:00
GetHopDepthAnalytics now buckets its scoped/unscoped hop-index tallies by time (same 5min/1h/6h bucketing as GetScopeStats' TimeSeries) and computes a per-bucket median for each series, exposed as a new TimeSeries field. Median is a *int, nil when a bucket had no traffic of that kind -- 0 is a valid median hop, so absence has to stay distinguishable from zero. Frontend renders it as a two-line SVG trend chart on the Scopes > Hop Depth sub-tab (same visual language as Overview's scoped/unscoped time-series), answering "is containment getting better or worse over the window" rather than just a single window-wide snapshot. Each series' polyline is built from contiguous non-null segments so a gap renders as a visible break instead of silently interpolating through missing data. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>