The working table: sortable headers, text and column filters, totals over the rows shown, CSV and Excel export of exactly those rows, one-Tab-stop keyboard rows, phone cards, expand to a sheet.
| TX-48357 | Late | Atlas Foods Co. | Georgetown → Temple | LTL | Oct 05 15:00 CDT | 321 | $20,517.47 | $1,624.80 |
| TX-48224 | Late | Hill Country Markets | San Antonio → Austin | Own fleet | Oct 05 18:00 CDT | 285 | $64,832.86 | $583.85 |
| TX-48217 | Late | Barton Creek Provisions | Georgetown → Temple | Parcel | Oct 07 04:00 CDT | 224 | $32,342.91 | $3,358.15 |
| TX-48483 | Late | Lone Star Grocers | San Antonio → Austin | Own fleet | Oct 07 15:00 CDT | 214 | $46,360.95 | $3,639.40 |
| TX-48315 | Late | Atlas Foods Co. | Austin → Houston | Parcel | Oct 07 10:00 CDT | 182 | $30,286.80 | $804.05 |
| TX-48245 | Late | Frontera Supply | Georgetown → Temple | Own fleet | Oct 06 02:00 CDT | 136 | $13,192.75 | $1,769.04 |
| TX-48259 | Held at dock | Barton Creek Provisions | Austin → El Paso | LTL | Oct 07 09:00 CDT | 120 | $58,629.25 | $907.08 |
| TX-48322 | Held at dock | Mueller Fresh | Austin → El Paso | FTL | Oct 07 02:00 CDT | 120 | $11,759.29 | $3,331.04 |
| TX-48336 | Held at dock | Lone Star Grocers | Round Rock → Killeen | LTL | Oct 07 12:00 CDT | 120 | $3,800.51 | $1,356.07 |
| TX-48371 | Held at dock | Lone Star Grocers | Austin → El Paso | Parcel | Oct 06 00:00 CDT | 120 | $37,529.22 | $1,518.18 |
| TX-48378 | Held at dock | Brazos Valley Supply | Austin → Laredo | FTL | Oct 07 15:00 CDT | 120 | $52,261.41 | $1,208.91 |
| TX-48434 | Held at dock | Mueller Fresh | Austin → El Paso | Own fleet | Oct 08 19:00 CDT | 120 | $45,926.12 | $2,836.95 |
| TX-48462 | Held at dock | Hill Country Markets | San Antonio → Austin | FTL | Oct 08 17:00 CDT | 120 | $18,690.28 | $1,311.52 |
| TX-48231 | Late | Barton Creek Provisions | Austin → Waco | Parcel | Oct 05 19:00 CDT | 94 | $61,286.26 | $1,129.77 |
| TX-48280 | Late | Brazos Valley Supply | San Antonio → Austin | LTL | Oct 06 17:00 CDT | 90 | $51,523.07 | $1,000.09 |
| TX-48420 | ETA slipping | Pecan Street Pantry | Austin → Waco | LTL | Oct 07 08:00 CDT | 65 | $32,437.95 | $2,393.74 |
| TX-48238 | ETA slipping | Hill Country Markets | Round Rock → Killeen | Parcel | Oct 06 15:00 CDT | 46 | $42,036.87 | $1,561.39 |
| TX-48273 | ETA slipping | Barton Creek Provisions | Austin → Laredo | FTL | Oct 06 17:00 CDT | 36 | $46,781.65 | $1,793.42 |
| TX-48511 | ETA slipping | Hill Country Markets | Round Rock → Killeen | LTL | Oct 08 05:00 CDT | 30 | $45,206.02 | $541.86 |
| TX-48406 | ETA slipping | Atlas Foods Co. | Austin → Dallas | Parcel | Oct 07 04:00 CDT | 29 | $47,251.98 | $244.61 |
| TX-48210 | Out for delivery | Barton Creek Provisions | Austin → Houston | FTL | Oct 07 20:00 CDT | 4 | $6,402.18 | $3,858.96 |
| TX-48343 | In transit | Mueller Fresh | Round Rock → Killeen | LTL | Oct 07 11:00 CDT | 4 | $17,692.33 | $1,756.55 |
| TX-48350 | Booked | Hill Country Markets | Georgetown → Temple | FTL | Oct 05 22:00 CDT | 4 | $13,525.84 | $2,710.47 |
| TX-48427 | Booked | Hill Country Markets | Austin → Houston | Own fleet | Oct 07 03:00 CDT | 4 | $13,655.75 | $1,069.32 |
| TX-48441 | Booked | Brazos Valley Supply | San Antonio → Austin | FTL | Oct 08 07:00 CDT | 4 | $4,865.68 | $1,347.68 |
| TX-48497 | In transit | Barton Creek Provisions | Round Rock → Killeen | FTL | Oct 07 21:00 CDT | 4 | $28,311.02 | $2,301.10 |
| TX-48532 | Out for delivery | Hill Country Markets | Austin → Dallas | Own fleet | Oct 06 18:00 CDT | 4 | $40,518.21 | $2,684.62 |
| TX-48252 | In transit | Frontera Supply | Austin → Houston | FTL | Oct 08 03:00 CDT | 3 | $25,765.89 | $1,665.28 |
| TX-48413 | Out for delivery | Hill Country Markets | Round Rock → Killeen | LTL | Oct 06 02:00 CDT | 3 | $25,304.60 | $179.05 |
| TX-48287 | In transit | Frontera Supply | Austin → El Paso | Own fleet | Oct 05 16:00 CDT | 2 | $5,639.76 | $2,958.46 |
| TX-48539 | Out for delivery | Atlas Foods Co. | Austin → Laredo | LTL | Oct 08 05:00 CDT | 2 | $60,948.04 | $3,558.87 |
| TX-48364 | Out for delivery | Atlas Foods Co. | Round Rock → Killeen | FTL | Oct 09 07:00 CDT | 1 | $39,277.38 | $3,197.69 |
| TX-48469 | In transit | Mueller Fresh | San Antonio → Austin | LTL | Oct 07 20:00 CDT | 1 | $30,292.91 | $225.17 |
| TX-48455 | In transit | Lone Star Grocers | Austin → Houston | FTL | Oct 08 07:00 CDT | 0 | $10,336.72 | $1,704.53 |
| TX-48392 | Booked | Pecan Street Pantry | Austin → Waco | LTL | Oct 06 10:00 CDT | -1 | $9,691.25 | $2,869.76 |
| TX-48518 | In transit | Atlas Foods Co. | Austin → Laredo | FTL | Oct 06 00:00 CDT | -1 | $58,906.14 | $2,927.75 |
| TX-48329 | In transit | Pecan Street Pantry | San Antonio → Austin | LTL | Oct 07 05:00 CDT | -2 | $52,400.65 | $2,255.96 |
| TX-48448 | Out for delivery | Brazos Valley Supply | San Antonio → Austin | Own fleet | Oct 05 11:00 CDT | -2 | $40,289.44 | $3,100.73 |
| TX-48476 | Out for delivery | Mueller Fresh | Austin → Laredo | FTL | Oct 07 07:00 CDT | -2 | $33,286.80 | $2,854.59 |
| TX-48266 | Out for delivery | Hill Country Markets | San Antonio → Austin | FTL | Oct 08 06:00 CDT | -3 | $15,480.64 | $2,055.28 |
| TX-48294 | Out for delivery | Barton Creek Provisions | Austin → Waco | LTL | Oct 09 00:00 CDT | -3 | $62,940.65 | $231.74 |
| TX-48301 | Booked | Barton Creek Provisions | Georgetown → Temple | Own fleet | Oct 09 07:00 CDT | -3 | $37,990.23 | $1,533.30 |
| TX-48385 | In transit | Barton Creek Provisions | Georgetown → Temple | Parcel | Oct 09 07:00 CDT | -3 | $48,537.42 | $3,342.41 |
| TX-48399 | In transit | Barton Creek Provisions | Austin → Waco | Own fleet | Oct 08 14:00 CDT | -3 | $28,752.68 | $1,401.54 |
| TX-48504 | In transit | Pecan Street Pantry | Round Rock → Killeen | LTL | Oct 05 21:00 CDT | -3 | $30,455.82 | $538.27 |
| TX-48525 | In transit | Pecan Street Pantry | San Antonio → Austin | FTL | Oct 09 03:00 CDT | -3 | $62,380.62 | $2,475.22 |
| TX-48308 | In transit | Atlas Foods Co. | Austin → Houston | Own fleet | Oct 05 10:00 CDT | -4 | $33,443.99 | $3,890.95 |
| TX-48490 | In transit | Barton Creek Provisions | Austin → Houston | LTL | Oct 07 08:00 CDT | -4 | $3,710.52 | $2,926.07 |
| Total · 48 | $1,603,456.78 | $94,535.24 |
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/work-tableCopies the source into your project and pulls in what it needs (3 other items). First time? Add the registry to components.json.
A sortable, filterable worklist table with a totals row and CSV/Excel export; every prop is on `WorkTableProps`.
rowsrequiredreadonly T[]—The data, one table row each.
colsrequiredreadonly WCol<T>[]—The columns in order (see `WCol`).
rowKeyrequired(r: T) => string—A unique, stable key for a row; also the default tiebreak for sorting.
namerequiredstring—The export's file and sheet name.
captionrequiredstring—The table's name: its accessible caption, the filter boxes' labels and the expanded view's title.
onOpen(r: T) => void—Makes rows focusable and clickable; fires with the row on click or Enter.
selectedKeystring | null—The `rowKey` of the row to mark selected.
statusOf(r: T) => StatusColor | undefined—The row's status colour (marks the status column and the phone card's edge).
initialSortSort | null—The sort applied at first (a column key and direction); the person can change it.
asOfstring—A date or time label added to the exported file's name.
preset(r: T) => boolean—A filter applied before the table's own (a view the page chose: "Past due").
toolbarReactNode—Controls placed before the filters (the page's views).
searchPlaceholderstring—Placeholder of the text filter (default "Filter").
testidstring—Sets `data-testid` on the table (default `work-table`).
unfoldedboolean—Column filters and CSV / Excel always shown, not folded behind Filters and Export.
filtersRecord<string, string>—Column filters, when the page keeps them (deep links); else the table keeps its own.
onFilters(f: Record<string, string>) => void—Fires with the full set of column filters whenever the person changes them; the page keeps them and passes them back as `filters`.
emptyTitlestring—Headline shown when no row matches (default "No matching rows").
totalsLabelstring—Label of the totals row (default "Total").
searchText(r: T) => string—What the text filter searches (default: every text column).
tiebreak(r: T) => string—Order of rows the sort leaves tied (default: the row key).
expandableboolean—A view that holds more than one table (Fleet's maintenance): an Expand button opens this table large, over the page, until clicked off.
<ExportButtons />4 propsExport of a table's rows as shown: one "Export" button that opens CSV and Excel.tablerequired() => ExportTable—Builds the table to export; called when CSV or Excel is chosen, so it exports what is shown at that moment.
asOfstring—A date or time label added to the downloaded file's name.
testidstring—Sets `data-testid` on the control (default `export`).
inlineboolean—CSV and Excel as two buttons, no menu.
cellText(kind: ExportKind, v: CellValue): stringThe text a cell shows.
sortRows<T>(rows: readonly T[], cols: readonly WCol<T>[], sort: Sort | null, tiebreak: (r: T) => string): T[]Returns a sorted copy of `rows` by the sort column (its `sortValue` if it has one), empty values last in either direction; `tiebreak` orders rows the sort leaves tied.
exportOf<T>(name: string, cols: readonly WCol<T>[], rows: readonly T[]): ExportTableThe table as an export: the columns as shown (headers), the rows as shown (raw values).