ucsb-cs156-f24 / proj-rec-f24-05

0 stars 0 forks source link

FEATURE: Show individual user roles on admin User Table #17

Open github-actions[bot] opened 1 day ago

github-actions[bot] commented 1 day ago

User Story

Discussion

We have a current User table to show the logged in users of the application. We want to add roles to this table to visually see which users are students vs. professors.

As an example, here is the admin User table from proj-gauchoride:

Screenshot 2024-11-13 at 1 44 59 PM

We want to make ours look similar to this, except for the Admin/Student/Professor Roles. Toggling roles could also be an issue to work on after this if you get time!

Acceptance Criteria

Optional future issue:

Implementation Todos

Frontend/Backend changes:

Testing:

Hints

Compare the following files between the current proj-rec code base, and the proj-gauchoride code base.

proj-rec proj-gauchoride What to look for
User.java User.java Look at the extra fields for the roles
SecurityConfig.java SecurityConfig.java Look at the code that handles the roles
(not present) RoleInterceptor.java This is an extra file you'll need to handle dynamically changing roles
(not present) RoleInterceptorConfig.java This is an extra file you'll need to handle dynamically changing roles
UsersController.java UsersController.java Look at the methods for toggling roles
usersFixtures.js usersFixtures.js note the extra fields for the roles
UsersTable.js) UsersTable.js Code for toggling roles