Skip to content
Design System
GitHub

An order that is not yet in effect: what was ordered beside what the device last reported (revoking is not revoked), with when it takes effect.

Ordered, not yet in effect

It takes effect at the device's next check-in. Until the device reports it back, treat the earlier state as still in place.

Ordered
Revoked: every module off
1 minute ago (Nov 27, 2026, 14:01)
Believed on the device
Running 4 licensed modules
Last check-in: Reported this minute. Last report at Nov 27, 2026, 14:01

Pending

Install
npx shadcn add @syncrobotic/desired-state

Also installs: lucide-react@^1, @syncrobotic/cn, @syncrobotic/use-now, @syncrobotic/relative-time, @syncrobotic/status-glyph, @syncrobotic/freshness-stamp

Overview

When to use

  • A revocation, a removal or a licence change waiting for the device's next check-in.
  • Any order a device confirms later: a config push, a module switched off.

Use something else

  • A change that applies at once: a toast saying it is done.
  • A bounded process with progress: Progress.

More examples

States and real uses. Each example is also a Storybook story and a visual regression test.

Overdue

Blocked

Air gapped

In effect

Zh tw

Usage rules

  • Use it for any order that travels on a check-in: revoke, remove, a licence change. Until the device reports it, say it is ordered, never done: "revoking", not "revoked".
  • The reported side is believed, not known: write what the device last said ("Running 4 modules"), and the component labels it as believed.
  • Quiet while it waits. Colour only when it is overdue (overdueAfterMs) or cannot arrive: the device stopped reporting, or the product refuses its check-ins (blocked with blockedReason).
  • Air-gapped devices wait for a file applied by hand: pass airGapped and leave overdueAfterMs out unless your process has a deadline.
  • Ways to end the wait some other way (cancel, close out by force) go in its children, each saying what it does not do.

Changelog

  • 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
  • 0.56.02026-11-27First release: phases pending, overdue, blocked (no check-in can carry it) and in effect from desiredPhaseOf; "takes effect at the device's next check-in", the reported side as believed, the last check-in's freshness; colour only when overdue or blocked.

How to upgrade