Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Jun 11, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jun 11, 2025

🦋 Changeset detected

Latest commit: 60f998c

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

@vercel
Copy link

vercel bot commented Jun 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cube-ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2025 8:35am

@netlify
Copy link

netlify bot commented Jun 11, 2025

Deploy Preview for cube-uikit-docs failed.

Name Link
🔨 Latest commit 60f998c
🔍 Latest deploy log https://app.netlify.com/projects/cube-uikit-docs/deploys/684a9124b4bfb400087a19b4

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-210699c.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

🏗 Docs are successfully deployed!

👀 Preview: https://684a91649ea7252cc4386c90--cube-uikit-docs.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented Jun 11, 2025

🏋️ Size limit report

Name Size Passed?
All 252.69 KB (+0.15% 🔺) Yes 🎉
Tree shaking (just a Button) 21.72 KB (+0.04% 🔺) Yes 🎉
Tree shaking (just an Icon) 11.4 KB (0% 🟰) Yes 🎉

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds consistent border styles to popover components (Menu, Select, ComboBox, Dialog), introduces <Divider/> support inside <Menu/>, and allows menu/combo items to have an optional description prop.

  • Apply new border tokens on popovers across various components
  • Integrate <Divider/> into Menu rendering and adjust styled rules
  • Extend Menu.Item and ComboBox.Item to accept a description prop with accompanying stories

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/components/pickers/Menu/styled.tsx Updated menu/divider border token and spacing
src/components/pickers/Menu/MenuButton.tsx Added optional description prop and layout tweaks for items
src/components/pickers/Menu/Menu.tsx Render <Divider/> in menu, normalize keyed children
src/components/pickers/Menu/Menu.stories.tsx Imported Divider and added stories for separators and descriptions
src/components/overlays/NewNotifications/NotificationsList/NotificationsList.tsx Added qa attribute for testing
src/components/overlays/NewNotifications/Notifications.stories.tsx Fixed import path for wait utility
src/components/overlays/NewNotifications/NotificationView/NotificationView.tsx Added border radius to notification container
src/components/overlays/NewNotifications/Dialog/NotificationsDialogTrigger.tsx Removed redundant border style
src/components/overlays/Dialog/Dialog.tsx Enabled border for popover-type dialogs
src/components/fields/Select/Select.tsx Enabled border on select popover
src/components/fields/ComboBox/ComboBox.tsx Extended ComboBox.Item typing for description, added border
src/components/fields/ComboBox/ComboBox.stories.tsx Added story showcasing combo items with descriptions
src/components/content/Divider.tsx Implemented ARIA useSeparator and combined refs
.changeset/two-ladybugs-sparkle.md Changelog: <Divider/> in <Menu/> support
.changeset/slimy-students-walk.md Changelog: border for <Select/> and <ComboBox/> popovers
.changeset/silent-crabs-vanish.md Changelog: border on dialog popovers
.changeset/loud-brooms-pull.md Changelog: update disabled state for clear/neutral buttons
.changeset/itchy-lions-watch.md Changelog: description prop in <ComboBox/>
.changeset/cool-geese-bow.md Changelog: description prop in <Menu/>
Comments suppressed due to low confidence (3)

src/components/fields/ComboBox/ComboBox.tsx:477

  • Using as unknown as to override ComboBox.Item typing sacrifices its original generic signature and undermines type safety. Consider extending the Item component's props via proper TypeScript generics or module augmentation to preserve its original type definitions while adding description support.
ComboBox.Item = Item as unknown as (props: {

src/components/pickers/Menu/Menu.tsx:229

  • Casting Menu.Item through unknown hides its original props interface and may break generic usage. It would be better to extend the existing Menu.Item type via TypeScript interface merging or proper generic propagation to maintain type safety when adding the description prop.
  Item: Item as unknown as (props: {

src/components/pickers/Menu/MenuButton.tsx:159

  • The new description prop on Menu.Item is a key user-facing feature but isn’t covered by any tests yet. Consider adding unit or integration tests to verify that descriptions render correctly and maintain proper accessibility roles.
{description ? (

@tenphi tenphi merged commit 408ea7b into main Jun 12, 2025
13 of 17 checks passed
@tenphi tenphi deleted the fix-dialog-popover-border branch June 12, 2025 10:40
@github-actions github-actions bot mentioned this pull request Jun 12, 2025
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.

2 participants