devbox/internal/hub/dashboard
shoemoney 80380652cc
Some checks are pending
CI / vet-build-test (push) Waiting to run
feat(dashboard): P3 depth — pull/gc/conflict flow events + server-side history ✨📊
- Hub emits 3 new flow events: pull (head fetch/propagation, handleHead), conflict
  (stale-parent push, handlePush), gc (in-process sweep). Opt-in periodic GC via
  'serve --gc-every <dur>' (default off) self-maintains the hub AND animates each
  sweep; runGC stays put (no risky refactor of mark-and-sweep).
- Server-side history ring: per-minute activity buckets (push/pull/conflict/gc +
  bytes), last 60 min, in /api/state — the sparkline now survives a page reload
  (was computed from the live stream only). Recorded under the Emit lock; race-clean.
- Frontend (index.html): pull = teal inbound pulse, conflict = red collision burst,
  gc = amber hub sweep + toast; stacked per-minute history sparkline seeded from
  /api/state and growing live. One file, no new deps.
- dashboard-fleet-verify.sh: rewritten — drives join·push·pull·conflict·gc and
  asserts all 5 on the SSE stream + the history window; adds LOCAL=1 mode (native,
  no Pi). Verified locally end-to-end. Tests: TestHistoryRing. go test ./... -race clean.
2026-06-23 20:45:31 -05:00
..
dashboard.go feat(dashboard): P3 depth — pull/gc/conflict flow events + server-side history ✨📊 2026-06-23 20:45:31 -05:00
dashboard_test.go feat(dashboard): P3 depth — pull/gc/conflict flow events + server-side history ✨📊 2026-06-23 20:45:31 -05:00
index.html feat(dashboard): P3 depth — pull/gc/conflict flow events + server-side history ✨📊 2026-06-23 20:45:31 -05:00