Lists and filtering

A page that is a list of records: views, search, a filter, the table and row selection.

When it applies

  • A page lists every record of one kind, and people narrow it down to find one or act on several.
  • Not for the tables inside the opportunity or contact workspace, which use Workspace Table.

Components

What makes the pattern. Each component's own page has its examples and props.

ComponentWhat it does here
Segmented ControlThe list's views, on the left of the toolbar.
InputThe search, with clearable.
SelectOne filter each, like status.
TableThe list itself, with variant="main".
CheckboxRow selection, at the start of each row.
BadgeA record's status, in its own cell.
TruncateA long value, like a trust's full name.
Empty ValueA cell with nothing in it.
Empty StateWhat shows when nothing matches.
Scroll AreaThe table's scrolling on a narrow window.

Rules

Each comes from AGENTS.md or a component's own best practices, gathered for this job.

GuidancePractice
DoUse Table with variant="main" for a full-page list, edge to edge under one toolbar, with no page title and no padding around it. WorkspaceTable is for the tables inside a workspace.
DoName a search or filter that stands outside a Field with aria-label, like "Search records", and set clearable on the search.
DoWrap a long value in Truncate, so the cell keeps its width and the full value shows on hover, and show an empty cell with EmptyValue.
DoWhen nothing matches, show an EmptyState that names what's missing, with at most one action, like Clear filters.
Don'tTint a row in its status colour. Put the status in a Badge in its own cell, so colour stays an accent and the row stays readable.
Don'tMove the checkbox to the end of the row. Only a menu's selection tick sits on the right.
Don'tScroll the table with overflow-auto. Put it in a ScrollArea.

See it

  • List page: A page that is a list: one toolbar under the header with views, search and a filter, and a table that fills the rest of the window edge to edge.