Components · Tasks
TaskList
The list view of tasks — one collapsible group per status, in status order, each holding task cards.
import { TaskList } from "@botiverse/raft-ui";A TaskList groups tasks by status, one collapsible group per status, in the same order as the columns of a TaskBoard. A page of tasks doesn't use it for its list: that list is grouped by the person's relation to each task and made of rows (Tasks). When to show which view, and which groups start collapsed, is in Tasks.
When to use
Anatomy
TaskListRoot: the stack of groups. Required.TaskSection: one status. A collapsible section. Required, one per status.TaskSectionTrigger: the group heading, which collapses the group.TaskSectionChevron: the arrow before the heading.TaskSectionHeading:TaskSectionBadge(the status pixel and name) andTaskSectionCount.
TaskSectionPanelandTaskSectionItems: the cards.TaskSectionEmpty: what an empty group says.
States
Behavior
- Scroll every group in one viewport. Groups don't scroll on their own.
- Mount only the visible cards of a tall group: make VirtualList the viewport, with the group headers and cards as its rows, or use a virtualizer of your own.
Content
- Write an empty group as "No", the status and "tasks", with the status spelled as on its chip (Writing): "No Backlog tasks."
Accessibility
- Each group is a Base UI
Collapsiblerendered as asection; its trigger is a button witharia-expanded, named by the status and count it contains. - Show the count in the heading also when the group is collapsed, so the trigger still says how many tasks it hides.
API
TaskListRoot
Also takes the attributes of its element.
TaskSection
Also takes the attributes of its element.
TaskSectionBadge
Also takes the attributes of its element.
TaskSectionChevron, TaskSectionCount, TaskSectionEmpty, TaskSectionHeading, TaskSectionItems
Also takes the attributes of its element.
TaskSectionPanel
Also takes the attributes of its element.
TaskSectionTrigger
Also takes the attributes of its element.