The signed shift handover: the last note (read only) with acknowledgement and one question back, this shift's draft in four fixed sections to edit and sign, and the line under the queue when one is due. Callbacks instead of API calls.
Tue 19:00 → Wed 07:00
Drafted from 3,912 events and 17 actions; edited by Sam Okafor.
Signed Sam Okafor Wed 07:06
Wed 07:00 → now · drafted from 4,440 events and 23 actions
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/shift-handoverCopies the source into your project and pulls in what it needs (4 other items). First time? Add the registry to components.json.
The shift handover: the last signed note with its acknowledgement and question back, and this shift's drafted note to edit and sign.
viewrequiredHandoverView | null—The last signed handover and this shift's draft; null while loading.
merequiredstring | null—The signed-in person's id: the signer waits, anyone else acknowledges.
onSignrequired(req: SignHandoverRequest) => Promise<void>—Sign this shift's handover (reject with an Error to show its message; update `view` when it resolves).
onAcknowledgerequired(id: Handover['id'], req: { question?: string }) => Promise<void>—Acknowledge the last handover, with an optional question back.
onAnswerrequired(id: Handover['id'], req: { answer: string }) => Promise<void>—The signer answers the question back.
errorstring | null—Why it could not be read.
onRetry() => void—Fires when Retry is pressed on the error state shown when `error` is set.
onOpenRefOpenRef—A line's record was pressed. Without it lines are plain text.
<HandoverLine />3 propsThe line under the queue: it shows only when there is something to do (see `handoverDue`): a handover to acknowledge, a question to answer, a shift ending with nothing signed, or a read that failed (Retry).duerequiredHandoverDue—What is due (from `handoverDue`): its state, text and action word.
onOpenrequired() => void—Open the handover panel.
onRetry() => void—Fires when the line is pressed while its state is a failed read.