# Settings navigation

Settings uses the page header and [secondary rail](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/sidebar/secondary-rail.html) shared by every page with a list column. Column widths extend the existing sidebar; there is no drag resizing.

| Column | Expanded | Collapsed | Saved in | Header |
| --- | --- | --- | --- | --- |
| Categories | `--sidebar-width` − 1px | 49px | `settingsNavOpen` | `ManagePageHeader`: rail toggle, then Settings |
| Content | Remaining width; controls wrap | Same | Nothing | One page title; Memory adds no duplicate |

## Categories

Twelve categories in four groups, named by what the reader is looking for. Links, icons, active state and keyboard order follow this one array. Each group has a `RailGroupLabel`; a collapsed rail hides the labels and keeps the icons in one column.

| Group | Categories |
| --- | --- |
| Personal | General, Appearance |
| Models and abilities | Model services, Token Usage, Memory, Web Search, Voice |
| Computers and connections | Machines, Browser, Channels |
| Data | Import, Versions and updates |

A setting sits on the page of the thing it changes, so there is no catch-all page. Codex and Cursor group their settings rail the same way, with quiet group labels over a flat list.

| Setting | Page |
| --- | --- |
| Schema group `Models`: fallback models, summarize threshold, Anthropic cache, secret redaction | Model services → Behavior |
| Schema group `Ports` | General → Web server |
| This computer's system access | Machines |
| App version and updates | Top of Versions and updates, above the versions OpenProgram keeps of itself |
| Bookmarks bar | Browser |

| Part | Rule |
| --- | --- |
| Toggle | Native button with `aria-expanded`, `aria-controls` and an explicit name, its icon on the axis of the category icons |
| Narrow window | At 760px and below Settings is one column: the section list first, a section's page after choosing it, and a back chevron to the list ([phone layout](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/phone-layout.html)). Shrinking shows the content without saving. Widening never expands it: the stored choice stands. |
| Rows | Same y positions, 32px height and 1px gap as the main sidebar's rows |
| Titles | Settings and the content title use `--fs-title` (18px), line height 1.2 so descenders are not clipped |

Model services is one column with no list column of its own: its list, Add provider and each provider's page are described in [Provider management](https://fzkuji.github.io/OpenProgram/docs/reference/design/providers/provider-management.html).

**References and exclusions**

| Source | Use |
| --- | --- |
| [WAI-ARIA APG Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) | Button semantics and Enter or Space. Says nothing on column widths or titles. |
| [MDN aria-expanded](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-expanded) | State matches the visible column; `aria-pressed` is not used. |
| Excluded | Draggable column resizing, breakpoints overriding the user's choice, changes to Memory, Provider or model data, changes to the main sidebar |

**Acceptance**

- No separate global Settings topbar.
- Category rows have the main sidebar's row height and gap; group labels show only when the rail is expanded.
- Category order, URLs, icons, active state and keyboard order agree.
- Memory has no duplicate title.
- Icon actions carry `aria-label`.
