# The list screen

A list screen shows the records of one entity in a table that runs full width, with exactly one row of views, filters and search above it. A record opens in a side panel beside the list, figures about the list sit in a summary slot that a phone moves under the table, and on a phone the list has to start in the upper half of the screen.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/patterns/list/

*The list screen's slots in the kit, where the type is called index, read from the repository when the site was built.*

From `packages/kit/src/components/screen.tsx` in the Meadowstack repository:

```ts
export type IndexScreenProps = Base & {
  archetype: "index";
  /** Views, filters, search and display options (`FilterBar`). */
  viewBar?: ReactNode;
  /** The selection bar (`BulkBar`). */
  bulkBar?: ReactNode;
  /** The table or, in the Cards view of a list of physical things, a grid of `PhysicalObject`s. */
  children: ReactNode;
  /**
   * What the list adds up to (a `StatGroup`, a `ChartCard`, a `Notice`): above the list from 768px, under it on a
   * phone, where the list is what a person came for (decision 0009's phone rule, 4 Nov 2026: the list starts in
   * the upper half of a 390 × 844 screen; four figures and a chart had pushed it to 658px).
   */
  summary?: ReactNode;
  /** The record beside the list (`RecordPeek`); the corner button grows it to a page. */
  peek?: ReactNode;
};
```

## Anatomy

- **Header** (`header`): the entity's name as the title, the same word as the sidebar item, so the top bar drops the crumb that would repeat it. One primary action, usually "New …", which the Screen moves into the top bar; at most two secondary ones as a tuple; the rest behind "…". There is no slot for a description.
- **Row** (`viewBar`): one `FilterBar`. Saved views of this entity as `ViewPills` with their counts on the left, the search on the right, actions after. A second filter group is one named button that shows its choice, never a second row.
- **Bulk bar** (`bulkBar`): `BulkBar`, a dark bar that floats at the bottom of the screen while rows are ticked, so it never pushes the table down. Its action says how many rows it applies to.
- **Summary** (`summary`): what the list adds up to, a `StatGroup`, a `ChartCard` or a `Notice`. Above the list from 768px, under it on a phone.
- **List** (`children`): the `DataTable`, or, in a Cards view of physical things, a grid of `PhysicalObject`s.
- **Peek** (`peek`): the record beside the list, `RecordPeek`.

## Width, scroll and how a record opens

The header and the row run full width, from the left gutter to the panel's right edge: the type sets `--page-max` to the viewport, so a table inside reaches the edge instead of stopping at a 1200px column. The table scrolls in the one `ScrollArea` under the row, so the views and the search stay where they are; `html` and `body` never scroll from 1024px up.

A row opens its record in `RecordPeek` beside the list, and the address keeps it (`?preview=<id>` in the starter), so a record can be linked. With room, the panel moves the page aside, the page keeps at least 640px and the table hides its less important columns by its own width. The arrow keys step through the list, and the corner button grows the panel into the record's full page and back. Under 1024px a row opens the full page instead. The manifest names what the panel replaces: "a modal that shows a record" and "a detail page that loses the list".

## The hard part: a phone

Decision 0009 measured all 210 demo routes on a 390 × 844 phone before this rule: lists began anywhere between 140 and 2,600px from the top, and Stonebridge's contracts sat at 506px under four large figures. The rule since 4 Nov 2026: the first list on a list screen starts in the upper half of the window, at most 422px down with the top bar counted, so at least five rows show. A third of the window would have failed any list with figures above it; two thirds, 562px, would have let the contracts through.

At first 45 routes failed, and the fix went into the kit rather than into each screen:

- the `summary` slot, drawn under the list on a phone; eleven demo lists moved their figures and charts there;
- `StatGroup` inside a list screen draws as a compact band under 36rem, two figures across at 20px without hints: 108px where four figures had taken 270px;
- `FilterBar` on a phone puts the search and the actions on one line, so the row takes two lines at most, counted by lines because touch makes every control 8px taller.

Tables never scroll sideways: minor columns carry `hideOnMobile` and fold their values into a visible cell with `CellStack`.

## The rules and where they are enforced

| Rule | Where it is enforced |
| --- | --- |
| No description under the title | the type: the header has no slot for one |
| One row under the header, 48px at most, two lines on a phone | `control-rows`, an orientation rule run on every demo route at 1440 and 390 × 844 |
| The list starts in the upper half of a phone | `control-rows`, in the same run |
| Saved views stay on the route; another entity is a sidebar item | `no-entity-switch` |
| Another presentation (list, board, calendar) is one `DisplayMenu` button | `no-entity-switch`; `view-switch` and `segmented-in-header` in `scripts/check-markup.mjs` |
| At most three actions in the header | `header-actions` in `scripts/check-markup.mjs` |
| The page never scrolls; one region does | `page-scroll` and `nested-scroll` in the runtime audit; `own-scroll` blocks `overflow-auto` in an app |
| Every column says what it holds | `npm run check:columns`; `column-kinds` at runtime |
| No sideways scroll on a phone | `horizontal-overflow` and `table-scroll` at runtime |

The runtime rules are listed in `docs/audit.md`; the type's sample in `e2e/screens.spec.ts` is Ridgeway's trucks, checked for one scroll at 1440 and 390, light and dark.

## What AI coding tools build instead

- **A page that scrolls as a whole.** The filters scroll away with the rows, and a second scroll inside a card fights the first. Here the Screen owns the one `ScrollArea`.
- **A sentence under the title.** It explains the screen and pushes the list down. Before decision 0001 removed `description` from `PageHeader`, 172 call sites in the demo, the playground and the starter had one.
- **A second row of filters, or tabs that switch to a board.** Every extra row lowers the list. `ViewPills` replace "Tabs that only change a query", and one `DisplayMenu` replaces "a view switch, a view options button and a legend side by side in the header row".
- **Four KPI cards above the table.** On a phone that put Stonebridge's contracts at 506px. Figures about a list go into `summary`.
- **A modal or a separate page per record.** People go through five records in a row (`docs/principles.md`); a page per record loses the list and the place in it.

## Screens of this type

- [Print job pipeline](https://meadowstack.com/screens/print-job-pipeline/): every job of Foldline's plant from the enquiry to dispatch, a list that opens as a board, one column per phase.
- [Task board](https://meadowstack.com/screens/task-board/): Brightpath's tasks, list and board as two views of the same filtered set, so switching keeps the filters.
- [Bank reconciliation](https://meadowstack.com/screens/bank-reconciliation/): Kestrel's bank lines, each to be told which document it paid.
- [Month-end close](https://meadowstack.com/screens/month-end-close/): every client's month at a glance, the screen Kestrel opens every morning of the close.
- [Timesheet](https://meadowstack.com/screens/timesheet/): Brightpath's week, projects down and days across, a list of days on a phone.
- [Site diary](https://meadowstack.com/screens/site-diary/): Stonebridge's days on site, newest first, each opening beside the list.

The nine screen types side by side: [the guide](https://meadowstack.com/guides/screen-archetypes-for-business-apps/).

## Example apps with a list screen

*Which example apps render a list screen, and the record flows each one uses.*

| Example app | Modules | Side panel first | Decision card | History |
| --- | --- | --- | --- | --- |
| [An app for a packaging and print company](https://meadowstack.com/examples/packaging-print-production/) | 5 | Yes | Yes | Yes |
| [An app for a studio or agency](https://meadowstack.com/examples/agency-capacity-planning/) | 5 | Yes | Yes | Yes |
| [An app for a haulage company](https://meadowstack.com/examples/haulage-dispatch-planning/) | 4 | Yes | No | Yes |
| [An app for a roastery with an online shop](https://meadowstack.com/examples/coffee-roastery-production/) | 5 | Yes | No | Yes |
| [An app for a sports club](https://meadowstack.com/examples/sports-club-court-bookings/) | 5 | Yes | Yes | Yes |
| [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | 8 | Yes | Yes | Yes |
| [An app for an accounting office](https://meadowstack.com/examples/accounting-office-documents/) | 4 | Yes | Yes | Yes |
| [An app for restaurants and venues](https://meadowstack.com/examples/restaurant-staff-rota/) | 5 | Yes | Yes | Yes |
| [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | 4 | Yes | No | Yes |

Read from the demo's source when the site was built: 9 of 9 example apps render a <Screen archetype="index">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

## How the starter fills the slots

*The starter's purchase requests: the one primary action, shown only to people who may create a request, and the saved views as pills with their counts in the one row.*

From `templates/starter/src/modules/requests/pages/requests-list.tsx` in the Meadowstack repository:

```tsx
  title: "Purchase requests",
  actions: {
    primary: (
      <Can do="request.create">
        <Button variant="primary" asChild>
          <Link to={requestsPath("/new")}>
            <IconPlus aria-hidden="true" />
            New request
          </Link>
        </Button>
      </Can>
    ),
  },
}}
viewBar={
  <FilterBar search={search} onSearchChange={setSearch} searchLabel="Search title, supplier, number, person">
    <ViewPills
      label="Views"
      current={status ?? "all"}
      views={[
        { id: "all", label: "All", href: viewHref(null), count: loaded ? all.length : undefined },
        ...statusOrder.map((value) => ({
          id: value,
          label: statusMeta[value].filter,
          href: viewHref(value),
          count: loaded ? all.filter((item) => item.status === value).length : undefined,
        })),
      ]}
    />
  </FilterBar>
```

## Questions

### Is a kanban board a different screen type from a list?

Not when it shows the same records with the same filters: then the board is another presentation of the list, chosen in its one display menu. Foldline's job pipeline is a list screen that opens as a board.

### Where do the totals and charts about a list go?

Into the summary slot: above the list from 768px and under it on a phone, where the list is what a person came for. A figure band in a list screen is compact, 108px where four figures had taken 270px.

### Can a list have two rows of filters?

No. Saved views, the search and the actions share one row of at most 48px, and a second filter group is a named button that shows its choice. The orientation check fails a second row on every demo route.

### Why does a record open beside the list and not on its own page?

People go through several records in a row, and a page per record loses the list and the place in it. The side panel keeps both; its corner button grows it into the full page when the record needs room.

### How does a wide table fit a phone?

Minor columns are hidden on a phone and their values fold into a visible cell, so the table never scrolls sideways. The runtime audit fails a table that does.

## Related

- [The record side panel](https://meadowstack.com/patterns/record-side-panel/) (Patterns)
- [A weekly timesheet for an agency](https://meadowstack.com/screens/timesheet/) (Screens)
- [DataTable: the table of every list](https://meadowstack.com/components/data-table/) (Components)
- [FilterBar: the one row above a list](https://meadowstack.com/components/filter-bar/) (Components)
- [ViewPills: saved views that are addresses](https://meadowstack.com/components/view-pills/) (Components)
- [Saved views](https://meadowstack.com/glossary/saved-views/) (Glossary)
