Skip to content

Dashboards

Shows how work is going and what waits on a person, in one page that is read in under a minute.

A dashboard is read, not used. People open it to learn whether anything needs them, then leave. This page decides what a dashboard shows, in what order, and how to keep it calm enough to read at a glance.

The problem

Operations data comes from many places: the ERP, the production lines, the quality system. Showing all of it produces a wall of numbers where nothing stands out. A good dashboard picks few figures, gives each one context, and puts the things that need a decision where they cannot be missed.

Anatomy

PartComponentJob
Scope controlSelect or Toggle GroupChooses the site or the time range for everything below it.
FiguresA description list on hairlinesThree or four numbers, each with a label and a line of context.
ChartChartOne question answered over time. Ink series, no legend when there is one series.
Waiting on a personA list with Buttons and a state squareWork that cannot move until someone decides.
Recent activityTableWhat happened, where, who owned it and its state.
Line statusTabs and ProgressOne entry per production line, with the detail beside it.
ConfirmationSonnerSays that an approval was recorded.

Blocks

Operations overview

dashboards-01 opens with a site selector, four figures, a bar chart of output by day, a list of what waits on you and a table of recent activity. Choosing a site filters every part. Pressing Approve on a waiting item removes it, adds a line to the activity table and shows a confirmation.

Open in a new tab

Choose it as the landing page of a product, for a manager who covers several sites and needs to know what to do first.

Line monitor

dashboards-02 is a master and detail layout. The left column lists the six production lines with their state and efficiency. The right side shows the selected line: figures, hourly or daily output against target, and the progress of each work order. A toggle switches the chart between today and this week.

Open in a new tab

Choose it when people watch a set of similar things, such as lines, machines or sites, and often need the detail of one of them.

Behaviour

States

  • Waiting on a person: the heading of that section carries the one crimson square on the screen. When the list is empty the square becomes ink and the heading says that nothing waits.
  • Line states: ink for running, outline for a changeover, crimson for a stopped line that needs an operator, grey for off. A screen shows one crimson square, so only one line may be in that state at a time in the sample data.
  • Empty and filtered: a site with nothing waiting says so in words. A figure never shows a dash without a reason.
  • Loading: show the layout first. See the loading states pattern for the placeholder rules.

Responsive behaviour

WidthBehaviour
1280px and widerFour figures in a row. Chart and waiting list sit side by side at 7 and 5 columns.
768px to 1279pxFour figures in a row. Chart and list stack.
Below 768pxFigures wrap to two per row. The table drops its owner column below 768px and its site column below 640px. In the line monitor the line list sits above the detail.
320pxSame as below 768px. Nothing scrolls sideways; the table scrolls inside its own container if a column still does not fit.

Keyboard and focus

KeyAction
TabMoves through the site selector, the buttons in the waiting list and the table.
Arrow DownMoves to the next line in the line list, or the next option in the open selector.
EnterPresses the focused button or opens the selector.
SpacePresses the focused button.
Arrow RightMoves to the next option in the time range toggle.

After you press Approve the item leaves the list. The block moves focus to the list heading, so keyboard users are not left on a button that no longer exists, and it announces the result with a confirmation.

On a phone

A dashboard is read more than it is pressed, so most of it keeps the shipped sizes. dashboards-01 puts pointer-coarse:touch-controls on the site picker in the header (and on its list, which opens outside the page) and on the Waiting on you list, whose approve and review buttons are what a person does from a phone. dashboards-02 puts it on the header with the time range toggle. Charts and the activity table stay as shipped. See Sizing.

Accessibility

  • Give every region a heading and aria-labelledby, so screen readers can jump between figures, the chart, the waiting list and the table.
  • Mark up figures as a description list, so each number is read with its label.
  • A chart needs a text alternative. Use a figure with a caption that says what the chart shows, and keep the chart's accessibility layer on.
  • Colour is never the only signal. Every state square has a word beside it.
  • Give buttons that repeat in a list a full name: Approve PO-2416, not Approve.

Content

  • Start with the question the page answers: "Operations overview", "Line monitor". Do not title a dashboard "Dashboard".
  • Each figure has a label, a value and one line of context such as the comparison with a target. A number alone is not information.
  • Use sentence case and plain words. Write "Orders waiting", not "Pending approvals KPI".
  • Write dates and times the way people say them: "Week 48", "06:40", "Thursday".
  • Round figures that are read, keep exact numbers in the table.
On-time delivery
96%
Four points above target
Open non-conformities
7
Two older than 14 days
On-time delivery
96%
Four points above target
Open non-conformities
7
Two older than 14 days
Do

Give every figure a label and a line that says what it is compared with.

96%
7
Don’t

Don’t show bare numbers. Nobody can tell whether 96% or 7 is good.

Install

pnpm dlx shadcn@latest add @silkware/dashboards-01
pnpm dlx shadcn@latest add @silkware/dashboards-02