Skip to content

Split pane tree equalization logic - #17145

Merged
nwparker merged 13 commits into
mainfrom
ra/max-lines-bottom-5-pane-tree-ops
Aug 30, 2026
Merged

nwparker merged 13 commits into
mainfrom
ra/max-lines-bottom-5-pane-tree-ops

Conversation

@nwparker

@nwparker nwparker commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​62 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2

Stacked on #17142.

Summary

  • extract pane-child traversal and split-size equalization into pane-tree-equalization.ts
  • keep the existing pane-tree-ops exports stable
  • bring pane-tree-ops.ts to 297 physical lines and remove its max-lines suppression

Testing

  • pnpm test src/renderer/src/lib/pane-manager/pane-tree-ops.test.ts src/renderer/src/lib/pane-manager/pane-tree-reparent-frame.test.ts src/renderer/src/lib/pane-manager/pane-drag-reorder.test.ts src/renderer/src/lib/pane-manager/pane-split-close.test.ts
  • pnpm tc
  • pnpm run check:code-quality:changed
  • pnpm check:max-lines-ratchet
  • pnpm exec playwright test tests/e2e/terminal-pane-layout-resize.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1 --grep "shows a pane divider after splitting|closing a split pane removes it"

@greptile-apps

greptile-apps Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Greptile Summary

Extracts pane-tree traversal and split-size equalization into a dedicated module while preserving the existing pane-tree-ops exports.

  • Adds pane-tree-equalization.ts with the relocated traversal and sizing logic.
  • Re-exports the relocated functions through pane-tree-ops.ts.
  • Removes pane-tree-ops.ts from the max-lines baseline.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/renderer/src/lib/pane-manager/pane-tree-equalization.ts Contains the extracted pane-child traversal and recursive split equalization logic without behavioral changes.
src/renderer/src/lib/pane-manager/pane-tree-ops.ts Re-exports the extracted functions to preserve the existing public import contract.
config/max-lines-baseline.txt Removes the shortened pane-tree operations module from the max-lines exception baseline.

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

@nwparker
nwparker changed the base branch from ra/max-lines-bottom-4-prune-resolved to main August 30, 2026 03:06
@nwparker
nwparker merged commit 11a0deb 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: 3817387c-ba50-4cd6-b530-149aacf84b53

📥 Commits

Reviewing files that changed from the base of the PR and between 871601b and bb771de.

📒 Files selected for processing (3)
  • config/max-lines-baseline.txt
  • src/renderer/src/lib/pane-manager/pane-tree-equalization.ts
  • src/renderer/src/lib/pane-manager/pane-tree-ops.ts

📝 Walkthrough

Walkthrough

The change moves pane-tree equalization helpers into a dedicated module. The module finds pane children, calculates same-direction descendant weights, and updates child flex styles recursively. The original module re-exports the public helpers after removing their local implementations and its max-lines suppression. The max-lines baseline entry is also removed.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 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

* Fix F3-speech for stablyai#17123

* Fix F1-cycle for stablyai#17131
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