Away summary
import { AwaySummary, sortAwayItems, awayCounts, awayDuration, awayClock, awayRoom, awayShown } from "@arcadia/ui";While you were away 2h 14m
- Ingest pipeline Needs you
Waiting on: which queue, Kafka or SQS?
- Billing sync Failed
Failed: rate limit at the payment provider
- Auth refactor Done
Opened pull request #482
- Usage export Done
Sent to the finance channel
AwaySummary
sincerequired- Date | number | string
- When the person left: a Date, milliseconds, or a date string.
itemsrequired- readonly AwayItem[]
- What happened while they were away, in any order: what needs you stands first, then what failed, then what is done.
onAction- (id: string, item: AwayItem) => void | Promise<void>
- One authorized action per row. Without it the rows are a summary only, and no row draws a button.
onActionError- (id: string, error: unknown) => void
- An action's promise was refused: the row says why in the danger ink, and the product hears the reason.
onDismiss- () => void
- Got it was pressed: record that the person has seen the summary. It never approves, rejects or clears a pending item.
collapsed- boolean
- Folded into the one-line divider while true.
defaultCollapsed- boolean
- Default:
false - Folded when it first draws.
onCollapsedChange- (collapsed: boolean) => void
- Called when the card, Got it or the divider folds or opens it.
limit- number
- Default:
5 - Rows drawn before Show N more.
timeStyle- "duration" | "clock"
- Default:
"duration" - Default duration: "2h 14m". Clock: "since 9:40".
now- Date | number
- The reference time. Default: the clock, read every half minute. A host that renders on the server without
suppressHydrationWarningpasses it, so the server and the first client frame agree. labels- Partial<AwaySummaryLabels>
- Every word on it.
rootStyle- RootStyle
- Typed StyleX override: where it sits.
State machine
While you were away 2h
- Release review Needs you
Choose a deploy window