TJ's Desk

Draft. This note is unfinished and unlisted. It can change or disappear, so please do not share it yet. All drafts

Dashboards That Say What They Compare Against

Most of what I build on GRAIN turns into a dashboard, and every one of them reinvented its own grid, its own delta and its own empty state. A post about a dashboard skill for coding agents gave me the rules to stop doing that.

ai grain design dashboards

Every dashboard I have built on GRAIN started the same way: three stat tiles in a flex row, a sentence under each number, and a chart that the page never said how to read. The course reports, the run summaries and the cockpit home all made their own grid and their own idea of an empty panel. The design system had the pieces and no opinion about the page.

Ram Maheshwari posted about dashboard-design-skill by Otabek Abdiraimov, a skill that gives a coding agent a designer's rules for data screens (the post). One commenter asked the right question: does it tell the agent which numbers matter, or only how to lay them out? That question decided the first rule of the layer.

The page states its baseline

A delta of 12 percent means nothing until you know what it is 12 percent of. So the dashboard head holds three things: the title, the period, and what every delta on the page compares against, in plain text. Each tile then carries a one-word baseline beside its change, and the sentence lives once, in the head, instead of under every number.

Sales vs the two weeks before €48.2k1,2040 ▲ 12% vs prior▼ 3% vs priorwas 1 Revenue by sourceMonthly target

What I took, and what I left

From the skill I took the encodings: a slim share bar along each row of a ranked list instead of a tinted block behind it, a bullet graph instead of a radial gauge, "was 1" in a quiet tone instead of a red minus 100 percent when one sale became none, a grid that adds columns as the screen widens, and every panel state written in words (loading, empty with a next step, stale with when it was last true). I also took its habit of checking on screenshots at a phone and a desktop width before calling the work done.

I left its colour. The skill ships Tailwind tokens and red and green deltas. GRAIN is monochrome on purpose: whether up is good depends on the measure, and a component cannot know whether it is showing revenue or churn. So direction is a glyph and a word, and the layer has no hue to lose for a colour-blind reader.

I also left a chart library out. The trend chart already shows the pattern: the caller computes the values, the component draws them with tokens, and a table is the text alternative. The bullet graph and the share bars take their values through CSS custom properties.

Operable like everything else

Every tile and panel carries a data-surface address, so a tour, a spotlight or the reasoner can point at one number rather than at the page. A panel the AI is writing wears the same dashed in-transit edge as every other GRAIN surface. No new verb was needed.

The other half of the ask

The same request asked for the loop to notice which GRAIN packages a repo uses and to say when it has fallen behind. That touches PANTRY and my agent config, so it is a plan, not code: a doctor row that compares the resolved versions with the latest release, and an upgrade note per release that names a codemod when markup has to change. I will build it once I have decided how far behind counts as due.

Sources


The judgment is human. The typing, by design, is not.