Drag a task onto an agent, or focus it and press Enter. The demo replays the hand-off on a loop.
A pile of unassigned tasks next to a roster of agents with queues, rates and busy times. Hand work over by drag or keyboard, or let Auto deal it out.
Drag a task onto an agent and the row previews the extra time and price before you drop. Queued chips move between agents or back to the pile. Focus a task and press Enter, arrows choose the agent, Enter again drops it, and the number keys hand it over at once. The running chip spins. Auto assigns every task to whoever frees up first, and the demo replays the hand-off on a loop.
Options for the assembled component.
tasks*BoardTask[]Unassigned pile. Id, title, minutes, an optional estimate label and tool marks.
agents*BoardAgent[]Roster: id, name, model, per-minute rate, an optional mark and the queued tasks. The first queued task renders as running.
now*numberClock in milliseconds used for busy-until and drop preview times.
onAssign*(taskId, to, from) => voidCalled on drop, keyboard hand-over or Auto. to is an agent id or "pile", from the previous agent id or null.
auto / onAutoChangeboolean / (auto) => voidAuto routes each pile task to the earliest-free agent. Omit to let the board keep it.
dragBoardDragnullScripted drag view: picked source, hover target and ghost. Real pointer drags are handled inside.
title / hint / autoHintstringHeader text. hint shows while Auto is off, autoHint while it is on.
queueLimitnumberChips shown per agent before the rest fold into a +N pile tip. Defaults to 4.
classNamestringExtra class on the root.
_delegate-board/delegate-board.tsxCard shell: title bar with the Auto switch, the unassigned pile, the agent roster, the drag ghost and the screen reader announcements.
_delegate-board/board-model.tsQueue minutes, busy-until, queue spend, earliest-free pick, task moves and the drop preview math.
_delegate-board/types.tsBoardTask, BoardAgent, BoardDrag and DropTarget.
_delegate-board/use-delegate-script.tsPlays the demo loop: two task drops, a chip moved to a cheaper agent, Auto draining the pile, then reset.
_delegate-board/delegate-board.cssAll colors and spacing as tokens on .db, with a dark theme and reduced-motion handling.
Recreated from the behavior of a reference delegation card. Colors and spacing are the reference values.
Drag a task onto an agent, or focus it and press Enter. The demo replays the hand-off on a loop.