Skip to content
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

Merged
merged 2 commits into from
Dec 31, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Dec 31, 2024

About the changes

Screenshot 2024-12-30 at 17 01 31

Details:

  • project roles and custom roles are grouped
  • project roles (Owner,Member) always go first
  • custom project roles are sorted alphabetically
  • checkbox is aligned with top of the text

Important files

Discussion points

Copy link

vercel bot commented Dec 31, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 31, 2024 9:26am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 31, 2024 9:26am

Copy link
Contributor

github-actions bot commented Dec 31, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

);

const sortedRoles = sortItems(roles);
Copy link
Contributor Author

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) => {
Copy link
Contributor Author

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={{
Copy link
Contributor Author

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),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

minor alignment tweak

@kwasniew kwasniew merged commit e0b4e25 into main Dec 31, 2024
11 checks passed
@kwasniew kwasniew deleted the project-level-roles-improvements branch December 31, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants