High Command
LibraryTemplatesGet startedPricing
Get Pro · $79

Guide

Browse everythingGetting startedThemingYour data

Site

HomeTemplatesPricingChangelog

Templates 4

Command centerProFleetProCustomer trackingProField servicePro

Ops and shell 9

App shellProOps modelProAttention queueProMorning briefProShift handoverProLane panelProOwn-fleet partsProAgent action barProCustomizable dashboardPro

Map 17

PMTiles basemapPMTiles routeTrip hologramProBasemap styleMap geometryMapLand texture and dot lensProException heatmap and risk contoursProLane arcsProShipment layerOwn fleet layerProFleet map layersCurated place labels and sitesRoute traceEdge chipsProMap key, filters and paddingMap kitPro

Time and trips 11

Time and trip modelsEvent fieldProIn-transit rowsProImpact lineProActivity barProReplay clockTime controlPlayback overlayProTrip timetableProStage rowWeek cursorPro

Figures, charts and tables 14

Sourced valueKey-figure tileFigure groupPart barBand sparklineKPI stripProChart kitPop barWaterfall cascadeMargin chartsPro13-week cash ladderProWork tableProField railProHorizon gridPro

Zones and dispatch 10

Zones modelDispatch modelProGeofence layerGeofence eventsGeofence drawProService ringsDensity heatmapJob queueProAssign dialogProStop listPro

Design system 3

ThemeShared helpersUI primitives

Routing 3

Offline road routerAustin road graphAustin areas

Libraries 2

Fleet coreRoute core
High Command

Map, fleet and ops-console components for React. Built in-house, copied into your app with the shadcn CLI.

Product

  • Library
  • Templates
  • Pricing
  • Changelog

Build

  • Get started
  • Accessibility
  • Trip hologram

Templates

  • Command center
  • Fleet
  • Field service

New pieces by email. A short note when a release lands.

One email per release. Unsubscribe any time.

© 2026 High Command Pro licenseTermsPrivacyRefundsMap data © OpenStreetMap contributors · OpenFreeMap
Library/Time and trips

Activity bar

The activity bar: the event field over the shift with since-you-left and the next 8 hours due, zoom and pan like an audio timeline (15m, 1h, 6h, Shift), split tracks by area, source or status, In transit rows, headlines, the activity log, replay playhead, folded waveform strip.

Pro · included in the $79 licenseComponent@highcommand/activity-bar6 files
Get Pro · $79
See it in context

Expand the bar, zoom it with the wheel or +/−, click a column to read it.

Pro

Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing

Installation

$ npx shadcn@latest add @highcommand/activity-bar

Copies the source into your project and pulls in what it needs (7 other items). First time? Add the registry to components.json.

Props

<EventStrip />

The activity bar: the time axis with the event field over it and the live event log under it, in slim, field or tall height.

PropTypeDefault
eventsrequiredFeedEvent[]—

the live feed, newest first (`fresh`: arrived since the page opened, flashed once)

nowIsorequiredstring—

now (ISO): the bar's clock

refOf(id: string) => string | undefined—

a record's human name by id (a shipment's reference), for the log's links; the event's own subject label otherwise

shiftShiftData | null—

"Since you left" to the next 8 hours, offered as a fourth window (the command center's default).

reviewReviewControl | null—

Concept C: playback of the night.

densityFieldInput['density']—

The event field's per-minute counts from the server (Playback.density); the field draws once these and the window are known.

problemsreadonly StripProblem[]—

Reads that failed (the backfill, the playback): said over the bar, with Retry, instead of an empty strip.

emptyNounstring'events'

What the bar counts, for its empty state ("No fleet events in the last 1h"); `events` by default.

popOutPopOut | null—

The bar in its own window: the controls to pop it out, keep it on top or bring it back; `popped` is the copy in the window, where the log is always open under the bar and the bar's height is the window's business.

poppedbooleanfalse

True for the copy in the pop-out window: the log stays open under the bar and the window sets the height (default false).

onLink(l: AxisLink | null) => void—

Linked views: the column under the pointer, for the map; and the events a map object under the pointer is in.

linkedReadonlySet<string> | nullnull

Ids of the events a map object under the pointer is part of, marked over the field; null (default) for none.

fleetbooleanfalse

Fleet's bar: its rows by area are the five parts of the fleet.

impactStripImpact | null—

The impact line over the bar for the record open now (absent or null: no line).

laybooleanfalse

A thin glass strip over a map (with `shift`), its field opening upward: folded to its readout and waveform until expanded.

transit{ data: InTransit | null; loading: boolean }—

What is moving now, for the "In transit" rows (absent: that view is not offered). Read it while that view shows.

onOpen(ref: { type: string; id: string }, title: string) => void—

Open a record: an event's subject, a due item, an in-transit row.

onOpenList(title: string, rows: DueRow[]) => void—

Open a list of records (what falls due in a slot, the next 8 hours).

openIdstring | nullnull

The record open now (its route due back is outlined on the Fleet track).

panelsOpenbooleanfalse

A panel is open over the page: Escape is the panel's, not the log's.

Also in this item 6

<TimeAxis />28 propsThe activity bar's one time scale, from the furthest past it holds to the next hours it knows, at any zoom: the event field left of now (columns as wide as the zoom allows), what falls due right of it (the command center's next 8 hours: delivery windows, cutoffs, payments, routes due back, with ETA ranges under the windows in trouble), one status tick per event that needs a person, headlines on the bursts that matter and the late items due, "since you left" where it falls, and in review the playhead.
PropTypeDefault
widthrequirednumber—

Width in px of the axis' time scale.

nowIsorequiredstring—

Now (ISO): where the past side ends and the future side starts.

viewrequiredAxisView—

The window shown: start, end and span in ms, and whether it follows now.

pastrequirednumber—

The furthest past the bar holds (bins and ticks start no earlier).

fieldrequiredFieldInput | null—

The event field's inputs (null: the slim bar, ticks only).

markedrequiredreadonly DomainMessage[]—

Every event that needs a person over the bar's whole range (the ticks; the field's status).

aheadrequiredAhead | null—

What falls due in the next hours (the command center), or null.

reviewrequired{ at: number | null } | null—

Playback state while a replay is on: `at` is the playhead in epoch ms (null until it starts); null when not replaying.

onSeekrequired(ms: number) => void—

Fires with a time in epoch ms when the person clicks the past side during a replay, to move the playhead there.

onOpenLogrequired(ids: string[]) => void—

Fires with the ids of the events under a click, a mark or Enter on the focused column (an empty array when none) so the log can open on them.

onOpenrequired(ref: { type: string; id: string }, title: string) => void—

Fires with a record's ref and title when a single due item or in-transit row is opened.

onOpenListrequired(title: string, rows: DueRow[]) => void—

Fires with a title and rows when a due slot holds several records to open.

onPanrequired(dt: number) => void—

A drag across the axis: ms to move the window by (positive: later), then its end.

onPanEndrequired() => void—

Fires once when a drag that panned the window is released.

onLiverequired() => void—

Back to now (shown while the window holds still in the past).

fullrequiredboolean—

True when the bar is wide enough to show headline labels over the field.

emptyNounrequiredstring—

What the bar counts, for its empty state ("No <noun> HH:MM-HH:MM").

quietOkrequiredboolean—

The empty state may show (no read in flight, no problem said over the bar).

sincestring | null—

"Since you left" (the command center), marked where it falls.

basisAbsenceWindow['basis']—

How the "since you left" time was chosen; it words the label of that mark.

freshIdsReadonlySet<string>—

Ids of events that arrived since the page opened; their ticks flash once.

testIdstring—

data-testid for the axis root.

splitAxisSplit | nullnull

The split view (rows by area, source or status, or the In transit rows); null (default) draws the one combined field.

linkedReadonlySet<string> | nullnull

Events to mark over the field (what a map object under the pointer is in: linked views).

onLink(l: AxisLink | null) => void—

Fires with the time range and row under the pointer (null when it leaves), for views linked to the axis.

sayElHTMLElement | nullnull

The title row's readout slot: the line in words this axis writes into.

openIdstring | nullnull

The record open on top of the panel stack (its route due back is outlined on the Fleet track).

fleetbooleanfalse

Fleet's bar (its rows are the parts of the fleet; it has no future side).

<DueReadoutCard />1 propsA due slot's readout: its five minutes and how many fall due in a negative head, by kind, the late ones, then the items themselves.
PropTypeDefault
rrequiredDueReadout—

The due slot to describe: its time range, items, counts by kind and late count.

<PhoneField />4 propsThe event field on a phone: a thin strip of the stream since "since", over the simulated clock; a tap focuses a column and says what is in it underneath.
PropTypeDefault
sincerequiredstring—

"Since you left" time (ISO): where the field starts (at least a minute before now).

nowIsorequiredstring—

Now (ISO): where the field ends.

fieldrequiredFieldInput—

The field's counts: the server's per-minute density and the live events since.

eventsrequiredDomainMessage[]—

Events that need a person, marked in the field as late or at risk.

<Ticks />2 propsThe status rail: one tick per marked event (often a thousand or more).
PropTypeDefault
marksrequiredreadonly Tick[]—

The ticks to draw, one per marked event, each at its x in px and with its status.

freshReadonlySet<string>—

Ids of events that arrived since the page opened; their ticks are flagged fresh.

<StripWave />5 propsThe folded activity strip's waveform: how busy the shift has been, minute by minute, from the same counts the field uses (the server's density, then the live stream), in 150 columns: the late ones red, the at-risk amber, the rest a quiet grey; a tick at now, and what falls due in the next hours as small marks after it.
PropTypeDefault
densityrequiredDensity | null—

The server's per-minute counts for the window; null draws an empty wave.

liverequiredreadonly DomainMessage[]—

Events the stream brought since the density was read, counted on top of it.

markedrequiredreadonly DomainMessage[]—

Events that need a person, which colour their columns late (red) or at risk (amber).

nowMsrequirednumber—

Now in epoch ms: where the wave ends and the due marks begin.

aheadrequiredAhead | null—

What falls due in the next hours, drawn as small marks after now; null for none.

<StripAlerts />2 propsThe page's error state (blocked colours, a triangle, "Could not load ...", Retry) made small enough for the bar, so a failed backfill or a failed playback shows as a failure instead of an empty strip (issues 24 and 25).
PropTypeDefault
problemsrequiredreadonly StripProblem[]—

The failed reads to show, each with its title, optional detail and optional Retry; renders nothing when empty.

pagebooleanfalse

Full-width at the top of the page (for a phone) instead of small in the bar; default false.

Helpers9 exported functions
  • shiftMarked(night: DomainMessage[], live: DomainMessage[]): DomainMessage[]

    The events the field marks over the shift (its status rail): the night's, then every live one since that needs a person, each once. The bar and the phone's strip both take these, so both read the same totals.

  • fmtSpan(ms: number): string

    "15m", "45m", "1h", "2h 30m", "3d 4h": a window's length, to the nearest 5 minutes past the first hour, the nearest hour past two days.

  • isRoutine(e: DomainMessage): boolean

    True for events that arrive constantly and rarely need a person (tracking pings, line stage changes, simulator events); the log folds them out by default.

  • binStepOf(spanMs: number, width: number): number

    Bin width in ms for a window of spanMs shown across width px: the finest step whose column is still wide enough to read (6 px; 4 px for 5-minute columns).

  • useStable<T>(next: readonly T[]): readonly T[]

    The previous array while the new one holds the same items in the same order (a version without a counter: O3).

  • readoutText(r: FocusReadout): string

    "18:40–18:45 · 41 events · 8.2 a minute · typical 6–11 a minute · 3 late": a focused column in words (the screen reader, the phone). Typical is the interquartile range of the hour around: the same two lines the field draws.

  • useFieldFocus(n: number, px: number, geo?: { x0: number; bp: number; } | undefined): { span: number; first: number | null; last: number | null; focus: { first: number; span: number; } | null; move: (x: number) => void; col: (x: numb…

    The focused column of a field: follows the pointer, or the arrow keys while the bar has focus (Home, End, Escape).

  • dueRow(a: { at: string; kind: string; text: string; status: string; ref: { type: string; id: string; } | null; }): DueRow

    Turns a due item into a list row: its title, an "HH:MM · kind" subtitle and its status colour; the item must have a ref.

  • useTimeView({ bounds, initial, storageKey, presets, fit }: { bounds: TimeBounds; initial: "shift" | { span: number; rel: number; }; storageKey: string; presets: readonly number[]; fit: { span: number; rel: number; } | null; }): { …

    The window, held and eased. Each render passes the bounds of the moment; a following window moves on with now between renders. The wheel's zoom keeps the time under the pointer fixed on every frame of its glide (the span eases in log space, so each doubling takes the same time); a preset or "Back to live" eases the span and the right edge together. Reduced motion goes straight there.

Dependencies

npm
lucide-react
Builds on
ThemeUI primitivesShared helpersTime and trip modelsEvent fieldIn-transit rowsImpact line
Used by
Command center
PreviousImpact lineNext Replay clock

On this page

PreviewInstallationPropsDependencies