Skip to content

Revert PageLayout resize changes from #8731 - #8849

Open
TylerJDev wants to merge 1 commit into
mainfrom
revert-pagelayout-8731
Open

TylerJDev wants to merge 1 commit into
mainfrom
revert-pagelayout-8731

Conversation

@TylerJDev

Copy link
Copy Markdown
Member

Restore PageLayout's pane-resize hook to its state before #8731 to address a suspected regression. Leave the TreeView and dependency updates from #8731 intact.

Changelog

New

Changed

  • PageLayout: Restore the previous pane resizing behavior when the viewport changes.

Removed

Rollout strategy

  • No changes needed in github/github-ui

Testing & Reviewing

In the Resizable Pane story, narrow the viewport from 1600px to 1000px and widen it again. The resize handle's maximum should drop and then return to its original value.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TylerJDev
TylerJDev requested a review from a team as a code owner November 25, 2026 17:40
@TylerJDev
TylerJDev requested review from jonrohan and a balanced review from Copilot November 25, 2026 17:40
@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: eacddaa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added staff Author is a staff member integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Action required

👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Check the integration testing docs for step-by-step instructions. Or, apply the integration-tests: skipped manually label to skip these checks.

@TylerJDev TylerJDev added the Canary Release Apply this label when you want CI to create a canary release of the current PR label Nov 25, 2026
@primer-integration

primer-integration Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Integration test results from github/github-ui PR:

Waiting  Changes   Waiting
Passed  CI   Passed
Running  VRT   Running
Waiting  Projects   Waiting

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

With the Oxc upgrade retained, the mutable-closure revert needs compiler-enabled validation and the unexecuted 1600→1000→1600 viewport round trip to establish that the regression is fixed.

No open issues 🎉

What changed in this PR

This PR reverts the PageLayout pane-resize hook changes from #8731 to address a suspected viewport-resizing regression, while leaving its TreeView and dependency updates intact.

Changes:

  • Restores closure-local variables for tracking viewport width, resize scheduling, and cleanup.
  • Adds an @primer/react patch changeset describing the restored resizing behavior.
File Description
packages/​react/​src/​PageLayout/​usePaneWidth.ts Restores the previous resize-state tracking implementation.
.changeset/​restore-page-layout-resizing.md Records the PageLayout behavior restoration for a patch release.

Review effort: Balanced

This branch was successfully deployed

2 active deployments
storybook-preview-8849 — eacddaaa Deployed Nov 25, 2026 by github-actions[bot]
github-pages — eacddaaa Deployed Nov 25, 2026 by TylerJDev via deploy-preview #34550
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Canary Release Apply this label when you want CI to create a canary release of the current PR integration-tests: passing Changes in this PR do NOT cause breaking changes in gh/gh integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants