Skip to content

Split Settings page responsibilities - #17271

Merged
nwparker merged 72 commits into
mainfrom
ra/max-lines-bottom-32-settings
Aug 30, 2026
Merged

nwparker merged 72 commits into
mainfrom
ra/max-lines-bottom-32-settings

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0
Prod 20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2590 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1948 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​642

Summary

  • split the 1,930-line Settings page into a 36-line composition root plus focused store, interaction, navigation, terminal, effect, view-model, and section-rendering modules
  • preserve the existing Settings component fiber, primitive hook/effect order, pane mounting behavior, search and deep-link handling, close guards, repo request fencing, terminal capability ownership, leaf component tree, copy, tokens, and class names
  • reduce the max-lines baseline from 55 entries to 54; every new TypeScript module is at most 257 lines

Stacked on #17270.

Validation

  • pnpm tc
  • Settings suite: 165 files, 1,088 tests passed
  • focused Settings/controller suite: 7 files, 50 tests passed
  • focused Oxlint
  • pnpm run check:code-quality:changed — zero findings
  • pnpm run check:max-lines-ratchet — 54 grandfathered suppressions
  • pnpm run check:runtime-electron-ratchet
  • pnpm run check:reliability-gates
  • changed-file formatting and git diff --check
  • exact 101-hook expanded order, 81 JSX opening signatures, 416 runtime literals, normalized call-site census, and 41 non-suppression comments
  • refactor move audit and fresh semantic pass across effect order, search/navigation target consumption, dirty-close guards, lazy section mounting, repo request fencing, terminal capability ownership, and JSX/fiber identity
  • Electron/CDP validation: General, filtered search, Appearance, Shortcuts and double-Escape exit, plus Appearance subsection deep-link opening and scroll

Visual proof is N/A because this is a behavior-preserving decomposition with no intended rendered UI change; the rendered flows above were validated directly in Electron.

…lines-bottom-20-cdp-bridge

# Conflicts:
#	src/main/browser/cdp-bridge.ts
…ax-lines-bottom-25-remote-terminal-multiplexer
…ottom-32-settings

# Conflicts:
#	src/renderer/src/components/settings/Settings.tsx
…2-settings

# Conflicts:
#	config/max-lines-baseline.txt
#	src/renderer/src/hooks/automation-dispatch-completion.ts
@nwparker
nwparker changed the base branch from ra/max-lines-bottom-31-runtime-rpc to main August 30, 2026 03:23
@nwparker
nwparker merged commit 0e6d42b into main Aug 30, 2026
4 of 20 checks passed
@coderabbitai

coderabbitai Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 11251bc9-7ee9-4515-ae7b-8f11f832c0a2

📥 Commits

Reviewing files that changed from the base of the PR and between 86d9c07 and f9da79e.

📒 Files selected for processing (21)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/settings/Settings.tsx
  • src/renderer/src/components/settings/agent-skill-installed-command-callers.test.ts
  • src/renderer/src/components/settings/settings-advanced-section-renderers.tsx
  • src/renderer/src/components/settings/settings-capability-section-renderers.tsx
  • src/renderer/src/components/settings/settings-git-task-section-renderers.tsx
  • src/renderer/src/components/settings/settings-interface-primary-section-renderers.tsx
  • src/renderer/src/components/settings/settings-interface-secondary-section-renderers.tsx
  • src/renderer/src/components/settings/settings-navigation-foundations.ts
  • src/renderer/src/components/settings/settings-page-renderer.tsx
  • src/renderer/src/components/settings/settings-project-section-renderer.tsx
  • src/renderer/src/components/settings/settings-remote-security-section-renderers.tsx
  • src/renderer/src/components/settings/settings-render-context.ts
  • src/renderer/src/components/settings/settings-setup-workflow-section-renderers.tsx
  • src/renderer/src/components/settings/settings-view-model.ts
  • src/renderer/src/components/settings/use-settings-interaction-controller.ts
  • src/renderer/src/components/settings/use-settings-navigation-model.ts
  • src/renderer/src/components/settings/use-settings-page-effects.ts
  • src/renderer/src/components/settings/use-settings-repo-scroll-effects.ts
  • src/renderer/src/components/settings/use-settings-store-model.ts
  • src/renderer/src/components/settings/use-settings-terminal-model.ts

📝 Walkthrough

Walkthrough

The settings page was refactored into coordinated store, terminal, navigation, interaction, effect, view-model, and renderer modules. New renderers compose settings sections with platform, connection, and mounted-section conditions. Navigation utilities handle search, deep links, scrolling, fallback sections, and target highlighting. The page now renders loading and loaded states through dedicated functions. Supporting configuration and test references were updated for the extracted modules.

✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch ra/max-lines-bottom-32-settings
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Split main window service attachments

* Split hosted review creation checks

* Split automation dispatch event handling

* Split settings navigation metadata

* Split daemon initialization lifecycle

* Split GitLab item dialog

* Split relay dispatcher layers

* Split mobile host screen

* Retarget mobile view settings source test

* Split runtime file client layers

* Split ports panel layers

* Split runtime environments pane layers

* Split local PTY provider responsibilities

* Split CDP bridge responsibilities

* Split relay Git handler responsibilities

* Track moved relay Git fetch audit

* Split Linear item drawer responsibilities

* Split telemetry event schema responsibilities

* Split resource usage status responsibilities

* Split remote terminal multiplexer responsibilities

* Split Git worktree responsibilities

* Split Codex hook service responsibilities

* Keep mirrored hook trust type private

* Split web runtime session responsibilities

* Split GitHub project view read path

* Split Claude runtime auth responsibilities

* Split runtime RPC server responsibilities

* Split Settings page responsibilities

* Fix F3-speech for stablyai#17123

* Fix F1-cycle for stablyai#17131

* Fix F4-navtest for stablyai#17157

* Fix F2-allowlist for stablyai#17161
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