Case study · Enterprise UI · Design system

Metal in the oil

A model flags a gearbox and hands the operator a number.
The console shows what that number is made of, so a person can disagree when the reason is thin.

RoleProduct designer · self-initiated
ScopeDesign system, four screens, working prototype
DataKelmarsh and Penmanshiel wind farms, open, CC-BY-4.0
Year2026
ChainFigma variables → CSS custom properties → Tailwind theme
The setting: a turbine field at the end of the day, where the model’s number lands on somebody’s screen. Staged image, not a photograph of the farms in the data.
The setting: a turbine field at the end of the day, where the model’s number lands on somebody’s screen. Staged image, not a photograph of the farms in the data.
At a glance
Problem
An operator watches twenty turbines. A model flags one: this gearbox is probably failing. Sending a technician costs money, and he may find nothing. Not sending risks a part that needs a crane. In nine years of logs from these exact machines, the signal behind that flag was right 22 times out of 51. A screen that prints the percentage and stops has made the decision for the operator, and kept the reason to itself.
My role
Product designer, self-initiated. I chose the problem, found the open dataset and set the scope. I counted the base rates the interface quotes. I built the token set and the component library in Figma, then wrote the prototype in code against the same tokens. The base primitives come from the shadcn/ui kit. Claude built the Figma scaffolding and the code from my spec, at my side, and every value and every decision on the screens is mine.
Value
  • 22 of 51: every number the interface quotes is counted from nine years of real turbine logs, not invented for a mockup
  • About three weeks of warning: the median lead a true flag buys, which is what makes “keep watching” a real option instead of a polite one
  • One token chain: Figma variables to CSS custom properties to a Tailwind theme, so the library and the running prototype cannot drift apart
Try it
Stack
Figma variablesshadcn/uiViteReactTypeScriptTailwind 4PythonPlaywrightGitHub Pages
Self-initiated concept, not a shipped product · data from Cubico Sustainable Investments, CC-BY-4.0 · base rates counted, not estimated
01 · The decision

An operator has three ways out of a flag. None of them is free.

A wind farm reports every ten minutes. Wind speed, power, oil temperature, vibration, metal particles in the oil. A model compares today with the machines that failed before. It returns one number. On the screen that number lands next to one turbine, lifted out of a list of twenty.

The gearbox is the expensive part. Replacing one takes a crane and costs hundreds of thousands. Caught early, the same fault is a bearing, swapped during a stop that was already planned. That gap is the whole reason the model exists.

The operator has three ways out. Send a technician, and pay for the visit even if he finds nothing. Keep watching, and let the machine keep turning on a bad bearing. Dismiss the flag, and own the gearbox if it goes.

So the console opens on the whole fleet, not on a notification. Each turbine is a lane across the last six weeks. Alarms are ticks. Service visits are rings. Outages are blocks. The flag is a full line. Next to the lane sit the severity, the confidence with its bar, the days since the flag, and the counted median warning in italic, because it is a judgment placed next to readings. The flagged machines sit on top. The same rows exist as a table, at three densities, from one component.

The fleet as lanes: one turbine per row over the last six weeks, frozen on 10 February 2023, the day Kelmarsh 4 stopped itself. Twenty real machines; every mark is a logged event. Capture of the working prototype.
The fleet as lanes: one turbine per row over the last six weeks, frozen on 10 February 2023, the day Kelmarsh 4 stopped itself. Twenty real machines; every mark is a logged event. Capture of the working prototype.
02 · The data

Every number on the screen is counted from nine years of real turbine logs

There is no invented client here and no fictional brief. The console runs on open data from two British wind farms, Kelmarsh and Penmanshiel, released by Cubico Sustainable Investments under CC-BY-4.0. Twenty turbines. A reading every ten minutes. 1.57 million logged events, 2016 to 2024.

The signals the model leans on are real, and the export names them: oil temperature, oil pressure, bearing temperatures, drive train vibration, a particle count in the oil. Of 299 columns, 107 carry data. The other 191 are empty all year. Anything missing is marked NaN, not zero. A zero is a measurement. A blank is the absence of one. The interface has to keep that difference.

The panel quotes a counted number, not a hunch. I grouped the particle alarms into episodes: alarms on one machine, less than two weeks apart. Then I checked what happened next. Fifty-one episodes on eleven turbines. Twenty-two ended in a forced stop within six weeks. When the signal was right, it bought about three weeks of warning: a median of 18.5 days. Four times it bought none.

One number needed correcting first. The condition sensors show only 65% coverage in 2016, which looks like a sensor dropping out. It is not. Those channels did not exist before May 2016, and they run at 95 to 100% after. The gap is a commissioning date. An interface built on the first reading would have solved a problem that was never there.

The only sheet in this case study that is not a screen: 51 metal-particle alarm episodes on 11 of 20 turbines, 2016 to 2024, and how much warning the 22 true ones gave. Counted from 1.57 million logged events.
The only sheet in this case study that is not a screen: 51 metal-particle alarm episodes on 11 of 20 turbines, 2016 to 2024, and how much warning the 22 true ones gave. Counted from 1.57 million logged events.
Counted from the Kelmarsh and Penmanshiel event logs · Zenodo 16807551 and 16807304 · CC-BY-4.0
22 of 51
alarm episodes ended in a drivetrain outage within six weeks
18.5 days
median warning when the signal was right: the middle of 22 values, range 0 to 38
1.57 M
logged events on twenty turbines, 2016 to 2024
57.8%
of all lines are five routine messages: start-up, run-up, system OK, low wind, mains
03 · Density

Most of the log is the turbine saying that it is fine

Nine years on six machines produced 504,180 events. That is about twenty-eight per turbine per day. Sorted by time, the way a feed arrives, the screen is unreadable. Not because of styling. Five routine messages make up 57.8% of every line ever written: start-up, run-up, system OK, low wind, mains connection. The log spends most of its life saying the turbine woke up and there is no wind.

The lines that matter are rare. In the same nine years: fifteen particle alarms, seven stops for low oil pressure, six warnings for bearing temperature. What the operator needs is a dozen lines hidden in half a million.

So the naive dashboard fails before anything is drawn. Four decisions in the row carry most of the fix. Numbers in monospace, right-aligned, so a column lines up under a moving eye. Confidence as a bar with its number, never the number alone, because a bar can be compared across rows without being read. A missing reading written as “no signal”, because a dash and a zero look alike and mean opposite things. Severity as ink and weight, not a coloured dot: a grey word, a black word, bold with a rule, white on the one red block, plus a left bar of 0, 2, 4 or 8 pixels. The rows sort by it. The routine lines fold into one count with a way to open them. The alarm and the operator’s note stay in view.

The same eight machines and the same readings twice: a default dashboard on the left, the prototype’s compact table on the right, with the four decisions in the row marked. Under both, the same morning’s log, raw and folded.
The same eight machines and the same readings twice: a default dashboard on the left, the prototype’s compact table on the right, with the four decisions in the row marked. Under both, the same morning’s log, raw and folded.
04 · The system

The library exists so that one number cannot contradict itself on two screens

The base primitives come from the shadcn/ui kit. I did not redraw them. A button, an input, a radio group, a text area: that is plumbing, and drawing it again proves nothing. Everything the project exists for sits above that line, and that part is mine. The density scale. The lane and its marks. The data cell. The chart palette. The confidence bar and panel. The provenance line. The override path. The severity matrix. Twenty-seven component sets in all.

Variables first, components second. Colour, spacing, type, radius and motion live as Figma variables in six collections. Every component reads them. None carries a value of its own. Colour is a decision as much as a token: black, white, metallic grey and one red, spent only on STOP. A red-and-green pair fails colour-blind operators, and “clear” has to stay quiet. The same 24 tokens give two modes, paper on metal by day and graphite by night. The console switches at the wind farm’s own sunset. Density is a mode too, so one lane draws at three row heights without a second component.

The chain runs one way. Figma variables become CSS custom properties. Those become a Tailwind theme. The prototype reads the theme. The variables export to a JSON file that generates the theme, so nothing in the code carries a colour, a size or a duration of its own. Change a value in one place and the other cannot quietly disagree. That is why the system was drawn before the prototype, not traced back from it afterwards.

The library as the prototype sees it: the 24 colour tokens in both modes, the three densities, the components drawn by the console’s own compiled stylesheet, the same lane at three row heights, and one token followed from a Figma variable to a component.
The library as the prototype sees it: the 24 colour tokens in both modes, the three densities, the components drawn by the console’s own compiled stylesheet, the same lane at three row heights, and one token followed from a Figma variable to a component.
The technician’s side of the same system: a tablet on site, where the service order arrives. Staged image.
The technician’s side of the same system: a tablet on site, where the service order arrives. Staged image.
05 · When the model is unsure

The panel shows what raised the number and what lowered it, in that order

On 10 January 2023 a turbine at Kelmarsh logged a particle alarm. It lasted five minutes, at full power. More followed: 26 January, then 1, 5 and 10 February. On the evening of 10 February the alarm crossed its daily threshold and the turbine stopped itself. Thirty-one days from first signal to forced outage.

That is the case the panel is built for. It is built to be doubted. It opens inline under the lane, so the six-week strip stays in view. The number sits large, with its bar. Under it, the counted basis in one sentence. Then two lists. What raised the confidence, each signal with its weight. Directly beneath, what lowered it, at the same weight. Counter-evidence is never folded away behind a control. A reason the operator cannot see is a reason they cannot weigh. When nothing lowers the number, the panel says so instead of hiding the heading.

Every line says where it came from and how old it is. A missing signal says “no signal” in words instead of resolving to zero. The flag keeps its own date and the confidence it had then, 0.17 on 10 January, so the growth of the number is visible. In the prototype the confidence is a printed rule, not a trained model: 0.06 to start, 0.11 for each day with an alarm, plus the counted pattern, minus a recent service visit, minus a sensor that reported its own defect. A real product would put a model behind it. The panel would not change. Its job is to show the parts, whatever produces them.

Why the model thinks so, opened inline under Kelmarsh 4: the number with its parts, the counted basis, what raises it and what lowers it, three actions in one row; below, the machine’s real six weeks and today’s log, folded.
Why the model thinks so, opened inline under Kelmarsh 4: the number with its parts, the counted basis, what raises it and what lowers it, three actions in one row; below, the machine’s real six weeks and today’s log, folded.
06 · When the model is wrong

After a month of alarms, the log said the sensor itself was broken

A second machine, at Penmanshiel, ran the same story to a different end. Particle alarms on 13, 22 and 23 March 2024. More in early April. Some arrived in the middle of a storm that filled the same feed with high-wind stops and tower warnings. A technician came on 9 April. The alarms came back after the visit. On 16 April the machine was taken out of service for 141 hours.

Then, on 18 April, the log raised two more warnings. The temperature sensor was defective. So was the particle sensor. Five weeks of alarms, a site visit and six days of downtime, and nothing in the record can say whether there was ever metal in that oil. The prototype replays this episode on its own clock, so both stories can be read on one screen.

This is why the third action is not a courtesy. “Disagree” sits in the same row as “send to service” and “keep watching”, at the same weight. It is never demoted into a menu. Disagreeing asks for a reason, typed or dictated, with “sensor is suspect” first on the list. It shows the entry before it is written. Then it writes it into the machine’s history with a name against it. The next operator meets the argument, not a silently cleared flag. The model gets the disagreement back as training signal. The record of who overruled what, and why, has to outlive the model.

The disagree path on Penmanshiel 15: a reason, a confirmation that shows the entry before it is written, the entry in the machine’s history. Under it, the turbine’s real log for the six weeks before, with the storm, the visit, the stop and the sensor defect.
The disagree path on Penmanshiel 15: a reason, a confirmation that shows the entry before it is written, the entry in the machine’s history. Under it, the turbine’s real log for the six weeks before, with the storm, the visit, the stop and the sensor defect.
07 · Accessibility

A dense grid with charts is the hardest accessibility case I have built

Every page in this portfolio scores 100 for accessibility. A data grid with charts is harder than anything before it. Two things break first. Colour alone is not enough. About one operator in twelve will not tell the greys apart, so every series has a shape too: solid with a square, dashed with a ring, dotted with a triangle. The legend repeats all three. A monochrome console makes this honest by construction. Under a deuteranopia simulation the chart looks the same, because nothing was carried by hue.

A grid twenty rows deep is a keyboard trap unless the path through it is designed. So it is. Tab reaches a lane. Enter opens its panel inline. Tab walks the three actions. Escape closes the form, then the panel, with focus back on the lane. The focus ring is drawn inside the lane in the focus ink, so a selected or flagged row cannot swallow it.

The numbers are measured, not assumed. Every text token clears 4.5 to 1 in both modes. The STOP block reads at 6.5 to 1 by day and 6.1 at night. The one value under 4.5, the fleet-median line at 3.9 in light mode, is a chart line and never a label, and it clears the 3 to 1 that applies to it. The confidence bar has a text equivalent, “confidence 0.70, high”, because a bar that only exists visually is a number withheld. A missing reading says “no signal” to a screen reader exactly as it reads on screen. Lighthouse on the deployed prototype: accessibility 100, performance 100, SEO 100, best practices 96. Colour-blindness checked with Stark. Target: WCAG 2.2 AA.

Measured, not assumed: contrast ratios of the tokens in both modes, the same chart under a deuteranopia simulation, and the keyboard path through the grid recorded on the running prototype, with the focus ring on a lane and inside the panel.
Measured, not assumed: contrast ratios of the tokens in both modes, the same chart under a deuteranopia simulation, and the keyboard path through the grid recorded on the running prototype, with the focus ring on a lane and inside the panel.
08 · What I would test

No operator has used this yet. That is the first thing I would change.

The honest limit of this project: it has never met the person it is for. Everything above is reasoned from real data and real failure histories. That is a better foundation than taste. It is still not the same as watching somebody use it at four in the morning.

Four questions would go first. Does anyone press “disagree”? Or is it a button that reads well in a case study and dies in production, and if it dies, is that because disagreeing feels risky rather than hard? Is the bar beside the number read faster than the number alone, or does it only look considered? Does the word “no signal” stop operators from treating a blank as a zero? And at what confidence does an operator stop watching and send somebody? That threshold belongs to them. The interface should learn it, not set it.

The operator’s panel on a tablet, out where the first test belongs: with the person who has to make the call. Staged image.
The operator’s panel on a tablet, out where the first test belongs: with the person who has to make the call. Staged image.

A number nobody can argue with is not advice. It is an order.