Skip to content
GitHub (opens in a new tab)

TaskBoard

A Kanban board of columns and task cards.

stableOrganismcontracts/taskboard.json

Preview

TaskBoard

A Kanban board of columns and task cards, not a full project product.

Master

Drag a card, or focus one and press Space, move it with the arrow keys, and press Space to drop it (Escape cancels). Each step is announced.

Billing Q4

· example tasks

Press Space to pick up a card, arrow keys to move it, Space to drop it and Escape to cancel.

Todo2

In progress2

Review1

Done3

Usage

TaskBoard keeps a keyboard path for every move: Space picks up, arrows move, Space drops, Escape cancels. Counts are text beside the column names. Long columns can stop at maxCardsPerColumn with + N more.

Do's

  • a small board of tasks by status inside a product
  • let people move cards between columns with mouse or keyboard
  • show an overflowing column with + N more

Don'ts

  • a list with filters and sorting — DataTable
  • an agent plan — AgentPlan
  • a timeline of events — Timeline
<TaskBoard
  title="Billing Q4"
  note="example tasks"
  columns={columns}
  cards={cards}
  onMove={(cardId, toColumnId, index) => move(cardId, toColumnId, index)}
  onAdd={addCard}
  onCardClick={openCard}
  onNewTask={newTask}
  onFilter={filter}
/>

A Kanban board of columns and task cards, not a full project product. Counts are text. Cards move by drag or by keyboard: Space picks a card up, arrows move it, Space drops and Escape cancels. Built on kit Badge, Avatar, Button and Empty.

When to use

  • a small board of tasks by status inside a product
  • let people move cards between columns with mouse or keyboard
  • show an overflowing column with + N more

When not to use

  • a list with filters and sorting — DataTable
  • an agent plan — AgentPlan
  • a timeline of events — Timeline

What an agent reads

import { TaskBoard } from "agentic-ds-kit";
must
  • section aria-labelledby the h3 board title; each column is a section named by its heading
  • cards are buttons in ordered lists, described by the move instructions
  • Space picks up (aria-pressed), arrows move, Space or Enter drops, Escape cancels; each step is announced in a live region
  • focus stays on the moved card
  • counts are text next to each column name
  • cards fade and rise in after a move and lift on transform; off under prefers-reduced-motion
defaults
  • emptyTitle No tasks on this board
  • loading false
stops if
  • Do not invent a local Kanban or BoardColumn
  • Do not make moves drag-only; keep the keyboard path
  • Do not encode status by colour alone
  • Do not use raw hex

From contracts/taskboard.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
columnsarrayYes—{ id, label, cardIds }[]
cardsarrayYes—{ id, title, tags?, assignee?: { name, initials?, avatarSrc? }, dueOn? }[]
titlestringYes——
notestringNo——
onMovefunctionYes—(cardId, toColumnId, index) => void
onAddfunctionNo——
onCardClickfunctionNo—Click or Enter on a card.
onNewTaskfunctionNo——
onFilterfunctionNo——
maxCardsPerColumnnumberNo——
emptyTitlestringNoNo tasks on this board—
emptyDescriptionstringNo——
loadingbooleanNofalse—
errorstringNo——
onRetryfunctionNo——
  • 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
    →

    Timeline

    Vertical sequence of now, next, and later for ordered multi-stage work.

  • Component
    →

    Empty

    Placeholder when a list, page, or region has nothing to show.