Skip to content
Calm motion: animations on this site only fade, with no movement

Machine board ​

The machines of a line with their state and how long they are in it

Shows a whole line at a glance, on a big screen on the shop floor or in the office of the line lead. Such a board is often called an andon board.

Basic

2 running, 1 idle, 1 setup, 1 offline, 1 down

  • machines is a list. Each machine has an id, a name, and a state. It can also have the minutes in that state, the job it makes, and a reading.
  • The state is running, idle, setup, down, or offline. Each state has a mark, a word, and an edge. A down machine has a thick red frame and a tint.
  • The machines that need help come first: down, offline, setup, idle, then running. sort: false keeps your order.
  • A status line counts the machines in each state, such as "4 running, 1 down".
  • Each tile is a button that emits select with the id, for example to open the machine.
  • Change the words with labels or a label pack: title, the five states, and the functions since, time, and summary.

Usage ​

ts
import { BlessMachineBoard } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
machines*BlessMachine[]—
sortbooleantrueput the machines that need help first
labelsPartial<Record<BlessMachineState, string> & { title: string; since: (time: string) => string; time: (h: number, m: number) => string; summary: (parts: string) => string; }>—

Events

NamePayloadDescription
select[id: string]

Released under the MIT License. Character names and artwork belong to their owners.