Repository navigation
Split ports panel layers - #17194
Split ports panel layers#17194
Conversation
Greptile SummaryThe PR splits the oversized Ports panel into focused local-port and SSH-port modules while retaining a small routing facade and its public exports.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/renderer/src/components/right-sidebar/PortsPanel.tsx | Replaces the monolithic implementation with a routing facade while preserving the existing public exports. |
| src/renderer/src/components/right-sidebar/local-workspace-ports-panel.tsx | Contains the behavior-preserving extraction of local scan state, refresh actions, section routing, and browser/stop handlers. |
| src/renderer/src/components/right-sidebar/ssh-ports-panel.tsx | Contains the extracted SSH panel controller with preserved connection scoping, forwarding deduplication, and dialog routing. |
| src/renderer/src/components/right-sidebar/ssh-port-forward-dialog.tsx | Extracts add/edit forwarding form behavior while retaining target fencing, validation, and submission paths. |
| src/renderer/src/components/hover-reveal-touch-action-visibility.test.ts | Retargets the touch-visibility source guard from the former monolith to the three extracted row components. |
| config/max-lines-baseline.txt | Removes the now-obsolete PortsPanel max-lines exemption after the component split. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
P[PortsPanel facade] -->|Local repository| L[LocalWorkspacePortsPanel]
L --> LS[LocalPortSection]
LS --> LR[LocalPortRow]
L --> LD[LocalPortDetailsDialog]
P -->|SSH repository| S[SshPortsPanel]
S --> SF[SshForwardedPortRow]
S --> SD[SshDetectedPortRow]
S --> D[SshPortForwardDialog]
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
…7-ports-panel # Conflicts: # src/renderer/src/hooks/automation-dispatch-completion.ts
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
📝 WalkthroughWalkthroughThe ports panel was reduced to a dispatcher that selects the local workspace or SSH implementation. Local port grouping, rows, sections, details, scanning, stopping, and browser actions moved into dedicated modules. SSH detection, forwarding, editing, removal, and browser actions moved into dedicated modules. The touch-visibility test and max-lines baseline now reference the extracted components. ✨ Finishing Touches📝 Generate docstrings
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 * 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
PortsPanel.tsxfrom 1,520 lines to a 22-line public facadeValidation
pnpm tcpnpm tc:webpnpm test src/renderer/src/components/right-sidebar src/renderer/src/components/ports src/renderer/src/lib/workspace-port-groups.test.ts src/renderer/src/lib/workspace-port-scan-debounce.test.ts— 220 files, 1,919 passedPortsPaneland hover-reveal tests — 24 passedpnpm run check:code-quality:changedpnpm check:max-lines-ratchet— 69 entriespnpm run check:runtime-electron-ratchetgit diff --checkStacked on #17188.