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