- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 753
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: grouping of project level roles in autocomplete #9046
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
); | ||
|
||
const sortedRoles = sortItems(roles); |
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.
project roles before custom roles and alphabetic sorting of custom roles
multiple | ||
disableCloseOnSelect | ||
openOnFocus | ||
size='small' | ||
value={value} | ||
groupBy={(option) => { |
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.
built-in grouping and styling from MUI component
return ( | ||
<> | ||
<Autocomplete | ||
slotProps={{ |
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.
override default list item styling to align to the top and remove left spacing
@@ -13,6 +13,7 @@ import { RoleDescription } from '../RoleDescription/RoleDescription'; | |||
import { ConditionallyRender } from '../ConditionallyRender/ConditionallyRender'; | |||
|
|||
const StyledRoleOption = styled('div')(({ theme }) => ({ | |||
paddingTop: theme.spacing(0.75), |
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.
minor alignment tweak
About the changes
Details:
Important files
Discussion points