Diagnostics
v0.64.0, changelogBetaA robot's health from ROS DiagnosticArray: the worst level and counts first, then a tree by "/" path with levels rolled up, each status a glyph and a word, Stale, a Problems filter and search.
AMR-07
updated 1 s ago
Error5 of 15 need attention
- 1Error
- 1Stale
- 3Warning
- 10OK
- PowerOK
- MotorsError
- SensorsStale
- ComputersWarning
- SoftwareOK
Default
Install
npx shadcn add @syncrobotic/diagnostics Also installs: lucide-react@^1, @syncrobotic/cn, @syncrobotic/skeleton, @syncrobotic/status-glyph, @syncrobotic/badge, @syncrobotic/chip-group, @syncrobotic/description-list, @syncrobotic/empty-state, @syncrobotic/search-field, @syncrobotic/tree, @syncrobotic/use-now, @syncrobotic/format-number
Overview
When to use
- The Health tab of a robot's page: which motor, sensor, computer or node is unwell, and what it reports.
- A field technician's first look at a robot that stopped: Problems narrows the tree to what is not OK.
- Checking a robot after commissioning or an update: everything OK, nothing stale.
Use something else
- Something an operator must act on now (a motor fault that stopped the robot): raise an Alarm as well; this panel shows the detail behind it.
- One robot's state in a list of robots: Status glyph with a word, from the worst level here.
- A reading's history (a motor's temperature over a shift): a line chart in Chart.
More examples
States and real uses. Each example is also a Storybook story and a visual regression test.
Details
Problems
Search
All OK
Stale
Flat
Loading
Empty
Usage rules
- For finding what is wrong with a robot's hardware and software, not for raising it: a fault that needs someone now is an alarm too. This panel says where and why; the alarm asks for the action.
- Feed it /diagnostics_agg when the robot runs the aggregator: its "/" names give the tree. Raw /diagnostics works too, as a flat list.
- Keep every name's latest status (
mergeDiagnostics) and stamp each withreceivedAtwhen it arrives, never the header stamp. KeepstaleAfterMsat the aggregator's timeout (the default 5 s) unless a node publishes slower;nullonly for a record that is not live. - Colour only on the glyph and the word, and only for Warning and Error. Rows are never tinted, so a tree with several problems still reads as a list.
- Do not sort the tree by level: rows that move as levels change are hard to read and to tap. The summary puts the worst first; Problems narrows the tree to it.
- Put it on the robot's own page or a sheet from the fleet table, full width; on a phone it keeps the name and the word and opens a row for the message and values.
Changelog
- 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
- 0.53.02026-11-27Its doc opens with its description, word for word; the code is unchanged.
- 0.51.02026-11-27Comments trimmed to what they need to say; the code is unchanged.