Board

Records as cards in columns that you drag between.

Todo

4
ENG-139GH
Keyboard shortcuts for triage
FeatureDec 11
ENG-131AL
Empty states for saved views
Design
ENG-128
Notifications arrive twice on mobile
Bug
ENG-144GH
Invoice PDF cuts off long company namesReported by three customers this week
BugDec 2

In Progress

3 / 3
ENG-142AL
Sign-in link expires before the email arrives
BugDec 4
ENG-135
Draft release notes for 2.4
Dec 6
ENG-140AT
SAML sign-in for the admin console
FeatureDec 18

In Review

3
ENG-137AT
Export drops the last row of a filtered view
BugDec 3
ENG-126GH
Bulk move issues between teams
FeatureDec 9
ENG-133
Triage suggestions for new bug reports
FeatureDec 10

Done

2
ENG-121AT
Webhook retries with backoff
FeatureNov 27
ENG-118AL
Dark mode contrast on badges
DesignNov 24
JDown arrow
Next record
KUp arrow
Previous record
Shift JShift K
Extend the selection
X
Select or unselect
Space
Peek at the record; Escape closes it
Return
Open the record
S
Change Status on the focused or selected records
P
Change Priority on the focused or selected records
A
Change Assignee on the focused or selected records
Escape
Clear the selection

Installation

pnpm dlx shadcn@latest add checkfu/uicontext/board

Usage

import type { Outcome } from "./ui/uicontext/components/domain/Outcome.ts"import { type Item, type Property, Value } from "./ui/uicontext/components/domain/Record.ts"import { Board } from "./ui/uicontext/components/kit/Board.ts"
const Message = UiSchema.TaggedEnum({	RequestedEditTask: { request: Schema.String, item: Schema.String, key: Schema.String, value: Value },	RequestedNewTask: { status: Schema.String },})export const TaskBoard = (	h: Html.H<typeof Message.Type>,	tasks: ReadonlyArray<Item>,	fields: ReadonlyArray<Property>,	outcomes: ReadonlyArray<Outcome>,) =>	Board(h, {		props: { label: "Tasks", records: tasks, fields, view: { groupBy: "status" }, create: "New task", outcomes },		onEmit: {			// dropping a card in another column is an edit of `status`			RequestedEdit: (edit) => Message.RequestedEditTask(edit),			RequestedCreate: ({ group }) => Message.RequestedNewTask({ status: group ?? "" }),			RequestedView: () => undefined,			RequestedReorder: () => undefined,			RequestedOpen: () => undefined,			RequestedAction: () => undefined,			Selected: () => undefined,		},	})

Examples

By assignee

Columns from a person field. Drag a card to reassign the issue.

AL

Ada Lovelace

2
ENG-142
Sign-in link expires before the email arrives
3
ENG-131
Empty states for saved views
3
GH

Grace Hopper

3
ENG-144
Invoice PDF cuts off long company namesReported by three customers this week
2
ENG-139
Keyboard shortcuts for triage
5
ENG-126
Bulk move issues between teams
8
AT

Alan Turing

2
ENG-137
Export drops the last row of a filtered view
2
ENG-140
SAML sign-in for the admin console
8

Scout

2
ENG-135
Draft release notes for 2.4
1
ENG-133
Triage suggestions for new bug reports
3

No assignee

1
ENG-128
Notifications arrive twice on mobile

Read only

A board people can view but not change, with the Done column left out.

Todo

4
ENG-139GH
Keyboard shortcuts for triage
Feature
ENG-131AL
Empty states for saved views
Design
ENG-128
Notifications arrive twice on mobile
Bug
ENG-144GH
Invoice PDF cuts off long company namesReported by three customers this week
Bug

In Progress

3
ENG-142AL
Sign-in link expires before the email arrives
Bug
ENG-135
Draft release notes for 2.4
ENG-140AT
SAML sign-in for the admin console
Feature

In Review

3
ENG-137AT
Export drops the last row of a filtered view
Bug
ENG-126GH
Bulk move issues between teams
Feature
ENG-133
Triage suggestions for new bug reports
Feature

API reference

Props

Board props
NameTypeDefaultDescription
labelrequiredstring—The board's accessible name: "Issues"
agentIdstringboard:<label>This board's id for agents, unique on the page; board:<label> by default
recordsrequiredItem[]—The records to show, in the order the app gives them
fieldsrequiredProperty[]—The fields the records share: their kinds, choices and formats
viewViewInput—How the records show: groupBy is the field whose choices are the columns (the first select field by default), sort the order within a column, filter which cards show, hidden the fields kept off the cards
cardBoardCardProperty[]—What each card shows besides its title; the view's other visible fields, in the footer, by default
reorderableboolean—Cards can be put in order within a column (Alt+Arrow, or a drop between cards)
showEmptyGroupboolean—Show the column for records with no value ("No assignee") even when it has none; by default, when the field names its empty value
hiddenColumnsstring[]—Columns to leave out, by value: "canceled"
createstring—A "+" on each column header, emitting RequestedCreate with the column's value
quickAddboolean—The "+" opens a title field at the top of the column instead: Enter asks for a record with that title (RequestedCreate with group and title) and leaves the field open for the next one
limitsRecord<string, number>—How many cards a column should hold, by its value: { doing: 3 }. A column over its limit says so
selectableboolean—Show a checkbox on each record, and report the selection
actionsItemAction[]—Actions offered on each record, such as archive or delete
shortcutsFieldShortcut[]—Single keys that open a field's picker on the focused card: { key: "s", field: "status" }
readOnlystring—Why cards can't be moved here: "You can view this board, not edit it"
loadingboolean—Show placeholder rows while the records load
outcomesOutcome[]—How each requested change settled: pending, accepted, or refused with a reason
noticestring | null—A message about the whole view, such as a failed save
localestring—The locale numbers and dates are formatted in; the browser's by default

Events

Board events
EventPayloadDescription
RequestedEdit{ request: string; item: string; key: string; value: Value }A value the person changed; answer through outcomes with the same request
RequestedOpen{ item: string }Open the record's page
RequestedCreate{ group?: string; title?: string; values?: Record<string, Value> }A new record, in the group it was added from ("" for the empty group)
RequestedAction{ action: string; items: string[] }One of the view's actions, on these records
RequestedReorder{ item: string; before: string | null }Move item before before, or last when it's null
RequestedView{ view: View }The person changed how the view shows records (its sort, grouping, widths); pass it back as view
Selected{ items: string[] }The selection changed

Agent actions

What agents can do with Board
ActionDescription
MovedCardMove a card to the column with value to ("" is the empty column); before: a card id in that column, or null for last
CommittedEditSet one field of one card, as on its page: value as the field's kind, or null to clear
ActivatedCardOpen a card
ClickedPeekPeek at a card: its fields in a side sheet, without leaving the board
RequestedSelectionSelect cards by id, replacing the selection ([] clears it)
ClickedActionRun one of the board's actions on the selected cards; destructive ones name the selection as the target
ClickedCreateStart a new card in the column with this value

Accessibility

  • Each card is a button. Mod+Left and Mod+Right move it between columns; Alt+Up and Alt+Down reorder it in a column.
  • Every move is announced, and a refused move puts the card back with the reason.
  • A locked card says why when it has focus or is tapped, and screen readers read the reason as its description.

Source