The queue of what needs attention: severity chips, money at stake and time to cost per row, bands (Now, Next 2 h...), grouped stories, assign / acknowledge / snooze / resolve, filters, keyboard selection, a status scroll rail, the folded 56px rail. AttentionQueue keeps its own state; Queue takes it all as props.
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/attention-queueCopies the source into your project and pulls in what it needs (5 other items). First time? Add the registry to components.json.
The attention queue with its own state: give it every open item and a triage callback; it keeps the severity chips, sort, filters, stories (grouping and ungrouped stories remembered on this device), which stories are open, the selection and the fold, as the command center does around `Queue`.
itemsrequiredQueueItem[]—Every open item (snoozed ones included: the Snoozed filter shows them).
nowIsorequiredstring—Now, as ISO (your clock or simulator).
onTriagerequiredTriage—Runs a queue action (assign, acknowledge, snooze, unsnooze, resolve) on an item; reject with an Error to show its message.
peopleWho[][]Who items can be assigned to.
mestring | nullnullThe signed-in person's id ("Mine", "Assign to me").
isNewReadonlySet<string>—Keys (`itemKey`) of rows that just arrived (they flash once).
collapsiblebooleanfalseShow a fold button; folded, the queue is the 56px rail of counts.
defaultCollapsedbooleanfalseStart folded to the rail of counts (default false).
storagePrefixstring"hq-q"localStorage key prefix for grouping and ungrouped stories.
footerReactNode—Under the list, only when there is something to do: the shift handover's line.
onOpenItem(item: QueueItem) => void—A row was opened (its record, or the agent decision behind it).
onOpenSource(item: QueueItem) => void—A row's age was pressed: show the records the item came from. Without it the age is plain text.
onOpenHandover() => void—The menu's "Shift handover".
tableHrefstring—The queue as a full table (the title and the menu link to it).
healthHrefstring—Queue health, for admins (in the menu).
renderLinkRenderLink—Renders the links (default: a plain <a>).
popOutPopOut | null—Pop the queue out into its own always-on-top window (where the browser can), or bring it back.
shipRef(id: string) => string | undefined—A shipment's reference for its row ("SHP-48213"), by shipment id.
onPeek(key: string | null) => void—Linked views: the row under the pointer or the keyboard's focus (its key), or null once neither is on a row; the map rings its thing.
handoverDueboolean—The rail only: a shift handover waits for this person.
domIdstring—The region's id (the rail and the queue it opens stand together on the page, so one of them takes another).
totalAllnumber | undefined—How many items need attention in all when the list is capped to the most urgent (`total`); omit when it is not capped.
<Queue />42 propsAttention queue.entriesrequiredQueueEntry[]—`entries` is what is shown (filtered, sorted, related items folded into stories); `total` and `totalCritical` count the whole queue.
totalrequirednumber—How many items the whole queue holds (the header count); `entries` may be a filtered or capped part of it.
totalCriticalrequirednumber—How many of those items are critical.
levelsrequired{ level: string; count: number }[]—Severity levels present with their counts, one filter button each.
hiddenrequiredReadonlySet<string>—Severity levels switched off by their filter buttons (a pressed button shows its level).
onToggleLevelrequired(level: string) => void—Fires with a severity level when its filter button is pressed, to hide or show it.
onResetFilterrequired() => void—Fires from the "All severities hidden" empty state to clear the severity filter (the other filters go through `onFilters`).
sortrequiredQueueSort—The sort order in use.
onSortrequired(s: QueueSort) => void—Fires with the new order when one is picked from the sort menu.
selectedrequiredstring | null—The key of the selected row (an item's or a story's), and how a row becomes it (focus or the arrow keys inside the list).
isNewrequiredReadonlySet<string>—Keys of rows that just arrived; they flash once.
compactrequiredboolean—Folded: show only the counts, as a button that unfolds it; `onCollapse` folds it. In layout A the folded queue is the 56px rail: the counts stacked, the money at stake, a dot when a handover is due.
onExpandrequired() => void—Fires when the folded queue's button is pressed to unfold it.
nowIsorequiredstring—Now (ISO): the clock for impact times, snoozes and the handover prompt.
filtersrequiredQueueFilters—The filters in force besides severity (type, account, owner, status and minimum stake).
onFiltersrequired(f: QueueFilters) => void—Fires with the full new filter set when any filter is changed.
optionsrequired{ types: string[]; accounts: { id: string; name: string }[] }—The choices the type and account filters offer.
peoplerequiredPerson[]—Who items can be assigned to, offered in the owner filter and the assign actions.
merequiredstring | null—The signed-in person's id, for the Mine filter and "Assign to me"; null disables them.
onTriagerequiredTriage—Runs a queue action (assign, acknowledge, snooze, unsnooze, resolve) on an item.
expandedrequiredReadonlySet<string>—Keys of the stories that are open to show their items.
onToggleStoryrequired(key: string) => void—Fires with a story's key when it is opened or closed.
onUngrouprequired(key: string) => void—Fires with a story's key when the person ungroups it into its separate items.
groupingrequiredboolean—Fold related items into stories (on unless the person switched it off; remembered on this device).
onGroupingrequired() => void—Fires when the "Group related items" checkbox is toggled.
allItemsQueueItem[]—Every open item the queue holds (the header's money at stake), and how many need attention in all when the list is capped.
totalAllnumber | undefined—How many items need attention in all when the list is capped to the most urgent (`total`); omit when it is not capped.
onSelect(key: string) => void—Fires with a row's key when it is selected (focus, press or the arrow keys inside the list).
onCollapse() => void—Fires when the fold button is pressed; without it the queue has no fold button.
shipRef(id: string) => string | undefined—A shipment's reference for its row ("SHP-48213"), by shipment id.
popOutPopOut | null—Pop the queue out into its own always-on-top window (where the browser can), or bring it back.
footerReactNode—Under the list, only when there is something to do: the shift handover's line.
onOpenItem(item: QueueItem) => void—A row was opened (its record, or the agent decision behind it).
onOpenSource(item: QueueItem) => void—A row's age was pressed: show the records the item came from. Without it the age is plain text.
onOpenHandover() => void—The menu's "Shift handover".
tableHrefstring—The queue as a full table (the title and the menu link to it).
healthHrefstring—Queue health, for admins (in the menu).
renderLinkRenderLinkplainLinkRenders the links (default: a plain <a>).
onPeek(key: string | null) => void—Linked views: the row under the pointer or the keyboard's focus (its key), or null once neither is on a row; the map rings its thing.
railOpenboolean—The rail only: the whole queue is open beside it (peeked or pinned), so the rail is not the queue's own region any more.
handoverDueboolean—The rail only: a shift handover waits for this person.
domIdstring'cmd-queue'The region's id (the rail and the queue it opens stand together on the page, so one of them takes another).