Skip to content
The record
Finding23 August 20264 min read

Thirty-one pages into one visual system, and the ten defects that re-reading them exposed

Bringing thirty-one feature-first pages into a single visual system over four days exposed ten substantive faults — among them a page whose every write returned a 500 and had presumably been unusable since it shipped, a register showing no sold devices at all, and an activity log truncating in silence — supporting the stronger claim that a page nobody has re-read since it was written is a page with undiscovered faults in it.

methodsystems

What was done

Thirteen top-level navigation destinations, which wrapped onto two rows at ordinary window widths, were grouped into five that fit one row — the prerequisite for everything else. Each major page was then brought onto shared tokens and conventions, and because rebuilding a page means reading what it actually does, each pass turned up real faults: ten substantive defects across thirty-one pages. The starkest was the Lookups page, where every write returned a 500 — it managed the master dropdown lists behind both pallet layouts, so the feature had presumably been unusable since it shipped. Others were long-standing and user-visible: the assets register showed no sold devices at all, the activity log truncated in silence, the assets page rendered every device, and the dashboard's "In stock" tile counted five statuses while the list it linked to filtered one.

 

BEFORE dashboard tile ---- counts 5 statuses | | links to v assets register --- filters 'in_stock' only (almost nothing)

AFTER dashboard tile ---+ +--> stock-status.ts assets register --+ AVAILABLE / COMMITTED / GONE

 

One of the ten: a figure and the list behind it, each with its own idea of what it was counting.


Status

Shipped, 22–25 August 2026. Pull requests #15 through #45, thirty-one merges over four days. …

The problem

The app had been built feature-first for six weeks. Every page worked; no two looked alike. Tables had different header treatments, pages had different container widths, some paginated and some rendered every row, and the navigation had grown to thirteen top-level destinations that wrapped onto two rows at ordinary window widths.

What was built

** (#25) — thirteen destinations grouped into five, one row at every width.** The prerequisite for everything else: a nav that fits.

Then each major page brought into one visual system, and — this is the part worth recording — each pass found real defects, because rebuilding a page means reading what it actually does:

PRPageWhat the rebuild exposed
#22, #23Assets registerShowed no sold devices at all, and lost the pallet they sold from
#24AssetsRecord which pallet a device was sold from, and show it
#28Dashboard"In stock" counted five statuses; its link asked for one
#29InventoryCounted things not actually held
#31PalletsTwo defects the visual pass exposed
#32AssetsRendered every device; now paged
#38ActivityTruncated the log in silence; now paged
#40LookupsEvery write 500'd
#44Lot detailReconciliation did not tell the truth
#45Lot detailControls not gated on the permission the API enforces

Ten substantive faults, several of them long-standing and user-visible, found by looking carefully at pages nobody had questioned since they were written.

#40 is the starkest: every write on the Lookups page returned a 500. The page managed the master dropdown lists behind both pallet layouts — so the feature had presumably been unusable since it shipped, and it took a redesign pass to notice.

The smaller corrections, which are the same idea

  • #39 — state the shelf before listing it. A list with no statement of what it contains.
  • #35 — summarise the days instead of leaving the reader to add them up.
  • #34, #43, #37 — contain the page; card the panels; card two forms so they stop reading as one.
  • #41, #43 — make Delete ask first, and mark your own row in the user list.
  • #36 — put the toggle on the field it controls.

Every one is the same principle in a different place: the page should state what it is showing, and a control should sit next to the thing it affects.

Why it matters

The commercial argument for a visual system is consistency. The argument this series actually made is different and stronger: a page nobody has re-read since it was written is a page with undiscovered faults in it. Ten defects in thirty-one pages is a hit rate that justifies the exercise on correctness grounds alone.

What was deliberately not built

No component library or design-system package. The system is a set of shared tokens and conventions applied consistently, which is enough at this size and does not add a build dependency.

Open questions

None outstanding from this series.


The code

The #28 fix: the definition of a stock status moved out of the dashboard into one file both the tile and the register import.

// The one place the app decides what a stock status MEANS. These lists used to
// live inside dashboard.service.ts, so the dashboard could count one set while
// the list it linked to filtered another — and it did: the "In stock" tile
// counted all of AVAILABLE while its link asked for 'in_stock' alone.
 
// On the shelf and free to allocate.
export const AVAILABLE = [
  AssetStockStatus.IN_STOCK,
  AssetStockStatus.RECEIVED,
  AssetStockStatus.AUDITED,
  AssetStockStatus.AWAITING_AUDIT,
  AssetStockStatus.RETURNED,
] as const;
 
export const isAvailable = (status: AssetStockStatus): boolean =>
  (AVAILABLE as readonly AssetStockStatus[]).includes(status);
From apps/api/src/assets/stock-status.ts — an excerpt, trimmed to the technique it illustrates.

Not shown. The navigation's permission mapping and the guard it mirrors on the API side are left out — that is a security control still in use. The per-page rebuild diffs are not excerpted; they are page implementation, not illustration.

A published copy. Commit references and internal identifiers have been removed and the operator is not named; the engineering, the counts and the stated limits are unchanged.