# 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.

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

*The settings screen's slots in the kit, read from the repository when the site was built.*

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

```ts
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;
};
```

## 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`): `SettingsSection`s of `SettingRow`s. 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

| Rule | Where it is enforced |
| --- | --- |
| A settings screen has its own navigation | the type: `nav` is required |
| No description under the title | the type: the header has no slot for one |
| The four pages, three of them for admins | the starter's `settings-nav.tsx` and its e2e, `templates/starter/e2e/settings.spec.ts`: "someone who is not an admin sees General only, and a NoAccess on the others" |
| The default visitor never meets a locked door | `no-wall` on every demo route |
| The current page is named in the sidebar or the crumbs | `nav-matches-crumbs`: the gear's label counts |
| No switch in the header | `segmented-in-header`: the appearance switch sits in a row |
| Kit controls only, 32px tall | `bare-control` and `control-height` in `scripts/check-markup.mjs` |

## 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

- [Roles and permissions](https://meadowstack.com/screens/roles-and-permissions/): Fernhill's Team and roles page, in the [Fernhill example app](https://meadowstack.com/examples/coffee-roastery-production/).
- What each role may do, and how screens ask before they show an action: the [permissions](https://meadowstack.com/patterns/permissions/) pattern.

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.*

| Page | Who sees it | What it holds |
| --- | --- | --- |
| General | Everyone | The person's account and the appearance; for an admin also the workspace's details, saved with who saved them and when, and each module's rules in sentences |
| Team and roles | Admins | Who works in the app and in which role, what each role allows and what changed; Invite is the page's one primary action |
| Connected apps | Admins | The apps this app could talk to, in the kit's IntegrationCatalog |
| MCP and AI | Admins | Where an assistant connects to the app through its own MCP server, the rules that server keeps and what it offers from each module |

## How the demo ends its General page

*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.*

From `apps/demo/src/workspace/settings.tsx` in the Meadowstack repository:

```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>
```

## 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.

## Related

- [Team and roles, with the rules in code](https://meadowstack.com/screens/roles-and-permissions/) (Screens)
- [Permissions](https://meadowstack.com/patterns/permissions/) (Patterns)
- [Least privilege](https://meadowstack.com/glossary/least-privilege/) (Glossary)
- [AssistantPanel: the assistant beside the page](https://meadowstack.com/components/assistant-panel/) (Components)
- [NotificationCenter: the bell and its list](https://meadowstack.com/components/notification-center/) (Components)
- [The approval flow](https://meadowstack.com/patterns/approval-flow/) (Patterns)
