-
-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use SplitButton
for repo page Add Workspace buttons
#4062
Conversation
…itButton action type
✅ Deploy Preview for oss-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not specific to this PR but since it's the first usage of the split button component, the shifting should get sorted out either in a separate PR or this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like under the hood, radix uses the Context: radix-ui/primitives#1100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great! Thanks @zeucapua! 🚢
## [2.62.0-beta.1](v2.61.0...v2.62.0-beta.1) (2024-08-30) ### 🍕 Features * use `SplitButton` for repo page Add Workspace buttons ([#4062](#4062)) ([6cf13e6](6cf13e6))
## [2.62.0](v2.61.0...v2.62.0) (2024-09-10) ### 🍕 Features * use `SplitButton` for repo page Add Workspace buttons ([#4062](#4062)) ([6cf13e6](6cf13e6)) ### 🐛 Bug Fixes * correct no insights message on contributor insights ([#4090](#4090)) ([49dfa03](49dfa03)) * fixed dropdown styling ([#4077](#4077)) ([4fa8b7f](4fa8b7f)) * use custom error component with Sentry error reporting for 500s ([#4078](#4078)) ([c3fd10e](c3fd10e))
Description
Implements the
SplitButton
component to combine the 'Add to Workspace' and 'Create Workspace from SBOM' buttons on desktop. Adds a new optional 'icon' prop toSplitButton
.Note: this is only for the desktop view. On mobile we are using the
Drawer
component which requires its own trigger button, so it can't be separated to an external trigger.Related Tickets & Documents
Closes #3942
Mobile & Desktop Screenshots/Recordings
Arc.mp4
Steps to QA
Tier (staff will fill in)
[optional] What gif best describes this PR or how it makes you feel?