-
Notifications
You must be signed in to change notification settings - Fork 2
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
Recommended fixes/changes to organizations #189
Conversation
DaveDarsa
commented
Nov 8, 2023
- changes organization header gradient
- changes various button tooltips
- changes "view in dashboard" link
- changes some of the placeholders
- removes border highlight on non clickable table rows
The header gradient to me seems a bit off, I was initially thrown off by it when I had a quick look because I thought maybe something with the page rendered incorrectly If the idea of the gradient is to distinguish you're in a different part of the UI for organizations, it doesn't really make it obvious |
src/components/Header/index.js
Outdated
|
||
const isOrganizationsPath = asPath.includes('/organizations'); | ||
|
||
console.log(isOrganizationsPath); |
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.
A wild console.log() appears :)
…goon/lagoon-ui into Some-organizations-changes
… edit in user view
</span> | ||
<Tooltip overlayClassName="orgTooltip" placement="bottom" title="View user"> | ||
<> | ||
<Link href={linkData.urlObject} as={linkData.asPath}> |
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.
The view user links here fail if the administator isn't in any groups in the organization. A user can be an administator but not a user/in any groups in the org. Not sure if these view user links are necessary on this page?
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.
Good point, the userByEmailAndOrganization
query returns null on the user page for those kind of users.
What if we have a a different view on this page if that happens?
We could also do a check in the background - if the query returns null we disable the links for those specific users?
@shreddedbacon @tobybellwood
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.
That is a lot of queries to perform when rendering the page potentially, a lot of these user queries are not very cached at the moment. So performing them often could see some performance impacts over time.
If you can handle the null
user experience with some sort of message that says the user is not in any groups, then that would be fine.
Alternatively, not linking the administrators of an organization to the users that are contained within the groups is also a pretty good idea.
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.
I'm worried that there is going to be too much circular references in the organizations UI component that will get people clicking around and landing in all sorts of spots.
Like, the administrators of the organization are just that, and linking the user OUT of the management view into a view where they can then manage the users who are contained within the groups of the organization, which then leads them into all other parts of the management of organizations.
If I know I need to manage the organizations administrators, simplying going to manage to add, edit, or remove a user as an admin is all I should be able to do there, IMO
@shreddedbacon @tobybellwood @CGoodwin90 I've tried numerous ways to include the The problem lies with either the Aside from that, I think this pr is good to go. |
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.
Happy that this addresses the outstanding concerns