Skip to content
GitHub (opens in a new tab)
ProductivityBlock

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

import { WorkBoard, moveWorkBoardTask } from "agentic-ds-kit";

export function Sprint({ columns, setColumns, tasks, people, me }) {
  return (
    <main className="layout-content">
      <WorkBoard
        boardTitle="Billing Q4"
        columns={columns}           // { id, label, cardIds }[]: a task's column is its status
        tasks={tasks}               // { id, title, description?, tags?, assigneeId?, dueOn?, comments? }[]
        people={people}             // { id, name, initials?, avatarSrc? }[]
        currentUserId={me.id}
        onMove={(id, to, index) => setColumns(moveWorkBoardTask(columns, id, to, index))}
        onUpdate={(id, patch) => updateTask(id, patch)}         // { assigneeId }
        onComment={(id, body, parentId) => addComment(id, body, parentId)}
      />
    </main>
  );
}

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

NameTypeRequiredDefaultNotes
columnsarrayYes—{ id, label, cardIds }[]. A task's column is its status; the last column counts as done in the head.
tasksarrayYes—{ id, title, description?, tags?, assigneeId?, dueOn?, comments?: CommentThread comments }[]
peoplearrayYes—{ id, name, initials?, avatarSrc? }[]: assignees and comment authors.
currentUserIdstringNo—Their comments get Edit and Delete.
titlestringNoWork board—
boardTitlestringNo—TaskBoard's name, e.g. "Billing Q4". Default: title.
notestringNo——
openTaskIdstringNo—Controlled: the task whose drawer is open, or null.
defaultOpenTaskIdstringNo——
onOpenTaskChangefunctionNo—(id | null) => void
onMovefunctionYes—(taskId, toColumnId, index) => void. From the board, or the drawer's Status (to the end of that column). moveWorkBoardTask(columns, …) returns the new columns.
onUpdatefunctionNo—(taskId, { assigneeId: string | null }) => void. The drawer's Assignee.
onCommentfunctionNo—(taskId, body, parentId?) => void. Reply is offered when set.
onEditCommentfunctionNo—(taskId, commentId, body) => void
onDeleteCommentfunctionNo—(taskId, commentId) => void, after CommentThread's AlertDialog.
onAddfunctionNo—(columnId) => void. Add card under a column.
onNewTaskfunctionNo——
loadingbooleanNofalse—
errorstringNo——
onRetryfunctionNo——

Built from

  • 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.