Skip to content

feat: new Board component#1228

Merged
tenphi merged 18 commits into
mainfrom
feat-board-component
Jul 9, 2026
Merged

feat: new Board component#1228
tenphi merged 18 commits into
mainfrom
feat-board-component

Conversation

@tenphi

@tenphi tenphi commented Jul 7, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Large new public API and ~10kB bundle increase, with intricate drag/resize and cross-board state; mitigated by extensive tests and no changes to auth or data paths.

Overview
Introduces Board, a new layout primitive for draggable, resizable dashboard tiles: Board.Widget registers content separately from grid layout, with vertical/horizontal/free compaction, optional overlap, grid lines, dragCancel/dragHandle, and drag/resize lifecycle callbacks.

Board.Provider shares a registry for cross-board moves (onWidgetTransfer), pointer drags render in a fixed overlay, and nested boards can use isAligned / isAutoHeight so inner grids match parent cell pitch and containers grow to fit. Board.Responsive picks breakpoint layouts like react-grid-layout. Interaction is built on React Aria useMove (pointer + keyboard); layout math comes from a vendored grid-core (react-grid-layout).

Also wires Tabs spring-loading during board drags via useBoardDragActive, bumps the size-limit all-bundle cap to 425kB, and makes PR canary npm publish skip re-publish when the version already exists (re-tag only).

Reviewed by Cursor Bugbot for commit 927ca35. Bugbot is set up for automated code reviews on this repo. Configure here.

@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 927ca35

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 Minor

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

@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview, Comment Jul 9, 2026 2:41pm

Request Review

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-46c544b.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 412.06 KB (+2.46% 🔺) Yes 🎉
Tree shaking (just a Button) 114.36 KB (0% 🟰) Yes 🎉

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

Comment thread src/components/layout/Board/board-store.ts
Comment thread src/components/layout/Board/Widget.tsx
Comment thread src/components/layout/Board/Board.tsx
Comment thread src/components/layout/Board/WidgetHost.tsx Outdated
Comment thread src/components/layout/Board/WidgetHost.tsx Outdated
Comment thread src/components/layout/Board/use-board-registry.ts
Comment thread src/components/layout/Board/Board.tsx Outdated
Comment thread src/components/layout/Board/Board.tsx Outdated
Comment thread src/components/layout/Board/Board.tsx
Comment thread src/components/layout/Board/responsive-utils.ts
Comment thread src/components/layout/Board/Board.tsx

@cursor cursor Bot 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.

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

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d279cb2. Configure here.

Comment thread src/components/layout/Board/Board.tsx Outdated
@tenphi tenphi merged commit e5a3b85 into main Jul 9, 2026
16 checks passed
@tenphi tenphi deleted the feat-board-component branch July 9, 2026 15:00
@github-actions github-actions Bot mentioned this pull request Jul 9, 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