Instruments States gallery
// States gallery

States gallery

Every instrument in every state: nominal, warning, critical, missing value, loading, stale and offline, side by side.

Every <talos-*> instrument takes the same data-state vocabulary (see the instrument contract). This table renders each one in seven columns, so you can check that a state reads the same way across the whole set:

  • nominal, warning, critical: a live reading in each band.
  • missing value: no value at all. Scalar instruments show —, park at their minimum and drop the band colour; the host reads data-state="unknown".
  • loading: state="loading". The host gets a hatch, aria-busy="true" and no band colour.
  • stale: updated-at four minutes ago with stale-after="60". The last reading stays, dimmed, with its age (4m) in part="age".
  • offline: state="offline". Text and graphic drop to the tertiary text colour; the band colour is suppressed.

The loading, stale and offline cells hold the warning reading, so you can see which states keep the band colour (stale) and which suppress it (loading, offline). Scroll the table sideways on a narrow screen; the instrument names stay in view.

instrument nominalwarningcriticalmissing valueloadingstaleoffline
compass band = distance from target
delta two colours: up, flat, down
dots
flow
gauge
groundtrack per-satellite band
histogram
led
matrix
meter
odometer no bands: one value
orbital worst node sets the core
percentile band on p99
plane per-satellite band
range window 40 to 70
readout
spacecraft per-part band
spark band on the last point
stat
status worst channel
ticker per-event level
trend

Not in the gallery (no state attribute in the manifest): talos-corner, talos-notch, talos-panel, talos-popover, talos-sheen, talos-toggle.

Reading the table

The rows come from the package’s custom-elements.json: every element that declares the state attribute is an instrument and gets a row. The cells are generated from one table of attributes per instrument, and the instruments that take their data by property (.values, .cells, .nodes, .sats, .parts, push()) are filled by a script after they upgrade.

Instruments whose data is a collection or a set of attributes rather than one value (flow, groundtrack, led, orbital, plane, spacecraft, ticker) have no built-in notion of a missing reading: with nothing supplied they draw an empty or zero frame and the host stays data-state="live". Set state="unknown" yourself when the feed has no data:

<talos-orbital state="unknown"></talos-orbital>

The markup behind one row

<!-- nominal / warning / critical -->
<talos-gauge warn="60" crit="85" unit="%" value="34"></talos-gauge>
<talos-gauge warn="60" crit="85" unit="%" value="72"></talos-gauge>
<talos-gauge warn="60" crit="85" unit="%" value="93"></talos-gauge>
<!-- missing value -->
<talos-gauge warn="60" crit="85" unit="%"></talos-gauge>
<!-- loading, stale, offline -->
<talos-gauge warn="60" crit="85" unit="%" value="72" state="loading"></talos-gauge>
<talos-gauge warn="60" crit="85" unit="%" value="72"
  updated-at="2026-12-03T09:00:00Z" stale-after="60"></talos-gauge>
<talos-gauge warn="60" crit="85" unit="%" value="72" state="offline"></talos-gauge>