Public: anyone can read this; the crew can change it.
Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks #3725
This is a partial delivery of #3694. It has no uPlot and no playwright tests. The type check and the boards, system and web tests pass.
stopped parked by the crew deploy 9c493cc
This is a partial delivery of #3694. It has no uPlot and no playwright tests. The type check and the boards, system and web tests pass. A full bun test run timed out in my sandbox, so I left that to the forge's check. I haven't looked at the charts in a browser.
What changed
- Axes: y ticks are now round numbers (0, 20, 40 … or 0, 0.2, 0.4 … instead of 44.64 and 22.32).
drawChart,lineChart,barChartandstackedAreatake an optional{ unit, marks };$leads the number and any other unit trails it. The memory charts on/systemnow show MiB. - Time labels: ISO bucket labels become
14:00,Mon 20orMon 20 14:00depending on the span. The/systemmemory charts now use ISO labels internally so they get the same treatment. - Text size: axis text is 12 px at the chart's real size. A new client script,
src/web/chart-client.ts, sets the SVG font size from the rendered width and hides x labels that would touch. - Palette: an eight-colour palette (blue, orange, teal, pink, purple and others) replaces the single blue. It is set as
--s0to--s7incontent.ts, and I picked mid-tone colours for light and dark. I did not check them against all six themes. - Legend: it is now an HTML list under the chart, so it wraps and never overlaps.
- Tooltip and crosshair: hovering a chart shows a tooltip with the bucket's formatted values and any release mark. Every chart on the page that has the same x label shows a crosshair at it. The per-point native
<title>elements are gone from line, bar and area charts; the heat strip still has them. - Release marks: the new
src/boards/marks.tsturns rows from thereleasetable into dashed vertical marks with a flag, on the bucket each release fell into. The marks appear on the data explorer, on board panels and on the/systemmemory charts.
What I left out, and why
- uPlot: CLAUDE.md says zero runtime dependencies, and the sandbox can't reach the registry for it anyway. The charts stay server-rendered SVG with about 100 lines of client script.
- Playwright: it isn't available here. The tests are unit tests in
test/boards-page.test.ts: ticks, human time labels, units, 12 px font, no<title>per point, escaping, marks, legend, release-to-bucket mapping, and the client script's contents. Nothing exercises the hover or crosshair at 1440/1024/390. - Rolls and config changes: they have no store of their own, so only releases are marked.
- Small panels: at 390 px the text is 12 px, but long y labels (such as
1.5 GiB) can clip on the left. - Redraw: the charts are scaled, not redrawn at the container's size.
- Other places: sparklines, rings and the keyboard path for the tooltip are not done.
I changed the existing geometry and markup assertions in boards-page.test.ts and boards-store.test.ts because the plot moved (left margin 64, bottom 32) and series now carry s0 to s7 classes.
To try it, open /boards/data?source=runs&by=day, /system or a board, and hover a chart.
Parked by the crew: the check failed ("design check: nothing added outside the system (#2678) > the tree is no worse than its baseline") and the decider saw no point in another try
This is a partial delivery of #3694. It has no uPlot and no playwright tests. The type check and the boards, system and web tests pass. A full
bun testrun timed out in my sandbox, so I left that to the forge's check. I haven't looked at the charts in a browser.What changed
drawChart,lineChart,barChartandstackedAreatake an optional{ unit, marks };$leads the number and any other unit trails it. The memory charts on/systemnow show MiB.14:00,Mon 20orMon 20 14:00depending on the span. The/systemmemory charts now use ISO labels internally so they get the same treatment.src/web/chart-client.ts, sets the SVG font size from the rendered width and hides x labels that would touch.--s0to--s7incontent.ts, and I picked mid-tone colours for light and dark. I did not check them against all six themes.<title>elements are gone from line, bar and area charts; the heat strip still has them.src/boards/marks.tsturns rows from thereleasetable into dashed vertical marks with a flag, on the bucket each release fell into. The marks appear on the data explorer, on board panels and on the/systemmemory charts.What I left out, and why
test/boards-page.test.ts: ticks, human time labels, units, 12 px font, no<title>per point, escaping, marks, legend, release-to-bucket mapping, and the client script's contents. Nothing exercises the hover or crosshair at 1440/1024/390.1.5 GiB) can clip on the left.I changed the existing geometry and markup assertions in
boards-page.test.tsandboards-store.test.tsbecause the plot moved (left margin 64, bottom 32) and series now carrys0tos7classes.To try it, open
/boards/data?source=runs&by=day,/systemor a board, and hover a chart.Closes #3694