Work board
A team's work by status. Move cards by drag or keyboard, then open one to set its status and assignee and talk it through, without leaving the board.
What a block is
A block is a kit component for a whole area of a screen, built only from other kit components and tokens. You import it like any component; nothing is copied into your app. Put it inside your page’s <main>: it brings no header or nav of its own.
When to use
- a team's tasks by status, with the detail one click away
- change a task's status or assignee without leaving the board
- discuss a task in place with replies
When not to use
- only the board — TaskBoard
- a list with filters and sorting — DataTable
- an agent's plan — AgentPlan
Usage
Layout
- head: h2 title and the task count
- body: TaskBoard; its columns are at least 14rem and scroll sideways inside the board when the block is narrow
- detail: a right Drawer (lg): description, tags, Status and Assignee Fields stacked (the portaled Drawer is outside layout-content, so a split would not stack at 390), then the CommentThread
Props
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| columns | array | Yes | — | { id, label, cardIds }[]. A task's column is its status; the last column counts as done in the head. |
| tasks | array | Yes | — | { id, title, description?, tags?, assigneeId?, dueOn?, comments?: CommentThread comments }[] |
| people | array | Yes | — | { id, name, initials?, avatarSrc? }[]: assignees and comment authors. |
| currentUserId | string | No | — | Their comments get Edit and Delete. |
| title | string | No | Work board | — |
| boardTitle | string | No | — | TaskBoard's name, e.g. "Billing Q4". Default: title. |
| note | string | No | — | — |
| openTaskId | string | No | — | Controlled: the task whose drawer is open, or null. |
| defaultOpenTaskId | string | No | — | — |
| onOpenTaskChange | function | No | — | (id | null) => void |
| onMove | function | Yes | — | (taskId, toColumnId, index) => void. From the board, or the drawer's Status (to the end of that column). moveWorkBoardTask(columns, …) returns the new columns. |
| onUpdate | function | No | — | (taskId, { assigneeId: string | null }) => void. The drawer's Assignee. |
| onComment | function | No | — | (taskId, body, parentId?) => void. Reply is offered when set. |
| onEditComment | function | No | — | (taskId, commentId, body) => void |
| onDeleteComment | function | No | — | (taskId, commentId) => void, after CommentThread's AlertDialog. |
| onAdd | function | No | — | (columnId) => void. Add card under a column. |
| onNewTask | function | No | — | — |
| loading | boolean | No | false | — |
| error | string | No | — | — |
| onRetry | function | No | — | — |
Built from
Related
- Component
TaskBoard
A Kanban board of columns and task cards, not a full project product.
- Component
DataTable
Framed dataset with search, filters, column settings, and a caption title.
- Component
AgentPlan
What an agent intends to do, before or during a run.
- Component
CommentThread
One conversation on a document, invoice or task: comments, one level of replies, @mentions shown as brand text, in-place edit and delete for your own comments (in a More menu), and a composer.