VRMS icon indicating copy to clipboard operation
VRMS copied to clipboard

Create filtered permissions data component

Open JackHaeg opened this issue 1 year ago • 2 comments

Overview

Currently, there is no way for admins to identify at scale which users are VRMS admins, or project managers (aka project leads) and which projects they are associated with on VRMS. Given that, we need to create a feature that enables admin users to filter & search for VRMS admins or all project leads linked to their respective projects, as well as view a full list of existing VRMS admins or project leads and their linked projects.

Action Items

  • [x] Create Filtered Permissions Data component on the “User Permission Search” screen (see #1752)
  • [x] Takes props data and type
    • [ ] data is an array of user data
    • [ ] type is a string defining the type of data being passed
  • [ ] Render a MUI Text field
    • [ ] Filter data based on text field contents.
      • [ ] Admin only filters by name string
      • [ ] Project Leads filters by name string and by project string
    • [ ] Styled after the screenshots below:
Screenshot of text field with "Admin" selected

Screenshot 2024-10-14 at 6 53 37 PM

Screenshot of text field with "Project Leads" selected

Screenshot 2024-10-14 at 6 53 42 PM

  • [ ] Render data in a MUI Box component styled after the screenshots below
Screenshot of admin selected

Screenshot 2024-10-14 at 6 47 54 PM

Screenshot of Project Leads selected

Screenshot 2024-10-14 at 6 48 04 PM

  • [ ] Render user information based off of type
    • [ ] Each data element renders a link to the associated user profile.
    • [ ] Admin = name and email
      • [ ] Sort order:
        • Alphabetically by first name
    • [ ] Project Leads = name and project
      • [ ] If a user is a project lead on multiple projects, list that user again for each project they are a part of.
      • [ ] Sort order:
        • alphabetically by project name first
        • alphabetically by first name within each project

Resources/Instructions

Screenshot of User Permission Search Screen mockups

Screenshot 2024-10-07 at 8 30 51 PM

JackHaeg avatar Sep 24 '24 01:09 JackHaeg

Hi @jng34 - This issue is part of a larger epic (https://github.com/hackforla/VRMS/issues/1737), which requires each issue to be completed in order.

So, #1752 needs to be completed first before working on this issue. This issue will also rely on API calls that are still in development (see #1771). We will be un-assigning you from this issue for now and placing it in the icebox until these dependencies can be met.

Please feel free to pick up #1752 in the meantime! And once all the dependencies are met, you can pick up this issue again :)

JackHaeg avatar Oct 17 '24 16:10 JackHaeg

@JackHaeg Ahh, thank you for letting me know.

jng34 avatar Oct 17 '24 20:10 jng34

@JackHaeg, @trillium, the search result in this ticket should be based on the dummy data created in https://github.com/hackforla/VRMS/issues/1752. Is that correct? It looks like we're doing the API integration in the next ticket #1801.

vorleakyek avatar Nov 02 '24 06:11 vorleakyek

@vorleakyek Yes, the search results in this ticket should be based on the dummy data created in #1752. The API integration occurs in #1801

JackHaeg avatar Nov 04 '24 16:11 JackHaeg

PR has been merged into user_permissions_search branch. Closing issue as completed.

JackHaeg avatar Jan 21 '25 19:01 JackHaeg