Skip to content

Patterns

The settings screen

A settings screen is a centred 768px column with the settings pages listed on its left and sections of rows beside them, each row a label on the left and its value or control on the right. Every app has the same four pages, General, Team and roles, Connected apps, and MCP and AI, and someone who is not an admin finds only General in the list.

By Bohuslav PoláčekChecked

packages/kit/src/components/screen.tsx
export type SettingsScreenProps = Base & {
  archetype: "settings";
  /** The settings navigation. */
  nav: ReactNode;
  /** The navigation landmark's name, so it is told apart from the app's sidebar. */
  navLabel?: string;
  /** `SettingsSection`s. */
  children: ReactNode;
};
The settings screen's slots in the kit, read from the repository when the site was built.

Anatomy

  • Header (header): the page's name, and one primary action where the page has one job: "Invite" on Team and roles.
  • Navigation (nav, required): the settings pages as links, each with its own address, never a radio group, and only the pages a person may open.
  • Navigation label (navLabel): the landmark's name, "Settings", so a screen reader tells it apart from the app's sidebar.
  • Sections (children): SettingsSections of SettingRows. A section is a heading, then rows at least 48px tall, the label on the left and the value or control on the right; a value longer than the row wraps under its label, inside the column.
  • Danger zone: a SettingsSection with tone="danger" at the foot of the page, its heading in the danger colour, its actions through ConfirmButton, which "asks once, in place, before it runs".

Width, scroll and how a record opens

A centred column of 768px. From 1024px the navigation is an 11rem column on its left that stays in view while the sections scroll past it; narrower, it is one wrapping row above them. The body is the one scroll. A record opens in a dialog (decision 0001): inviting someone to the team is a dialog over the page, not a page of its own.

Who sees what

Settings open from the gear at the foot of the sidebar, beside help, so the sidebar keeps the app's work. The four pages are the same in every app, and the last three are for admins. Someone who is not an admin finds only General in the list, with their account and the appearance; opened by its address, an admin page answers with NoAccess under its header. The demo's General page shows the modules' rules to admins only, and its code says why: "someone else sees their own settings only, not a locked door".

On Team and roles an admin changes someone's role from the role button on their row, never their own (the rule lives in permissions.ts), and invites people, the one thing done here every month. Both changes are optimistic: the row changes at once, the answer brings the history entry, a role change can be undone from its toast, and a failure puts the row back.

The rules and where they are enforced

What AI coding tools build instead

  • A modal of tabs. No address per page, no step back, nothing to link to. Here every page is a link.
  • Settings in the main sidebar, among the app's work. Here they sit behind the gear at the foot.
  • A locked door. A page that shows "no access" to everyone who is not an admin. Before no-wall, 23 of 210 demo routes showed the default visitor a NoAccess or an empty state.
  • Delete without asking. The danger zone's buttons ask once more, in place: the demo's reset asks "Really reset?".
  • A sentence under every setting. An option's description is its tooltip; the root AGENTS.md allows no sentence that explains the UI.

Screens of this type

There is no table of example apps on this page: the four pages are not part of any app's modules but of the framework layer every example app shares, so each of the nine has them behind its gear.

The four settings pages

The starter's four settings pages, one file each in templates/starter/src/workspace, listed by settings-nav.tsx; admin means the permission settings.read.

How the demo ends its General page

apps/demo/src/workspace/settings.tsx
  {/* The modules' rules are the admin's; someone else sees their own settings only, not a locked door. */}
  {admin
    ? ruled.map((module) => {
        const { title, Component } = module.settings!;
        return (
          <SettingsSection key={module.id} title={title}>
            <Component />
          </SettingsSection>
        );
      })
    : null}

  {admin ? (
    <SettingsSection title={tx("Nebezpečná zóna", "Danger zone")} tone="danger">
      <SettingRow label={tx("Obnovit ukázková data", "Reset the demo data")}>
        <ConfirmButton size="sm" onConfirm={reset} confirmLabel={tx("Opravdu obnovit?", "Really reset?")}>
          {tx("Obnovit", "Reset")}
        </ConfirmButton>
      </SettingRow>
    </SettingsSection>
  ) : null}
</Screen>
The demo's General page: each module's rules as sections only an admin sees, then the danger zone, whose reset asks once more before it runs.

Questions

Which settings pages does every app have?

Four: General, Team and roles, Connected apps, and MCP and AI. Everyone may open General; the other three are for admins, and the navigation lists only what a person may open.

Where should settings open from?

From the gear at the foot of the sidebar, beside help, so the sidebar keeps the app's work and the four pages lead to each other through their own navigation.

How does a settings page handle something that cannot be undone?

It puts it in a danger zone at the foot of the page, a section headed in the danger colour whose buttons ask once more, in place, before they run.

Why is the settings column only 768px wide?

A row pairs a label on the left with its control on the right, and in a narrow column the two still read as one line. The pages take an 11rem column beside it from 1024px.

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