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

fix: multi project roles UI improvements #4646

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Sep 8, 2023

https://linear.app/unleash/issue/2-1373/small-ui-fixes-and-improvements

  • Update group root role HelpIcon tooltip to reflect the new behavior;
  • Fixes a crash on groups search where description could be undefined;
  • Improves RoleDescription design;
  • Fixes the role label in ProjectGroupView;

image

@vercel
Copy link

vercel bot commented Sep 8, 2023

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

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 8, 2023 10:28am
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview Sep 8, 2023 10:28am

Comment on lines +493 to +495
{selectedRow && selectedRow.entity.roles.length > 1
? 'Roles:'
: 'Role:'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Will there always be >= 1 roles? Or could selectedRow.entity.roles.length be 0 and should it then say "Roles:" if there are 0 roles in selectedRow.entity.roles ?

Copy link
Member Author

@nunogois nunogois Sep 8, 2023

Choose a reason for hiding this comment

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

I think this is safe. This is shown inside project access and only when you click in a group that has access, which means the group should have a role. Worst case scenario it would display "Role: ", which doesn't sound super bad.

Copy link
Contributor

@daveleek daveleek left a comment

Choose a reason for hiding this comment

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

LGTM! Single question but you can ignore

@nunogois nunogois merged commit 61174a1 into main Sep 8, 2023
15 checks passed
@nunogois nunogois deleted the fix-multi-roles-ui-improvements branch September 8, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants