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).
Part of High Command Pro. The preview and props are open to everyone; installing it needs your license key. Set up your key · Pricing
$ npx shadcn@latest add @highcommand/fleet-dayCopies the source into your project and pulls in what it needs (3 other items). First time? Add the registry to components.json.
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).
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.
<StatusTag />2 propsA status as dot (with its shape) and words.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".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.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".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.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.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.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".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.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 | nullnullThe 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).srequiredFleetVehicleStatus—The vehicle's register status: its key, colour, word and reason.
reasonbooleantrueShow 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.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".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).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).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".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.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}`.
clockAt(iso: string | null | undefined, tz: string): stringThe 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): StatusColorTone 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): booleanA stop whose window is already missed: it arrived after the window ended, or it is still not there.
kindLabel(k: string): stringVehicle kind and proof-of-delivery kind in words (an unknown kind passes through).
podLabel(k: string | null | undefined): stringA 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): numberMinor units of a money value (0 when not money).
usd(v: SourcedValue | null | undefined): stringWhole dollars: "$30,608".
usdc(v: SourcedValue | null | undefined): stringDollars and cents: "$1.11".
miText(v: SourcedValue | null | undefined): stringA distance figure in whole miles: "118,240".
numOf(v: SourcedValue | null | undefined): number | nullA 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): stringA vehicle kind in words (an unknown kind passes through).