Repository navigation
Split runtime environments pane layers - #17198
Conversation
Greptile SummaryThis PR decomposes the runtime-environments settings pane into focused controller, catalog, action, presentation, and dialog modules while preserving its public exports and runtime behavior.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| 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
Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile
…om-3-mobile-browser
…-bottom-4-prune-resolved
…-bottom-5-pane-tree-ops
…bottom-6-mobile-troubleshoot
…lines-bottom-7-external-manager
…es-bottom-8-attach-services
…s-bottom-9-hosted-review-creation
…ax-lines-bottom-10-automation-dispatch-events
… ra/max-lines-bottom-11-settings-navigation
…-lines-bottom-12-daemon-init
…ottom-13-gitlab-item-dialog
…lines-bottom-14-relay-dispatcher
…nes-bottom-15-mobile-host-screen
…lines-bottom-16-runtime-file-client
…-lines-bottom-17-ports-panel
…ottom-18-runtime-environments-pane
…8-runtime-environments-pane # Conflicts: # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Warning Review limit reachedNext included review available in 16 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
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. Comment |
* 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
Summary
RuntimeEnvironmentsPane.tsxfrom 1,561 lines to a 307-line controller facadeValidation
pnpm tcpnpm tc:webpnpm test src/renderer/src/components/settings/RuntimeEnvironmentsPane.test.ts— 8 passedwindow.apicalls, 24 store calls, 131 leaf JSX elements, 19 comments, and facade exportspnpm run check:code-quality:changedpnpm check:max-lines-ratchet— 68 entriespnpm run check:runtime-electron-ratchetgit diff --checkStacked on #17194.