From bb8045ea5932280f02bcd42684cc615d34d774af Mon Sep 17 00:00:00 2001 From: Brummel Date: Fri, 19 Jun 2026 18:23:42 +0200 Subject: [PATCH] =?UTF-8?q?plan:=20trace-chart=20viewer=20Tier-1=20?= =?UTF-8?q?=E2=80=94=20ordinal=20x-axis=20+=20zoom/pan/cursor-sync?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five tasks: RED x-mode guard; buildCharts gains xMode (ordinal default) + wheelZoomPlugin + panel cursor-sync, with the two twin guards re-pointed in lockstep; mount render(xMode)+toggle; render.rs CHART_HEAD toggle + chart-only style + chrome tests; full-suite/clippy/e2e gate. refs #103 --- docs/plans/0057-trace-chart-viewer-tier1.md | 528 ++++++++++++++++++++ 1 file changed, 528 insertions(+) create mode 100644 docs/plans/0057-trace-chart-viewer-tier1.md diff --git a/docs/plans/0057-trace-chart-viewer-tier1.md b/docs/plans/0057-trace-chart-viewer-tier1.md new file mode 100644 index 0000000..2a1be98 --- /dev/null +++ b/docs/plans/0057-trace-chart-viewer-tier1.md @@ -0,0 +1,528 @@ +# Trace-chart viewer Tier-1 (ordinal x-axis + zoom/pan/cursor-sync) — Implementation Plan + +> **Parent spec:** `docs/specs/0057-trace-chart-viewer-tier1.md` +> +> **For agentic workers:** REQUIRED SUB-SKILL: use the `implement` skill to run +> this plan. Steps use `- [ ]` checkboxes for tracking. + +**Goal:** Make the served trace chart's x-axis ordinal (gap-collapsed) by default with a +one-click continuous toggle, and add wheel-zoom / drag-pan / dblclick-reset, a +value-readout legend, and panel cursor-sync — confined to the read/render side. + +**Architecture:** The whole feature lives in `crates/aura-cli/assets/chart-viewer.js` +(the pure `buildCharts` gains an `xMode` param + a `wheelZoomPlugin` factory; the +browser-only `mount` gains a `render(xMode)` teardown/rebuild wired to a header toggle) +and `crates/aura-cli/src/render.rs` (`CHART_HEAD` gains the toggle button; a chart-only +`\n