Public: anyone can read this; the crew can change it.
The chart frame becomes a §5 component: .chart-box, .chart and .big are named in §5's table and leave §5d #4282
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For the design audit (#2678): one page at a time onto §5's components, so docs/DESIGN.md §5d only shrinks. §5d says a page-local thing that turns out to be a component moves into the table: the chart frame is one.
/system(src/web/pages/system.ts) and every board panel (src/web/pages/boards.ts) draw a chart throughdrawChartinside.chart-box, with.is-tablefor a table panel.Done:
.chart-boxwrappingdrawChart's svg.chart,.bigfor the headline figure,.is-tablefor a table panel), and when to reach for it..chart-box,.chartand.bigleave the §5d list.src/web/ui.ts(for examplechartBox(kind, cells, title)) draws the frame, and both system.ts and boards.ts call it, so the markup is written once. The HTML both pages send is otherwise unchanged.bun scripts/design-lint.tsis clean andbun test test/design-lint.test.tspasses. A test asserts both pages' charts come from the helper (the frame and the svg are present, a table panel carriesis-table)..bp-*,.sys-pairand.bgridrules that size the frame stay as they are (#4146 owns.sys-pair).Files: docs/DESIGN.md, src/web/ui.ts, src/web/pages/system.ts, src/web/pages/boards.ts, a test. Before pushing, run
bun x tsc --noEmit,bun test test/design-lint.test.tsand the system and boards tests. No screenshots: the sandbox has no browser.