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/Ops and shell

Own-fleet parts

Own-fleet pieces: routes ranked by risk with stop bar and delay, status tags, the driver's day as a duty-status strip, hours-of-service meters, stops planned against actual with missed windows, trackers, and vehicle-register cells (status, ownership, payments left, remaining, next due).

Pro · included in the $79 licenseBlock@highcommand/fleet-day5 files
Get Pro · $79
See it in context
Driver day · Felix Banerjee
Driving
At stop
Idle
Break
On duty
05:0008:0011:0014:0017:0020:0023:0002:00
Driving, 11 h limit2 h 32 min left
On duty, 14 h limit41 min left

Routes

8
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/fleet-day

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

Props

<ActivityStrip />

The driver's day as a duty-status graph: one row per activity, a bar where the driver was doing it, hours across (the depot's zone).

PropTypeDefault
segmentsrequiredreadonly FleetSegment[]—

The driver's activity segments for the day (kind, start and end; an open one runs to now).

dayStartrequiredstring—

Start of the day shown (ISO): the left edge of the hour axis.

dayEndrequiredstring—

End of the day shown (ISO): the right edge of the hour axis.

nowrequiredstring—

Now (ISO): where the now marker sits.

tzrequiredstring—

The depot's time zone (IANA name) for the hour labels and times.

onOpenSegment(s: FleetSegment) => void—

A bar was pressed: open its record.

Also in this item 16

<StatusTag />2 propsA status as dot (with its shape) and words.
PropTypeDefault
colorrequiredStatusColor—

The status, which sets the dot, its shape and the tint.

childrenReactNode—

Text to show instead of the status word.

<RouteStatusText />3 propsStatus in words with the reason when there is one: "Late · Window missed".
PropTypeDefault
colorrequiredStatusColor—

The route's status colour; picks the status word.

reasonrequiredRouteReason | null—

Why the route has that status, added after the word ("Late · Window missed"); null for none.

statusstring—

The route's raw status, used (readable) as the word when the colour is neutral; "Off shift" when absent.

<Progress />3 propsStops done out of stops, as a bar and the words.
PropTypeDefault
donerequirednumber—

Stops completed.

totalrequirednumber—

Stops in all; the bar and "done/total" are out of this.

colorrequiredStatusColor—

The route's status colour, which tints the bar.

<DelayText />3 props"+12 min" in the status colour of its route; ahead of plan reads "-3 min".
PropTypeDefault
minrequirednumber | null—

Minutes behind plan (negative: ahead of plan); null when there is no figure.

colorStatusColor—

The route's status colour for the text; neutral or absent leaves it uncoloured.

coarseboolean—

Route-list mode: a gap under 5 minutes either way reads as on plan, uncoloured.

<HosMeter />4 propsHours left on a driver's clock against a limit: the bar fills as the limit is used.
PropTypeDefault
labelrequiredstring—

Name of the clock ("Drive time"), shown with its limit in hours.

limitrequirednumber—

The limit in minutes.

remainingrequirednumber—

Minutes left against the limit; the bar fills as the limit is used.

tonerequiredStatusColor—

Status colour of the meter; neutral leaves it uncoloured.

<StopList />5 propsThe stops of a route or a day, planned against actual.
PropTypeDefault
stopsrequiredreadonly FleetStop[]—

The stops to list, in order.

tzrequiredstring—

The depot's time zone (IANA name) for the times shown.

nowstring—

Now (ISO); when given, a stop whose window passed unmet is flagged "Window missed".

showRoute(routeId: string) => string | null—

Returns a route label to show before a stop's account (for lists that mix routes), or null for none.

onOpenStop(s: FleetStop) => void—

A stop was pressed.

<TrackerList />3 propsTrackers carrying a vehicle or a driver: kind, last seen, battery and signal; offline ones are blocked.
PropTypeDefault
trackersrequiredreadonly FleetTracker[]—

The trackers to list.

tzrequiredstring—

The depot's time zone (IANA name) for the last-position times.

onOpenTracker(t: FleetTracker) => void—

A tracker was pressed.

<Who />2 propsA person or vehicle named by link (a button when it opens), or a quiet "None".
PropTypeDefault
labelstring | null—

The name to show; empty or null reads "None".

onOpen() => void—

When given, the name is a button that fires this.

<RouteList />5 propsToday's routes, riskiest first (the API sorts them): status shape, route and driver, stops done as a bar, minutes behind or ahead of plan.
PropTypeDefault
routesrequiredreadonly FleetRoute[]—

Today's routes, riskiest first (sort them before passing).

onOpenrequired(r: FleetRoute) => void—

Fires with the route when its row is pressed.

tzrequiredstring—

The depot's time zone (start times).

selectedIdstring | nullnull

The open route's id.

bareboolean—

No panel chrome (inside another card).

<StatusCell />2 propsThe register status: its shape and word (and, under it, what it is about).
PropTypeDefault
srequiredFleetVehicleStatus—

The vehicle's register status: its key, colour, word and reason.

reasonbooleantrue

Show the reason line under in-shop and out-of-service statuses (default true).

<OwnChip />1 propsOwned, Financed or Leased, as an outline pill; the agreement's kind in its tooltip.
PropTypeDefault
orequiredFleetOwnership—

The vehicle's ownership: its label is the pill, its kind_label the tooltip.

<PaymentsLeft />2 propsPayments: a thin bar of the payments made (filled for what is paid) and "24 paid · 36 left".
PropTypeDefault
orequiredFleetOwnership—

The vehicle's ownership, with its term and payments made and left.

onOpenOpenValue—

Opens the records behind the payments figure; without it the figure is plain text.

<Remaining />2 propsA Remaining figure with its own tooltip (the agreement's kind and its statement date).
PropTypeDefault
orequiredFleetOwnership—

The vehicle's ownership, with its remaining balance and statement date.

onOpenOpenValue—

Opens the records behind the remaining figure; without it the figure is plain text.

<DueCell />3 props"▲ PM B · in 640 mi" with the shape of its state (● fine, ▲ due soon, ◆ overdue).
PropTypeDefault
drequiredFleetNextDue | null—

The vehicle's next due item; null shows a dash.

subboolean—

Add the approximate date under a scheduled due that is still ahead.

onOpenOpenValue—

Opens the records behind the due figure; without it the figure is plain text.

<Switch />6 propsA labelled switch (role switch): "Include driver pay".
PropTypeDefault
labelrequiredstring—

The switch's text.

checkedrequiredboolean—

Whether the switch is on.

onChangerequired(v: boolean) => void—

Fires with the new on or off state when the switch is toggled.

testidstring—

data-testid for the switch's input.

disabledboolean—

Disables the switch.

titlestring—

Tooltip for the switch.

<TabList />6 propsTabs as buttons (role tab), arrow keys move between them: the shared `TabList`, in Fleet's tab bar.
PropTypeDefault
tabsrequired{ value: T; label: ReactNode }[]—

The tabs in order.

valuerequiredT—

The selected tab's value.

onChangerequired(v: T) => void—

Fires with the new tab's value on click or arrow, Home and End keys.

labelrequiredstring—

The tab list's accessible name.

classNamestring—

Extra class names for the list.

testidstring—

Test id of the list; each tab is `${testid}-${value}`.

Helpers18 exported functions
  • clockAt(iso: string | null | undefined, tz: string): string

    The clock in the depot's zone ("14:05").

  • hm(min: number): string

    "2 h 05 min" / "40 min" for a duration in minutes.

  • segmentSpan(startIso: string, endIso: string, dayStartIso: string, dayEndIso: string): { left: number; width: number; }

    A segment's place on the day strip: left and width as percentages of the day.

  • hourTicks(dayStartIso: string, dayEndIso: string, tz: string, everyHours?: number): { pct: number; label: string; }[]

    Hour tick labels for the day strip, every 3 h, in the depot's zone; `pct` is the position as a percentage of the day.

  • hosTone(remainingMin: number | null): StatusColor

    Tone of the hours left on a driver's clock: none left is blocked, under an hour at risk.

  • stopWindowMissed(s: Pick<FleetStop, "status" | "window_end_at" | "actual_arrival_at">, nowIso: string): boolean

    A stop whose window is already missed: it arrived after the window ended, or it is still not there.

  • kindLabel(k: string): string

    Vehicle kind and proof-of-delivery kind in words (an unknown kind passes through).

  • podLabel(k: string | null | undefined): string

    A proof-of-delivery kind in words; "No POD" when there is none or it is unknown.

  • dayText(d: string | null | undefined): string

    "Oct 19".

  • dateText(d: string | null | undefined): string

    "Oct 19, 2026".

  • monthText(d: string | null | undefined): string

    "Nov 2026".

  • minorOf(v: string | number | MoneyJson | null | undefined): number

    Minor units of a money value (0 when not money).

  • usd(v: SourcedValue | null | undefined): string

    Whole dollars: "$30,608".

  • usdc(v: SourcedValue | null | undefined): string

    Dollars and cents: "$1.11".

  • miText(v: SourcedValue | null | undefined): string

    A distance figure in whole miles: "118,240".

  • numOf(v: SourcedValue | null | undefined): number | null

    A sourced value as a plain number: numbers as they are, money in dollars, anything else null.

  • vehicleTitle(v: Pick<VehicleIdentity, "body" | "model_year" | "make" | "model">): string

    "2022 Isuzu NRR · 16 ft box".

  • vehicleKind(k: string): string

    A vehicle kind in words (an unknown kind passes through).

Dependencies

npm
lucide-react
Builds on
ThemeUI primitivesShared helpers
Used by
Fleet
PreviousLane panelNext Agent action bar

On this page

PreviewInstallationPropsDependencies