feat(admin): Move pending users to their own tab and add indicator badge - #1388
feat(admin): Move pending users to their own tab and add indicator badge#1388ArcticWarmth wants to merge 14 commits into
Conversation
|
In the sidebar badge, it’s doing |
|
|
|
Thanks for the comments. This was something I worked on and off over several days and I must have missed a few things when going back reviewing the diffs. Working to resolve now |
|
Also you may want to check how your doing API endpoints I would need to double check this as I have forgotten how the ACL system works but I am pretty sure this feature wont work if the admin doesn't have both INSTANCE_CONFIG_UPDATE and USER_APPROVE_ACCOUNT because of the endpoint you use to pull the information from which also returns the full instance config. |
blstmo
left a comment
There was a problem hiding this comment.
A few fixes and checks to make sure no issues arise comments made in code for you.
Along with I would suggest checking how redirects are handled for the functions as I am pretty sure it will redirect back to instance-config in some edge cases so I would suggest trying to move all of the handlers and functions around this away from instance config for code maintainability's sake and to avoid any future permission clashes.
Apologies for the less detailed review its late at night.
|
Ready for re-review when someone gets time |
Summary
This PR is helps to eliminate user confusion by separating the pending registrations out into their own page. It serves as a decent starting point to #1105
What changed:
UI
admin/pending-users)Backend
ACLs
Endpoints
/admin/pending-registrations/getUSER_APPROVE_ACCOUNTACL/admin/instance-config/pending-registrations/approve->/admin/pending-registrations/approve/admin/instance-config/pending-registrations/reject->/admin/pending-registrations/rejectWhy it is correct:
Risk
This PR is low to medium risk as it does touch the auth middleware for the admin panel but changes are minimal
Verification
Tests run:
fluxer_api/src/api/admin/tests/Prior to PR
Code in PR
fluxer_admin/Manual checks:
Screenshots or recordings:
Checklist
LLM Disclosure