Skip to content

Redesign: settings screen shell (numbered category list, section header, narrow list) #1376

Description

@smart-ssh-planner

Goal

The settings screen's frame follows the design: a header bar with title and close button, a numbered category list with an accent rule on the active entry, a section header with number, title and an action slot, and on narrow screens a list of categories with icons and chevrons.

Context

  • Design reference: docs/design/angular/screens/DeskSettings.png (desktop) and docs/design/angular/screens/MobSettings.png (mobile).
  • apps/smart-ssh-community/frontend/src/components/SettingsScreen.tsx (264 lines): bare DialogFrame panel max-w-3xl h-[85vh] rounded-lg (:167), title inside the nav column (:171-180), active category filled bg-accent (:192-196), section header h3 in a bordered bar with "✕" (:208-231), narrow back button "←" (:214-222), categories built-in (:67-89) plus registered sections in registration order (:123-130, src/extensions/registerBuiltinExtensions.ts:24-33), category sections registered into built-in categories (:243-250).
  • Categories in code and design are identical (AI Provider, Display & Language, Diagnostics, Files, Master password, Data and backup, Voice input, About, Sessions & Data, MCP Server).
  • Specs: 0050 Part 1 (two-column settings; its list 1.1 names only six categories), 0055 Part 3 (no duplicate headings), 0113 §5d (narrow list → detail, Close visible in both).

Requirements

  • Header bar (44 px, 1 px bottom rule) with text-title "Settings" and a close icon button; on narrow screens Close sits on the left as in MobSettings.
  • Category list 260 px: rows 38 px with a mono index ("01" …, derived from the position) and the translated name; active row on surface-raised with a 2 px accent left rule; registered categories keep their order and translation rules (spec 0055 Part 4).
  • Section header: mono index, title (h2, 24 px uppercase, the only heading of the section per spec 0055 Part 3), optional action slot on the right (used by the AI provider issue for "+ Add provider"), 1 px bottom rule.
  • Narrow: list rows 54 px with index, category icon from the set, name and chevron; detail view with a back button (chev icon) and the same section header.
  • Decided by maintainer: settings open as a full window below the title bar instead of a modal, with the same structure (category list left, section right); Escape and the close button return to the previous view.
  • Focus handling, Escape, deep links into a category and registered sections work as today.
  • Spec 0050 Part 1.1 lists all current categories.
  • New strings in all 25 locales.

Acceptance Criteria

  • The settings frame matches docs/design/angular/screens/DeskSettings.png (frame, list, section header) and docs/design/angular/screens/MobSettings.png (list without the per-category values; those come later).
  • Each category shows exactly one heading; a registered category appears with its translated name and index.
  • Keyboard: arrow/Tab navigation through the list, Enter opens a category, Escape closes; axe scans of every category pass.
  • The section header's action slot renders an action passed by a section.
  • Spec 0050 Part 1/1.1 and spec 0113 §5d describe the new frame and the full category list.
  • New strings exist in all 25 locales; colour guard passes.
  • Unit tests SettingsScreen.test.tsx (heading count :226-227), SettingsScreen.slot.test.tsx and e2e narrow-settings.spec.ts, accessibility.spec.ts ("settings, every category"), settings-notes-review.spec.ts are updated.
  • On desktop the settings fill the window below the title bar (no modal frame, no backdrop); Escape and the close button return to the previous view with focus restored.
  • Relevant automated tests pass

Technical Notes

  • Attach before/after screenshots (SCREENSHOT_LABEL=before|after, e2e/support/screenshots.ts) in both themes to the PR.

Files: apps/smart-ssh-community/frontend/src/components/SettingsScreen.tsx, SettingsScreen.test.tsx, SettingsScreen.slot.test.tsx (under src/components/), apps/smart-ssh-community/frontend/src/locales/*/common.json, apps/smart-ssh-community/frontend/e2e/tests/narrow-settings.spec.ts, accessibility.spec.ts, settings-notes-review.spec.ts, docs/specs/0050-settings-provider-validation.md, docs/specs/0113-schmales-layout.md

Spec impact: update 0050 (Part 1), update 0113 (§5d)

Related Work

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    on Nov 19, 2026
  3. added
    follow-up-pending
    on Nov 20, 2026
  4. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1423. Settings are now a full window below the title bar with header bar, numbered 260 px category list, section header with an action slot (SettingsSectionAction) and a narrow list with icons and chevrons. Specs 0050 and 0113 are updated. Vitest and the settings e2e specs pass, and CI is green. Before/after screenshots in both themes and a pixel comparison with the design are not attached.

  5. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review: 1. Before/after screenshots in both themes (desktop, narrow list and detail) are missing; AC 1 and the Technical Notes require them, so they cannot be a follow-up. 2. Arrow-key navigation through the settings category list is not implemented and not tested (AC 3); add ArrowUp/ArrowDown on the list and a test (e.g. in settings-notes-review.spec.ts) for arrows, Enter opens and Escape closes. 3. No test shows that a registered category appears with its translated name and index (AC 2); SettingsScreen.slot.test.tsx, listed in AC 7, is unchanged.

  6. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1423. Fixed review points: added ArrowUp/ArrowDown navigation in the settings category list with e2e and unit tests, added a test for a registered category with its translated name and index, and attached before/after screenshots (both themes, desktop and narrow). CI green.

  7. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review: 1. Spec 0050 Part 1 does not describe the arrow-key navigation added in this round: ArrowUp/ArrowDown move focus through the settings category list, Enter opens a category, and focus stays at the first and last entry. Add one sentence to Part 1; no code change is needed. All previous findings are fixed: screenshots, arrow keys with tests (counter-proof red/green), and a test for a registered category's name and index.

  8. smart-ssh-coder commented on Nov 21, 2026

    @smart-ssh-coder
    Contributor

    Implementation ready for review. PR #1423. Added the missing arrow-key navigation sentence to Spec 0050 Part 1 (docs only); CI green.

  9. smart-ssh-reviewer commented on Nov 21, 2026

    @smart-ssh-reviewer

    Review passed – moving on to merge. Approved. The last open finding is fixed: spec 0050 Part 1 now describes the arrow-key navigation in the settings category list, and it matches the code. Settings unit tests and the arrow-key e2e test pass locally, and CI is green. Follow-up still open: distinct icons for the registered sections and row separators in the narrow settings list.

  10. smart-ssh-coordinator commented on Nov 21, 2026

    @smart-ssh-coordinator
    Contributor

    Merged and branch deleted: PR #1423 (squash) in develop

  11. smart-ssh-planner commented on Nov 21, 2026

    @smart-ssh-planner
    Author

    Follow-ups filed: #1428 Distinct icons for registered settings sections and row separators in the narrow list.

  12. removed
    follow-up-pending
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrontend

    Fields

    Priority

    P2 - Normal

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions