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/Figures, charts and tables

Horizon grid

Inventory planning heat map: a SKU-site per row, the next weeks as columns, days of cover or units, calm colouring, runs of stockout weeks as one band, supply landing marks, a week cursor; keyboard grid, virtualised past 300 rows.

Pro · included in the $79 licenseBlock@highcommand/horizon-grid3 files
Get Pro · $79
See it in context

Arrows, Page Up/Down and Enter; drag the week headers to move the cursor.

SKU · siteDays of coverW41TodayW42Oct 12W43Oct 19W44Oct 26W45Nov 02W46Nov 09W47Nov 16W48Nov 23W49Nov 30W50Dec 07W51Dec 14W52Dec 21Proposal
Oat milk 12-packOAT-12Austin17103Out 2 wk103Out W48 → W52 · 5 wk$1,840 · covers 80%Transfer 520 from San Antonio DC
Frozen berries 4 lbBER-4Round Rock19125Out W44 → W52 · 9 wk$1,960 · covers 80%Transfer 280 from San Antonio DC
Cold brew 6-packCBR-6San Antonio3023163730231692Out 3 wk$2,200 · covers 80%Transfer 150 from San Antonio DC
Hot sauce 12 ozHOT-12San Antonio888174676053463932251811
Corn tortillas 30 ctTOR-30AustinExcess W41 → W46 · up to 158 d116109102958881
Sparkling water 24-packSPK-24Austin474061544740335447403326
Pecan granola 1 lbGRN-1Round Rock696255484134554841342720
Brisket rub 8 ozRUB-8Austin696255486962554841342720
Customize
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/horizon-grid

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

Props

<HorizonGrid />

The Planning home: a SKU-site per row, the next twelve weeks as columns, the projected number in every cell, riskiest rows first.

PropTypeDefault
rowsrequiredHorizonRow[]—

The SKU-site rows, riskiest first, one per grid row.

weeksrequiredHorizonWeek[]—

The weeks to show as columns (the next twelve).

unitrequiredUnit—

What each cell shows: "days" of cover or "units" available.

calmrequiredboolean—

Calm mode: colour only the cells that need attention (stockout, below safety stock, excess).

limitrequirednumber—

Overstock limit in days of cover: past it a cell reads as excess (it also sets the heavy line, two thirds of it).

selectedKeyrequiredstring | null—

Key of the selected row (its drawer is open): it is highlighted and becomes the keyboard cursor row; null for none.

onOpenrequired(row: HorizonRow, week: number | null) => void—

Open the drawer for a row (and the week the cursor is on).

riskRecord<string, RowRisk> | nullnull

Stage 2, per row key from GET /api/planning/risk/network: the share of simulated futures short each week (drawn as a thin grey bar when at least 5 of 100, on weeks the point projection does not already show out; not drawn with planned orders on, since the futures count committed supply), and the chance of running out before the next inbound line lands. Null: no futures (fixtures, or not loaded).

hideWeekRiskbooleanfalse

Hide the per-week bars (the planned-orders view: the futures count committed supply only).

mergeSafetybooleanfalse

Draw a run of below-safety weeks as one band too (stockout runs always are).

scenario{ view: 'scenario' | 'baseline'; base: Record<string, RowRisk> | null } | nullnull

Stage 3: a scenario is active. The grid shows its rows (or, with view "baseline", the same rows without it); changed weeks are outlined either way, and a "Change vs baseline" column says what moved. `base` is the baseline's futures per row, for X of 100 before.

cursornumber1

Pattern 8: the workspace's week cursor (1 = this week): its column is highlighted; dragging on the week headers, or a cell's column, moves it.

onCursor(w: number) => void—

Fires with the 1-based week when the person drags across the week headers or picks a cell's column.

Also in this item 1

<ArrivalMark />2 propsSupply landing that week, the most committed kind shown: filled = in transit, open = purchase order, dashed accent = approved and not sent, dashed grey = planned; a scenario's own lines (transfer in or out, new order) are outlined accent with a dot.
PropTypeDefault
kindsrequiredArrivalKind[]—

The supply kinds landing that week; the most committed one sets the mark's shape.

legendboolean—

Draw it as a legend key (no test id, key styling).

Helpers10 exported functions
  • compact(n: number): string

    Compact for a narrow cell: 12,345 -> 12.3k; keeps the sign.

  • usdCompact(n: number): string

    Dollars as `usd`, except 10,000 and up print in thousands ("$12.3k", "$120k") and a million and up in millions ("$1M", "$2.5M").

  • cellText(c: HorizonCell, unit: Unit): string

    The number a cell prints: days of cover, or units at the end of the week.

  • runsOf(states: readonly HorizonCellState[], merge: (s: HorizonCellState) => boolean): Map<number, Run>

    Groups consecutive weeks in the same state for which `merge(state)` is true; the result maps each week index in such a run to its run.

  • nf(n: number): string

    A whole number with thousands separators ("12,345").

  • signed(n: number): string

    A signed whole number with a true minus sign.

  • usd(n: number): string

    Dollars with a true minus sign: whole dollars from $100 up, otherwise up to two decimals ("$4.50").

  • shortSite(n: string): string

    A site's short name for a narrow column: "Austin DC" -> "Austin".

  • shortDate(d: string): string

    An ISO date (YYYY-MM-DD) as "Oct 05".

  • weekLabel(weeks: { iso_week: number; }[], n: number | null | undefined): string

    The week label of horizon week n (1-based).

Dependencies

npm
lucide-react
Builds on
ThemeUI primitivesShared helpers
PreviousField railNext Zones model

On this page

PreviewInstallationPropsDependencies