Skip to content

Added first UI components for user managment - #5875

Merged
SchrodingersGat merged 31 commits into
inventree:masterfrom
matmair:pui-add-user-mgmt
Nov 13, 2023
Merged

SchrodingersGat merged 31 commits into
inventree:masterfrom
matmair:pui-add-user-mgmt

Conversation

@matmair

@matmair matmair commented Nov 6, 2023 •

Copy link
Copy Markdown
Member

This PR adds a section for user managment in PUI. This does not add permission mangement for groups, still searching for a nice UI pattern for that. Also fixes the settings header refactor.
Ref #4962
grafik

@matmair matmair added enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface labels Nov 6, 2023
@matmair matmair self-assigned this Nov 6, 2023
@netlify

netlify Bot commented Nov 6, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit edf655a
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/655164a6c6ce5f0008bd2ef7
😎 Deploy Preview https://deploy-preview-5875--inventree-web-pui-preview.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@matmair matmair added this to the 0.13.0 milestone Nov 6, 2023
@wolflu05

wolflu05 commented Nov 8, 2023 •

Copy link
Copy Markdown
Member

I tried the preview now to see how the admin center goes. Looks already really promising. But one thing I noticed, I need to scroll a bit to navigate on that page. Wouldn't it make sense to move the groups management onto another tab on the left in this really empty sidebar? I don't have a large instance, but I'm not sure how good this tiny user table is scaling for really large instances for 50+ users. Extracting everything group related onto a new panel would enable to make the tables larger in height.

@matmair

matmair commented Nov 8, 2023

Copy link
Copy Markdown
Member Author

@wolflu05 groups and users are inheritly connected, spliting them up would be inefficient in practical usage. Those features are not all there yet so maybe it is not clear.
In my experience administering large user bases via webinterfaces I seldom need to see more than a few users. If I need to edit one, I use seach/filter. If I need to get a list, I download one or look at the total records.

@wolflu05

wolflu05 commented Nov 12, 2023 •

Copy link
Copy Markdown
Member

Using a drawer for the user detail is a good idea. I have the same struggle with machines. But wouldn't it make sense to somehow have the user id in the url for a detail page? Same would be helpful for plugins as well, as then it would be easy to link to a plugin from the machine detail page or share the link with others. I think such states would make sense to encode in the url path.

@matmair

matmair commented Nov 12, 2023

Copy link
Copy Markdown
Member Author

@wolflu05 that is currently not planned from my side but would certainly be nice. I had something similar already implemented in the settings before they got refactored.

@matmair
matmair marked this pull request as ready for review November 12, 2023 23:53
@SchrodingersGat

Copy link
Copy Markdown
Member

image

Getting some js errors

@matmair

matmair commented Nov 13, 2023

Copy link
Copy Markdown
Member Author

@SchrodingersGat the API is changed so this will not work on the netlify preview

@SchrodingersGat

Copy link
Copy Markdown
Member

Of course... I'll check it locally :)

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair I am happy with this as a starting point :) Would be great to extend the available user actions to perform tasks such as:

  • Change superuser / admin status
  • Enable / disable each user
  • Change which group(s) a user belongs to
  • etc

@SchrodingersGat
SchrodingersGat merged commit 33c02fc into inventree:master Nov 13, 2023
@matmair

matmair commented Nov 13, 2023 •

Copy link
Copy Markdown
Member Author

@SchrodingersGat click on a user line - you can do everything you asked except group managment in the user drawer. Those actions used to be row actions but that became to unclear with the latest refactor and removal of texts.

@matmair
matmair deleted the pui-add-user-mgmt branch November 13, 2023 06:51
@SchrodingersGat

Copy link
Copy Markdown
Member

Oh I see, missed that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants