-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
User permissions search #1853
base: development
Are you sure you want to change the base?
User permissions search #1853
Conversation
…d users-permission-search
…d users-permission-search
Added an API that fetches all the admins
Redesign users screen 1751
Filtered permission 1754
Filtered permissions data comp
@trillium please prioritize this PR review if possible :) |
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 GET requests work as expected. The code and comments are detailed. Integration looks good!!
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.
Looking good! Needs a change to the StyledButton nav element:
// client/src/components/Navbar.jsx
<StyledButton component={NavLink} to="/users/permission-search" />
Reasons referenced in comments within that code block
client/src/components/Navbar.jsx
Outdated
@@ -61,7 +61,8 @@ const Navbar = (props) => { | |||
{/* Admin auth -> Displays 2 links -> 'Users' and 'Projects'. */} | |||
{auth?.user?.accessLevel === 'admin' && ( | |||
<> | |||
<StyledButton component={NavLink} to="/useradmin"> | |||
<StyledButton component={NavLink} to="/users/permission-search" /> |
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.
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.
Thanks for pointing that out @trillium!
I made the changes. Please take another look.
@vorleakyek When using the "Project Leads" search, can a user also search for a project name and get a list of users who are linked to the project that has been searched? |
@JackHaeg, as discussed in the meeting, the current search for the project lead is based on the "name or project". So, searching for name or the project name would look like this. Thanks! |
Chiming in here to note that there's still some issues with how this is all coming together. To be clear, @vorleakyek this isn't on you. I think there are some missing TODO items that we need to also reference. I'll add them to the epoch. When a user is navigated from permissions search it isn't brining up the projects they're listed as leads on. That is only showing up when we navigate via ![]() ![]() ![]()
|
Thanks for pointing that out, @trillium! So, this issue will be handled in a follow-up ticket. Is that correct? |
@vorleakyek I just spoke with @trillium and we'd prefer for this fix to be completed as part of the existing issue / PR. I have created an additional To-Do item on the original issue that follow's Trillium's feedback above. Please let us know if you have additional questions or concerns! Also, great work on this so far - we are super excited to get this feature into the product :) |
@JackHaeg, okay. I'll take a look later this week. Thanks for the confirmation! |
Hey @vorleakyek , it looks like you've passed setUserToUdit into |
File in Frontend needs to adapt to manage an object that has |
Thanks for finding the issue, @trillium! |
Fixes #1801
What changes did you make and why did you make them ?
Screenshots of Proposed Changes
Visuals after changes are applied