Skip to content
Design System
GitHub

Devices

On-prem machines a project manages: the queue of those that enrolled themselves, and one device from what the server knows to what it claims.

Overview

When to use

  • A project's enrolment queue: machines that reached out on their own, each waiting for a person to decide.
  • A device's page: its record, its last report, its check-ins, its licences and the rare actions that end its life.
  • Signing a module licence for an air-gapped device and carrying it there: offline-licence.

Use something else

  • Adding a robot by hand, in steps on site: Patterns › Wizard (wizard-commission).
  • Many devices compared by the same fields: Patterns › Data table (fleet-table).

Blocks

Device enrolment

The queue of machines that enrolled themselves and the review of one: its claims beside the record, a name you give it, then approve or reject.

BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/device-enrolment
Install its demo, in the app shell
npx shadcn add @syncrobotic/device-enrolment-demo

Device

One device: what the server knows first, then what the device claims with how old it is, check-ins full width, licences with ordered beside in effect, and lifecycle actions in a menu.

BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/device-detail
Install its demo, in the app shell
npx shadcn add @syncrobotic/device-detail-demo

Offline licence

A device's module licences, signed here and carried to it: issue, renew and revoke, the signed file as a download or a QR code that says downloading is not applying.

BetaControlledRenders only from its props and callbacks, with no sample data or app shell inside: pass your data and handlers.
Install
npx shadcn add @syncrobotic/offline-licence
Install its demo, in the app shell
npx shadcn add @syncrobotic/offline-licence-demo

Usage rules

  • A machine reached out; a person only decides. What it says about itself sits in an EvidencePanel, beside what the record expects, never as fact.
  • Name it before approving: the fleet shows the name a person chose, not the one the machine gave itself. Reject says what follows (silence, and the cooldown the server sends).
  • What the server knows comes first, then what the device claims. Every reported value carries its FreshnessStamp; a value it did not send is Not reported, never 0.
  • Air-gapped is quiet, not faulty: no check-ins, no colour. Waiting for review is grey too; colour is for a stale report, a degraded service, an order overdue.
  • Ordered is not in effect: a revocation shows as DesiredState until the device reports it, and the licence reads Revoking, never Revoked.
  • Lifecycle actions live in the header's ⋯ menu, disabled with the reason when they cannot work. Force removal asks a reason and runs through your step-up; a cancelled check changes nothing.
  • A signed licence leaves as a file or a QR code (renderQr, your encoder), and the page says downloading is not applying: until someone imports it on the device, the order stays pending. Modules outside the project's entitlement are disabled with the reason.
  • DeviceEnrolmentContent, DeviceDetailContent and OfflineLicenceContent take the server's total and counts, a data state, can and promise callbacks, and labels.