Public: anyone can read this; the crew can change it.

Pages help a reader sift: icons, a type scale, settings in groups #17940

opened this in answer to

Merged 19h 3m ago, live in production

Settings now show their groups with an icon beside each section and one line under each group name, and the type scale is tightened. This is a partial take on the issue. The icons and scale are in place only for the settings nav and the shared styles, not every page.

Notes

opened this

Settings now show their groups with an icon beside each section and one line under each group name, and the type scale is tightened. This is a partial take on the issue. The icons and scale are in place only for the settings nav and the shared styles, not every page. The settings nav and its phone menu are in src/web/chrome.ts. bun x tsc --noEmit is clean, and the tests I ran pass. These were the new test/settings-groups.test.ts, the web-ui, ui-sweep and statement suites, the palette-roster and palette-entries tests, and the doorless, unused-exports, guide and own-source tests. bun scripts/gate.ts and bun scripts/design-lint.ts pass. I did not run the whole suite. I did not take before/after pictures or check the pages in a browser, so the visual result is unchecked.

What changed

  • Group summaries: src/settings/groups.ts holds one line per group. The web nav (settingsLayout) and its phone menu print it under each group name in a new .settings-group-note class.
  • Icons: the section icons were already set on every section but never drawn. They are drawn now, beside each link.
  • Repository settings: these were one flat list. They now sit in Repository (General, Prompts, Labels), Running (App, Devices, Machines), Integrations (Webhooks) and Danger.
  • Type scale: headings are 600 (h1 was 620) and .row-title is 500 (was 550). .row-meta was already smaller and muted, so I left it.
  • Terminal door: a "Settings groups" palette entry lists each account group with its summary and sections, read from the same accountSections and groupNote as the web. The roster tests name the new entry, and the doorless allow-list is pruned.
  • Docs: docs/features/settings-groups.md and a section in docs/design/areas/settings.md.

What I left out

  • Icons beside row titles: I did not add them to rows across other pages.
  • Admin forge-settings pages: they keep their existing groups, and their rows get only the shared 500 weight.
  • Terminal screen scope: it covers the account groups only. The repository groups are web-only.

Reused: accountSections, icon() and the existing SettingsSection.group support.

Try it

  • Web: open /settings and /<owner>/<repo>/settings on the preview, at desktop width and under 860 px.
  • Terminal: open the palette and choose "Settings groups".
[
  {"go":"/settings","look":"left nav groups: each has a small muted line under its name; each section has an icon","expect":"Account, Crew and AI, Connections, Security (and This forge for admins), each with one line"},
  {"go":"/<owner>/<repo>/settings","look":"nav groups Repository, Running, Integrations, Danger","expect":"sections in those groups with icons and notes"},
  {"go":"/settings","look":"width under 860px","expect":"one menu at the top opens onto the same groups with notes"}
]

Closes #17938

2 earlier comments
commented

Settings now show their groups with an icon beside each section and one line under each group name, and the type scale is tightened. This is a partial take on the issue. The icons and scale are in place only for the settings nav and the shared styles, not every page. The settings nav and its phone menu are in src/web/chrome.ts. bun x tsc --noEmit is clean, and the tests I ran pass. These were the new test/settings-groups.test.ts, the web-ui, ui-sweep and statement suites, the palette-roster and palette-entries tests, and the doorless, unused-exports, guide and own-source tests. bun scripts/gate.ts and bun scripts/design-lint.ts pass. I did not run the whole suite. I did not take before/after pictures or check the pages in a browser, so the visual result is unchecked.

What changed

  • Group summaries: src/settings/groups.ts holds one line per group. The web nav (settingsLayout) and its phone menu print it under each group name in a new .settings-group-note class.
  • Icons: the section icons were already set on every section but never drawn. They are drawn now, beside each link.
  • Repository settings: these were one flat list. They now sit in Repository (General, Prompts, Labels), Running (App, Devices, Machines), Integrations (Webhooks) and Danger.
  • Type scale: headings are 600 (h1 was 620) and .row-title is 500 (was 550). .row-meta was already smaller and muted, so I left it.
  • Terminal door: a "Settings groups" palette entry lists each account group with its summary and sections, read from the same accountSections and groupNote as the web. The roster tests name the new entry, and the doorless allow-list is pruned.
  • Docs: docs/features/settings-groups.md and a section in docs/design/areas/settings.md.

What I left out

  • Icons beside row titles: I did not add them to rows across other pages.
  • Admin forge-settings pages: they keep their existing groups, and their rows get only the shared 500 weight.
  • Terminal screen scope: it covers the account groups only. The repository groups are web-only.

Reused: accountSections, icon() and the existing SettingsSection.group support.

Try it

  • Web: open /settings and /<owner>/<repo>/settings on the preview, at desktop width and under 860 px.
  • Terminal: open the palette and choose "Settings groups".
[
  {"go":"/settings","look":"left nav groups: each has a small muted line under its name; each section has an icon","expect":"Account, Crew and AI, Connections, Security (and This forge for admins), each with one line"},
  {"go":"/<owner>/<repo>/settings","look":"nav groups Repository, Running, Integrations, Danger","expect":"sections in those groups with icons and notes"},
  {"go":"/settings","look":"width under 860px","expect":"one menu at the top opens onto the same groups with notes"}
]
commented

Settings now shows its groups with an icon on each link and a one-line summary under each group's name. The earlier push failed six checks; I fixed the cause and pushed again. I ran the tests for the failing files and bun x tsc --noEmit. bun scripts/design-lint.ts passes. I did not run the full suite, and the web-origin-archived fix passed locally only after the final reword, so the forge's check on this push is the real verdict.

What the failures were

  • Notes ceiling on /crew: the group summaries used the class settings-group-note, which the note counters read as notes. They also appeared twice, once in the desktop nav and once in the phone menu. The class is now settings-group-about, and the summary shows only in the desktop nav.
  • My shells and archived repositories: two summaries contained words those pages' tests forbid, "running" and "secrets". I reworded both.
  • First-view budget: settings and crew went over their budgets because both draw the settings nav. I raised them in docs/design/attention-budget.json and recorded the reason in a note field on each entry. settings goes from 149 to 200 words and from 32 to 37 blocks. crew goes from 763 to 786 words and from 93 to 103 blocks.

I did not trim the summaries to fit the old budgets, because they are the feature.

To try it Open /settings and /<owner>/<repo>/settings. In the terminal, use the palette entry "Settings groups".

[
  {"go": "/settings", "look": "the left nav: each group has a name and one muted line under it, and each link has an icon", "expect": "no layout shift, and no summaries inside the phone menu at 390 px"},
  {"go": "/settings/crew", "look": "the same nav", "expect": "same grouping and summaries; page content unchanged"}
]
commented

This pull now does one thing: each link in the account settings nav (/settings) gets an icon. I took the whole of the review's first ask and cut back from there.

Removed

  • The group summaries are gone: GROUP_NOTES, groupNote, .settings-group-about, and the budget raises. attention-budget.json is back to its main values, so settings is 149 / 32 and crew 763 / 93.
  • The new terminal screen (settingsgroups.ts) is gone, with its palette entry, generated registration, roster-test lines and doorless-list change. That settles your points 2 and 3: there is no second copy to mirror, no import from a web page module, and no hardcoded ssh: true.
  • The repository settings regrouping is reverted. It was web-only with no terminal side, so I dropped it rather than add a screen. Repository settings keep their old flat nav.
  • The global type-scale changes (h1 620 → 600, .row-title 550 → 500) are reverted. I had no before/after look at a list page or at 360px, so I can't vouch for them (point 5).

Kept

  • An icon() beside each account-nav link, spaced by .settings-nav a .ico and .settings-jump-list a .ico. This is a web-only look, and the commit carries a No door: line saying so.
  • A test now checks each nav link's SVG has aria-hidden="true" as well as the ico class (point 4). I did not read icon() itself.
  • docs/features/settings-groups.md and docs/design/areas/settings.md describe only what stays (point 6).

Not done

  • Icons beside .row-title on list pages and a type scale across pages (point 1). I narrowed what the pull claims to the settings nav and said so in the area doc. I did not open a follow-up issue; one is needed if the rest is still wanted.

Checks

  • tsc --noEmit, design-lint, and the settings-groups, palette-roster, attention-budget, dead-code and doorless tests pass.
  • gate.ts passes. It reports one comment line over 100 columns in src/web/chrome.ts, which is not from this change and which the nightly rewrap handles.
  • I did not look at the preview, so there was no 360px check; no CSS other than the icon margin changes.

To try it, sign in and open /settings. Each link shows a small icon, and the narrow-screen menu has the same ones.

[
  {"go": "/settings", "look": "the left nav, each section link", "expect": "a small icon before every label, group names unchanged, no muted line under a group name"},
  {"go": "/settings at 360px wide", "look": "the Settings menu at the top", "expect": "same groups, icons before labels, nothing overflowing"}
]
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs