Skip to content

feat(web,cli): live-data dashboard tiles, CSV download and replay labelling - #22

Merged
JoeeDeveloper merged 2 commits into
mainfrom
feat/dashboard
Nov 24, 2026
Merged

JoeeDeveloper merged 2 commits into
mainfrom
feat/dashboard

Conversation

@JoeeDeveloper

Copy link
Copy Markdown
Owner

Stacked on #21 (base is feat/log-replay; retarget to main once that merges).

Summary

  • Live data view in opendiag serve: one tile per measuring-block cell with its latest raw value, min/max and a sparkline on its own scale (the old single chart put every cell on one shared scale).
  • Pause/resume, clear, sample interval (0.5-5 s), and a CSV download of the session (same columns as opendiag log).
  • Under --replay the page shows a REPLAY banner and note, and opendiag report adds a REPLAYED DATA banner, so recorded data cannot pass as live.
  • Keep-alive is skipped for a replay (nothing to keep alive; it would only disturb the replay position).
  • Docs: docs/web.md, docs/replay.md (how to record exactly what the page asks for with serve --trace).

Limits

  • KW1281 only for live data, still raw values, no units.
  • On K-line a request that was not recorded may surface as a protocol error or wrong reply rather than the clean not in recording error (documented in docs/replay.md).
  • I could not view the page in a browser. I ran app.js in node against the real server with a stub DOM: record through the simulator, replay, and the tiles show identical values and the banners appear. Layout and styling are unseen.

Test plan

  • fmt, clippy -D warnings, cargo test --workspace (405 passed, 0 failed)
  • serve --replay reports replay: true, plays recorded readings back in recorded order, stays alive across the idle keep-alive interval, exposes no write
  • Replayed report is labelled; simulated report unchanged
  • Look at the page in a real browser

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xe1HmJJjhbWaBGaF6FKosA

…elling

Per-cell tiles with their own scale, min/max and sparklines; pause, clear, interval and CSV download. Under --replay the page and the HTML report are labelled, and keep-alive is skipped.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xe1HmJJjhbWaBGaF6FKosA
@JoeeDeveloper JoeeDeveloper added this to the Phase 4 - GUI milestone Nov 24, 2026
@JoeeDeveloper JoeeDeveloper added enhancement New feature or request area:cli Command line interface area:gui Tauri/React GUI labels Nov 24, 2026
@JoeeDeveloper
JoeeDeveloper changed the base branch from feat/log-replay to main November 24, 2026 18:03
@JoeeDeveloper
JoeeDeveloper merged commit 9e24a30 into main Nov 24, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Command line interface area:gui Tauri/React GUI enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant