Skip to content

Split runtime environments pane layers - #17198

Merged
nwparker merged 42 commits into
mainfrom
ra/max-lines-bottom-18-runtime-environments-pane
Aug 30, 2026
Merged

nwparker merged 42 commits into
mainfrom
ra/max-lines-bottom-18-runtime-environments-pane

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1930 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1461 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​469

Summary

  • reduce RuntimeEnvironmentsPane.tsx from 1,561 lines to a 307-line controller facade
  • split host-detail derivation, catalog loading, connection/mutation actions, saved-server rows, workflow sections, Active Server details, and confirmation dialogs into focused modules no larger than 224 lines
  • preserve the public export surface, runtime IPC/store calls, compatibility handling, mixed-version behavior, and existing rendered UI
  • remove the resolved max-lines baseline entry

Validation

  • pnpm tc
  • pnpm tc:web
  • focused runtime/settings reliability set — 10 files, 131 passed
  • pnpm test src/renderer/src/components/settings/RuntimeEnvironmentsPane.test.ts — 8 passed
  • exact AST/source preservation audit — 19 named function bodies, 81 translation calls, 412 non-import literals, 7 window.api calls, 24 store calls, 131 leaf JSX elements, 19 comments, and facade exports
  • changed-file Oxlint plus focused native and type-aware code-quality audits
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet — 68 entries
  • max-lines ratchet tests — 15 passed
  • pnpm run check:runtime-electron-ratchet
  • changed-file formatting check
  • git diff --check
  • Electron/CDP: verified the real Remote Orca Servers settings screen, workflow switching, Add Server form, generated access link, connected/disconnected/reconnected saved-server row, Advanced server details, Switch/Remove confirmations, troubleshooting disclosure, and Cloud VM empty state in this worktree; the temporary server and access grant were removed and the renderer reported zero errors

Stacked on #17194.

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR decomposes the runtime-environments settings pane into focused controller, catalog, action, presentation, and dialog modules while preserving its public exports and runtime behavior.

  • Moves environment loading and status probing into a dedicated catalog hook.
  • Separates connection, switching, add, and remove operations into action hooks.
  • Extracts server rows, workflows, active-server controls, host details, and confirmation dialogs.
  • Removes the resolved max-lines baseline exception.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/renderer/src/components/settings/RuntimeEnvironmentsPane.tsx Reduced to a controller facade that coordinates extracted hooks, sections, and dialogs while retaining the existing export surface.
src/renderer/src/components/settings/use-runtime-environment-catalog.ts Moves environment listing, status probing, compatibility derivation, and shared-store synchronization from the original pane without an established behavioral change.
src/renderer/src/components/settings/use-runtime-environment-connection-actions.ts Encapsulates connect, disconnect, and active-server switching flows previously implemented inline.
src/renderer/src/components/settings/use-runtime-environment-mutation-actions.ts Encapsulates add, validation, rollback, removal, and form-reset behavior previously implemented inline.
src/renderer/src/components/settings/runtime-server-row.tsx Extracts saved-server status presentation and row-level update, connect, disconnect, and remove controls.
src/renderer/src/components/settings/runtime-active-server-section.tsx Extracts advanced active-server selection and host capability details.
src/renderer/src/components/settings/runtime-environment-dialogs.tsx Extracts switch and removal confirmation dialogs while retaining controller-owned state.
config/max-lines-baseline.txt Removes the obsolete RuntimeEnvironmentsPane max-lines exemption after decomposition.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    P[RuntimeEnvironmentsPane facade] --> C[Environment catalog hook]
    P --> A[Connection actions hook]
    P --> M[Mutation actions hook]
    P --> W[Workflow sections]
    P --> S[Connect and saved-server section]
    S --> R[Runtime server rows]
    P --> D[Active-server section]
    P --> X[Switch and remove dialogs]
    C --> B[Preload runtime-environments API]
    A --> B
    M --> B
    C --> Z[Shared renderer store]
    A --> Z
Loading

Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

…ax-lines-bottom-10-automation-dispatch-events
…8-runtime-environments-pane

# Conflicts:
#	src/renderer/src/hooks/automation-dispatch-completion.ts
@nwparker
nwparker changed the base branch from ra/max-lines-bottom-17-ports-panel to main August 30, 2026 03:17
@coderabbitai

coderabbitai Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 16 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: af31b3b0-5378-4dda-80cf-c6c93f4074ae

📥 Commits

Reviewing files that changed from the base of the PR and between e1166ec and 1fee0a5.

📒 Files selected for processing (12)
  • config/max-lines-baseline.txt
  • src/renderer/src/components/settings/RuntimeEnvironmentsPane.tsx
  • src/renderer/src/components/settings/runtime-active-server-section.tsx
  • src/renderer/src/components/settings/runtime-environment-dialogs.tsx
  • src/renderer/src/components/settings/runtime-environment-host-details.ts
  • src/renderer/src/components/settings/runtime-environment-selection.ts
  • src/renderer/src/components/settings/runtime-server-row.tsx
  • src/renderer/src/components/settings/runtime-server-workflow-sections.tsx
  • src/renderer/src/components/settings/runtime-servers-connect-section.tsx
  • src/renderer/src/components/settings/use-runtime-environment-catalog.ts
  • src/renderer/src/components/settings/use-runtime-environment-connection-actions.ts
  • src/renderer/src/components/settings/use-runtime-environment-mutation-actions.ts

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.

@nwparker
nwparker merged commit 8d3a420 into main Aug 30, 2026
4 of 20 checks passed
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

* 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