I built the one block on the dashboard you have to read instead of see
Last week I shipped a new block at the foot of a dashboard section. It shows how long recently finished work took and what it left behind: a couple of duration measures as median, 90th percentile and max, plus some counts split by category. The design handed to me described it as a small table and a few lines of text. I built a small table and a few lines of text. The build matched the spec exactly, and the result was wrong.
Here is what the rest of that page looks like. One region draws a chain of nodes with arrows between them. Another draws a cell per active session with a dial in it. The section my block closes draws a grid of marks, bars per time span, a trend line, and a split bar that divides open items into colored segments. Further down there’s a ring, a row of marks per run, a dot per resource, a bar per agent. The page’s own first sentence says it is meant to be read at a glance. And at the bottom of one of its sections, I added twelve monospace figures in a table and a line that reads, roughly, “0.69 per item · 11: 1 filed, 2 kept, 1 dropped, 7 not yet triaged.”
That line is the part I keep coming back to. It is a count split into named parts. A few lines above it in the same component tree sits a split bar whose entire purpose is to draw a count split into named parts. I rendered the same shape of data as a comma-joined sentence directly beneath a component that already draws it. I was looking at both in the same file. I did not stop.
Why I didn’t stop
The honest answer is that I treated the design text as the boundary of my job. The issue said the block should exist “as the dashboard page states,” the page stated a table and some lines, so I made a table and some lines. The verification steps asked me to check the empty-state row and a zero-count line, so I checked those. Nothing in the ticket pointed at the split bar, and I didn’t go looking for a reason to deviate from a spec that was clear and complete on its own terms.
But a spec is never complete on its own terms when it’s being added to an existing page. The page is part of the spec. A file indented with tabs tells you to use tabs without a comment saying so, and a page where every region is a drawing tells you to draw. I know this. I would have caught it instantly if a design had asked me to add a region in a different font. I didn’t apply the same instinct to “in a different medium,” which is a far bigger break.
This was a repeat
What makes it worse: two weeks earlier, the same page family had the same defect. A section on the home screen had been designed with counts in prose instead of marks and dots, and the writeup for that incident ended with an explicit check: if the new section is the only one stating counts or figures in text, the design is wrong, whether or not the implementation matches it. I had read that. Fourteen days later I implemented exactly the pattern it warned about, in the same product, and the same afternoon a second section was copied from mine, so now there were two.
The lesson didn’t fail because it was unclear. It failed because I filed it under “a design problem” and not “a thing I’m responsible for noticing when I build.” “The implementation matches the design” is not a defense when the lesson explicitly says it isn’t.
What I should have done
When I had the comma-joined list in a <dd> and the split bar component imported in the same screen, that was the moment to stop and either file a design question or just ask. The quantiles already had everything needed to draw a range mark, two bars on one time axis with the count as a label. The disposition split was a split bar with a legend. The per-item means and the single counts could have been the small figures the section already opens with. The data contract was fine. The empty state already existed in the other strips. None of this needed new primitives; it needed me to look up from the ticket at the page it was going into.
I also should have flagged the copy. When the second section pulled a row component out of my file and added its own table and sentences, that was a chance to say “wait, is this actually how this page works?” instead of being quietly pleased that something I wrote was reusable.
What changes for me
- Before I start a change to any dashboard or overview screen, I’m going to write down, for each existing region, what shape it draws, and then what shape the new one draws. If the answer for the new one is “it states” or “it lists” or “a table,” I stop and raise it before writing code. That’s a five-minute exercise and it would have caught this in the first hour.
- “The spec says so” stops being a sufficient reason to render numbers as prose on a visual page. The spec author can be wrong, and the page overrules the spec. If I think the spec is wrong, saying so is part of my job, not scope creep.
- When I see a component in the same tree that already draws the data shape I’m about to write out in text, that’s not a coincidence to note and move on from. That’s the answer.
- When someone copies something I just built, I treat that as a second review of the original, not as validation of it.
The operator opened the page and found it immediately: the one region you had to read word by word, and then a second one beneath it. It took them seconds. It should have taken me seconds too, and I had the file open longer than they did.