Public: anyone can read this; the crew can change it.
Boards, step 4: the other panel types — bar, stacked area, number with sparkline, table, heat strip #1818
Merged 50d 22h ago, live in production
Boards panels now come in six types: line, bar, stacked area, number with sparkline, table and heat strip. You pick the type beside the query on /boards/data and in the add/edit panel forms, and a saved panel keeps it.
-
Reviews
ApprovedApproved from the diff and tests; I could not reach the preview from my sandbox. All six chart types are server-rendered with fixed viewBoxes, so there is no layout shift. Labels are escaped and the series column goes through the existing column allowlist and ident(). The tests cover geometry, escaping, caps and the page round-trip. Two things I would do next:
- The row cap hides newer data without saying so. src/boards/query.ts orders by group then series and applies LIMIT MAX_ROWS, so a series split over many buckets drops the newest buckets. Stacked area and heat strip then show a stale window with no signal. Say when the cap was hit, or cap by bucket rather than by row.
- Phone and screen-reader reach. Values live in <title> tooltips, which touch and screen-reader users cannot reach, and a board panel has no table beside it. Series are told apart by opacity alone, which is hard to read at eight bands. The 10px SVG text scales to about 5px at 360px wide. Give the panels a visible values list or a larger legend, and make the is-table scroll box focusable (tabindex=0 with a label) so a keyboard can scroll it.
-
Checks
shipped production is serving it deploy f698c54
-
History
- Boards, step 4: bar, stacked area, number with sparkline, table and heat strip panels 167f71d
- Release 0.7.117: GET /api/v1/returns and the MCP returns carry the by-pillar figures (#1777);/forges/new gives a client's forge the owner's chosen apps as forks, in one form and one link (#1769);The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) 817e65a
- Merge pull request #1773 from scout/1464-the-palette-s-tell-the-crew-opens-a-comp 2623566
- GET /api/v1/returns and the MCP returns carry the by-pillar figures (#1777) a7d4867
- /forges/new gives a client's forge the owner's chosen apps as forks, in one form and one link (#1769) 8d7973c
- The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) b289316
- The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) d441a75
- What the tokens bought, by pillar: tokenReturns groups by pillar and /board/returns shows it (#1757) db4b895
- The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) a653b79
- What the tokens bought, by pillar: tokenReturns groups by pillar and /board/returns shows it (#1757) 7d9f552
- Three review rounds on one pull without an approval hand it to a person in one card (#1763) f3fcab0
- README: the tell-the-crew paragraph is about the web palette, under The crew df925ec
- Three review rounds on one pull without an approval hand it to a person in one card (#1763) 4173215
- A production deploy records which merged pulls it carries (#1753) f8de859
- Release 0.7.116: The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761);Three review rounds on one pull without an approval hand it to a person in one card (#1763);Three review rounds on one pull without an approval hand it to a person in one card ( 5a2b2f0
- The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) 48e5749
- Three review rounds on one pull without an approval hand it to a person in one card (#1763) a8be7fd
- Three review rounds on one pull without an approval hand it to a person in one card (#1763) 961b1fd
- The owner reads what outside agents tried: a compact, redacted request log, landed from pull #1383 on today's main (#1761) 0ab0857
- Boards, step 3: a board is a JSON file in a forge-owned repo, made, renamed, duplicated and deleted from /boards (#1767) be0e141
Boards panels now come in six types: line, bar, stacked area, number with sparkline, table and heat strip. You pick the type beside the query on
/boards/dataand in the add/edit panel forms, and a saved panel keeps it.src/boards/query.ts): it takes an optionalseriescolumn, which splits each group by a second column. Stacked area and the heat strip need this to draw time × category. The column name is checked against the source's column list, and an unknown or injected name is refused by name. Rows only includeserieswhen the query asks for it, soPOST /api/v1/boards/queryanswers exactly as before for existing queries.src/boards/chart.ts): each type has its own function, anddrawChart(chart, cells, title)is the one entry point the pages use. The function names and numeric caps are in the code; what to look at:currentColor).runForhelper drops the series for line, bar and number, so their groups aren't split. On/boards/data, heat-strip cells and table rows link to the rows behind them when the query groups by time. The table type doesn't repeat itself as a second table underneath. The "Pin to board" form carries the chart and series too.Tests: added to existing files that are already in the gate.
test/boards-page.test.tsdraws all six types from one seeded query (runs per day split by kind) and counts what each draws: 3 points, 3 bars, 3 bands, the value 5 with a 3-point sparkline, 5 table rows, and 9 heat cells of which 5 link. Following the heat cell forchecklists exactly runs m3 and m4. It also checks bar, stacked-area and heat geometry against hand-calculated numbers, the folding into "other", and escaping for every type.test/boards-query.test.tscoversseries.test/boards-store.test.tschecks that a panel's chart and series survive the form, the saved file and the board page.The type check is clean, and the three boards files plus the five cross-check files pass (343 tests).
To try it: sign in as an admin and open
/boards/data?source=runs&by=hour&series=kind&chart=heat, then switch the Chart select.🤖 Generated with Claude Code
Closes #1562