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

feat(backend): Add user profile #9116

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

matmair
Copy link
Member

@matmair matmair commented Feb 20, 2025

This PR:

  • Adds user profiles containing basic info needed for commercial ops
  • Adds endpoints to get users profiles
  • Enables persisting of preferred language
  • Enables persisting of theme settings
  • Enables persisting of widgets
  • Adds user and group info pages
  • Adds user hover and link to detail pages

Hover for user / owner / Group Pill
grafik

To address in later PRs:

  • Add avatar pictures to users
  • Add avatar picture to groups
  • Inline self-service group joining

Closes invenhost#107
Closes invenhost#93
Closes invenhost#117

@matmair matmair added enhancement This is an suggested enhancement or new feature api Relates to the API User Interface Related to the frontend / User Interface labels Feb 20, 2025
@matmair matmair added this to the 1.0.0 milestone Feb 20, 2025
@matmair matmair self-assigned this Feb 20, 2025
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 6dd8d4d
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/67be63d619766800088f60be

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 92.50936% with 20 lines in your changes missing coverage. Please review.

Project coverage is 86.17%. Comparing base (94c2157) to head (6dd8d4d).

Files with missing lines Patch % Lines
src/backend/InvenTree/users/models.py 86.27% 7 Missing ⚠️
src/backend/InvenTree/users/serializers.py 94.02% 4 Missing ⚠️
src/frontend/src/components/details/Details.tsx 71.42% 2 Missing and 2 partials ⚠️
src/frontend/src/tables/settings/GroupTable.tsx 50.00% 1 Missing and 2 partials ⚠️
src/frontend/src/router.tsx 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9116      +/-   ##
==========================================
+ Coverage   85.97%   86.17%   +0.19%     
==========================================
  Files        1181     1182       +1     
  Lines       52210    52304      +94     
  Branches     2185     2196      +11     
==========================================
+ Hits        44890    45071     +181     
+ Misses       6760     6673      -87     
  Partials      560      560              
Flag Coverage Δ
backend 88.11% <89.68%> (+<0.01%) ⬆️
migrations 43.01% <56.05%> (+0.06%) ⬆️
pui 69.65% <79.54%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matmair matmair added the full-run Always do a full QC CI run label Feb 21, 2025
@matmair matmair closed this Feb 21, 2025
@matmair matmair reopened this Feb 21, 2025
@matmair matmair marked this pull request as ready for review February 25, 2025 00:18
@matmair
Copy link
Member Author

matmair commented Feb 25, 2025

@SchrodingersGat @wolflu05 This adds the following fields for users; anything more required from your pov?
language (internal)
theme (internal)
widgets (internal)
displayname
status
location
active
contact
type
organisation
primary_group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Relates to the API enhancement This is an suggested enhancement or new feature full-run Always do a full QC CI run User Interface Related to the frontend / User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User facing user/group info page System: Save user language setting Home page: Save widget settings
1 participant