Case queue
import { CaseQueue, CaseClock, caseKindLabel, caseWaitsLabel, caseClock, caseQueueHead, orderCases } from "@arcadia/ui";3 wait on you. 41 are with the agent or a clock.
Showing 5 of 41
TSX
Examples
- Tab
- Move between open case rows and the folded row
- Enter
- Open the focused case or toggle the folded row
- Space
- Toggle the folded row or activate a button row
CaseQueue
casesrequired- readonly CaseQueueItem[]
- Every open case, in any order: the queue puts the earliest clock first and folds those not waiting on you.
now- number
- Default:
Date.now() - Reference time in milliseconds for clocks.
selectedId- string
- Currently open case id, highlighted in the list.
onSelect- (item: CaseQueueItem) => void
- Called when a row without
hrefis pressed. restTotal- number
- Total count of folded cases when the server sends only a page of them. Defaults to the folded rows in
cases. restOpen- boolean
- Controlled open state of the folded row.
defaultRestOpen- boolean
- Default:
false - Initial open state of the folded row when uncontrolled.
onRestOpenChange- (open: boolean) => void
- Called when the folded row opens or closes.
empty- ReactNode
- Default:
"No open cases" - Empty-state title when there are no open cases.
rootStyle- RootStyle
- Typed StyleX override: layout.
Rest props go to HTMLAttributes<HTMLDivElement>.
dueAtrequired- number
- Earliest unmet clock, in milliseconds since epoch.
now- number
- Default:
Date.now() - Reference time in milliseconds.
rootStyle- RootStyle
- Typed StyleX override: layout.
Rest props go to <span> props.