Skip to content

Conversation

@aaronashby
Copy link
Contributor

ℹ️ Issue

Closes #224

📝 Description

I implemented the feature that lets administrators change the permissions of active users, and delete them. It is accessible by navigating to the users page and clicking on the three dots on the right of a user card (on the active users tab). I also made a few small changes to the user page's code for readibility + position card coloring.

Briefly list the changes made to the code:

  1. Used ActionConfirmation.tsx component to confirm permission changing and user deletion actions
  2. In PendingUserCard.tsx, position is now of type UserStatus instead of string to further enforce enumeration constraint
  3. Fixed issue where a user position card (UserPositionCard.tsx) would not color based on the position

✔️ Verification

Screen.Recording.2025-12-04.at.1.08.38.AM.mov

Test Changes

N/A

🏕️ (Optional) Future Work / Notes

  • Since I cannot confirm newly-registered users in AWS, and I didn't want to risk making accidental deletions, I didn't test the delete user action in this PR, but it calls the same backend route in the same way as rejecting a pending user.
  • User cards do not yet automatically re-render after queries go through

@prooflesben prooflesben merged commit 95e0c1d into main Dec 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DEV - Implement feature to change user permissions and delete a user

3 participants