Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Jan 30, 2026

Note

Medium Risk
Changes core Layout/Layout.Panel rendering and context plumbing (including portal-based DOM placement), which can affect panel positioning, resize behavior, and mount timing across the app.

Overview
Fixes nested Layout usage so panels in child layouts no longer register against or resize the parent layout, by splitting LayoutContext into actions/state/refs contexts and updating LayoutContextReset to fully null out nested providers.

Switches Layout.Panel to render via React portals into a new PanelContainer created by Layout (instead of relying on direct-child heuristics), including a container-ready gate to avoid rendering before the portal target exists; tests are expanded to cover nested layouts, resizable independence, and wrapped/styled panels. A patch changeset is added and new context exports are exposed from Layout/index.tsx.

Written by Cursor Bugbot for commit 50d10fe. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Jan 30, 2026 2:30pm
cube-ui-kit-cursor Ready Ready Preview, Comment Jan 30, 2026 2:30pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Jan 30, 2026

🦋 Changeset detected

Latest commit: 50d10fe

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit 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
Copy link
Contributor

github-actions bot commented Jan 30, 2026

📦 NPM canary release

Deployed canary version 0.0.0-canary-2cfc177.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

🏋️ Size limit report

Name Size Passed?
All 378.27 KB (+0.03% 🔺) Yes 🎉
Tree shaking (just a Button) 57.73 KB (0% 🟰) Yes 🎉
Tree shaking (just tasty) 34.12 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@tenphi tenphi merged commit 6fb56a6 into main Jan 30, 2026
17 checks passed
@tenphi tenphi deleted the fix-nested-layout branch January 30, 2026 14:43
@github-actions github-actions bot mentioned this pull request Jan 30, 2026
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