Skip to content

Patterns

The overview screen

An overview is a dashboard that opens with its finding as one sentence with numbers, the headline the type requires, before any figure or chart. Under it come one band of figures and cards in two or three columns, each leading into the list or record behind it, in a column of at most 1200px.

By Bohuslav PoláčekChecked

packages/kit/src/components/screen.tsx
export type OverviewScreenProps = Base & {
  archetype: "overview";
  /**
   * The main finding as one sentence, with its numbers (decisions 0008 and 0009: every overview opens with it,
   * so the type asks for it). A string is set as a `Lead`; an element (a `Lead` with `LeadFigure`s) as it is;
   * `null` only while there is nothing to state yet (loading, no access).
   */
  headline: ReactNode;
  /** `StatGroup`. */
  figures?: ReactNode;
  /** Cards, each linking into an index or a record. */
  columns?: 2 | 3;
  /**
   * Nothing in the body takes focus (a role that only reads, its cards linking nowhere): the body becomes a
   * focusable region named after the title, so a keyboard can scroll it (WCAG 2.1.1, axe scrollable-region-focusable).
   */
  readOnly?: boolean;
  children: ReactNode;
};
The overview's slots in the kit, read from the repository when the site was built: the headline is required, like the cards under it.

Anatomy

  • Header (header): the title and, in meta, what the numbers cover; Ridgeway shows the days its imported fuel and toll statements cover. One primary action at most: Ridgeway's "Open to resolve" leads to the fills that wait.
  • Headline (headline, required): the finding as one sentence with its numbers. A string is set as Lead, 22/30 (decision 0008); an element can be a Lead whose numbers are LeadFigures. null only while there is nothing to state yet: loading, or no access.
  • Figures (figures): one StatGroup, hero by default: one display figure a screen, 40px at most, labels on one line, values on one baseline.
  • Cards (children, columns): each card leads into a list or a record; two columns from 1024px, three from 1280px when columns is 3.
  • Read only (readOnly): for a role whose cards lead nowhere. The body becomes a focusable region named after the title, so a keyboard can scroll it (WCAG 2.1.1).

Width, scroll and how a record opens

A centred column of at most 1200px, the header included. The body is the one scroll, always in the same order: the headline, the figures, the grid of cards. A record does not open on an overview: every mark leads into a list or a record. At Ridgeway a ranking row opens that truck's fuel, a network its statement lines, and a waiting fill its side panel beside the fuel list.

The sentence per role

The type cannot write the headline, but it refuses to render an overview without one, and the page writes it from the data each person may see. Ridgeway's fleet costs (the excerpt below):

  • A technician may read consumption but no money. The sentence is the fleet's consumption and how many trucks run more than 12% over their own average, and the screen sets readOnly, because the technician's cards lead nowhere.
  • The people who may see costs get what fuel and tolls cost a kilometre against the same days last month, and whether every fill is resolved or how many wait.
  • While some of the month's statements are still missing, the sentence says so and gives no cost per kilometre.

The kit's manifest says what Lead is: "what is true this morning, in one sentence, before any block", and what it is not: "a page description under a title". So the sentence never greets anyone and never explains the page.

The rules and where they are enforced

What AI coding tools build instead

  • A dashboard of cards without a sentence. Four KPI tiles and two charts, and the reader has to work out what is wrong. The type makes the sentence a required prop.
  • Framed KPI cards. Before decision 0009 the hero StatGroup was used on only 3 of 106 groups; the framed band is deprecated now and fails framed-stats. The manifest lists what StatGroup replaces: "a grid of hand-built KPI cards".
  • A greeting or a page description where the finding should be.
  • Charts that lead nowhere. Every card and mark here leads into the list behind it.
  • The same numbers for every role. An external role never sees internal costs or margins, in widgets as on pages (the root AGENTS.md); Ridgeway's technician gets consumption without money.

Screens of this type

  • Fleet costs: Ridgeway's fuel and tolls, the type's sample in the runtime audit.
  • Food safety checks: Juniper's checks due today in a branch, each with who did it and when; on a phone, the whole job.
  • Till close: the till of a shift at Riverside's rentals, the cash that should be in the drawer against the cash counted.

All nine screen types side by side: the guide.

Example apps with an overview

Which example apps render an overview, and the record flows each one uses.Read from the demo's source when the site was built: 8 of 9 example apps render a <Screen archetype="overview">. Side panel first means RecordPeek, the decision card ApprovalPanel, the history AuditTimeline.

How Ridgeway writes its headline

apps/demo/src/modules/costs/pages/costs.tsx
function Headline({ overview }: { overview: Overview }) {
  const money = overview.money;
  if (!money) {
    const fleet = overview.consumption.fleet;
    const overOwn = overview.consumption.trucks.filter(
      (truck) => truck.consumption !== null && truck.consumption / truck.average - 1 > OVER_OWN,
    ).length;
    const over = countLabel(overOwn, ["vozidlo jede", "vozidla jedou", "vozidel jede"], ["truck runs", "trucks run"]);
    const limit = Math.round(OVER_OWN * 100);
    return fleet === null
      ? tx(`${over} o víc než ${limit} % nad vlastním průměrem.`, `${over} more than ${limit}% over their own average.`)
      : tx(
          `Flotila jezdí za ${per100(fleet)}, ${over} o víc než ${limit} % nad vlastním průměrem.`,
          `The fleet runs at ${per100(fleet)}; ${over} more than ${limit}% over their own average.`,
        );
  }
  const waiting = overview.queue?.count ?? 0;
  const fills = countLabel(
    waiting,
    ["tankování čeká", "tankování čekají", "tankování čeká"],
    ["fill waits", "fills wait"],
  );
  const queue =
    waiting === 0
      ? tx("všechna tankování jsou vyřešená", "every fill is resolved")
      : tx(`${fills} na vyřešení`, `${fills} to be resolved`);
  const { value, before } = money.perKm;
  if (value === null)
    return tx(
      `Výpisy tohoto měsíce ještě nejsou všechny, ${queue}.`,
      `Not every statement of this month is in yet; ${queue}.`,
    );
  const change = before === null ? null : ratioChange(value, before);
  const against =
    change === null
      ? ""
      : tx(`, ${changeWords(change)} stejné dny minulého měsíce`, `, ${changeWords(change)} the same days last month`);
  return tx(
    `Palivo a mýto stojí ${formatMoney(value)} na kilometr${against}, ${queue}.`,
    `Fuel and tolls cost ${formatMoney(value)} a kilometre${against}; ${queue}.`,
Ridgeway's fleet costs build the sentence per role: without money, the consumption against each truck's own average; with it, the cost per kilometre against the same days last month and what waits.

Questions

Is an overview the same as a dashboard?

Yes, with one rule many dashboards lack: it opens with a sentence that states the finding with its numbers. The type asks for that headline as a required prop, so a screen of cards alone does not compile.

What makes a good dashboard headline?

One sentence with the numbers that matter today, such as the cost per kilometre against the same days last month and how many fills wait. Never a greeting and never a description of the page.

How many big numbers can a dashboard have?

One display figure a screen, 40px at most, in a figure band whose labels sit on one line and whose values share one baseline. The rest are cards and charts that lead to their lists.

Do different roles see different dashboards?

They see the same screen with different data. At Ridgeway a technician gets consumption without money and a read-only body, while the people who may see costs get the cost per kilometre.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app