Skip to content

One component file per Settings pane (#1447 pass H) - #1455

Merged
currentbits merged 5 commits into
mainfrom
coder/refactor-h-one-file-per-settings-pane-8a1a65
Oct 5, 2026
Merged

currentbits merged 5 commits into
mainfrom
coder/refactor-h-one-file-per-settings-pane-8a1a65

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Round 2, pass H of #1447. SettingsModal.tsx rendered every pane inline. Seven panes now have their own component files, and the modal is a shell.

File Lines
settings/AgentsPane.tsx 954
settings/GeneralPane.tsx 650
settings/ThreadsPane.tsx 352
settings/GitPane.tsx 259
settings/AdvancedPane.tsx 206
settings/SpendingPane.tsx 185
settings/PaneIcon.tsx 77
settings/MemoryPane.tsx 76
settings/shared.tsx 36

SettingsModal.tsx: 3,179 → 801 lines. Skills & MCP and Connections were already separate components.

What stayed in the modal

  • The draft, the dirty/save model, the selected pane, and all three effects. Panes get these as explicit props, with no new context.
  • No useState moved from the modal into a pane. The only hooks in the pane files belong to SpotlightSection, which was already its own component on main.
  • So switching panes resets nothing it didn't reset before.

Behaviour checked

  • Each pane mounts under the same pane === "…" guard as before. The two inner guards (Git › Spotlight, Memory › Project tools) are the original conditions minus the pane check, which now lives at the mount site.
  • Before/after screenshots of 11 states, including the agent profile forms after switching panes and back: all pixel-identical (blend=difference YMAX = 0).
  • npm run typecheck and npx vite build are clean; the renderer suite passes 2701/2701 (TAP count).

🤖 Generated with Claude Code

Willem and others added 5 commits October 4, 2026 20:02
Also moves PaneIcon and ProjectPicker into src/components/settings/.
Part of #1447.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
SpotlightSection moves with the Git pane. toolsProjectId stays in the
modal because Git and Memory share it.
Part of #1447.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ProfileForm, PoolForm and the draft helpers move with Agents; the OTLP
header helpers move with Advanced and are re-exported from SettingsModal.
The profile and pool drafts stay in the modal so an open form survives
switching panes, as before.
Part of #1447.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DisplayPrefsSection and the UI scale helpers move with it. The update
check/download busy flags and the webhook test result stay in the modal
so they survive switching panes, as before.
Part of #1447.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit 7dbf2ff into main Oct 5, 2026
6 checks passed
@currentbits
currentbits deleted the coder/refactor-h-one-file-per-settings-pane-8a1a65 branch October 5, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant