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

Create a new admin panel #155

Open
2 tasks
fbaig opened this issue Sep 20, 2024 · 2 comments
Open
2 tasks

Create a new admin panel #155

fbaig opened this issue Sep 20, 2024 · 2 comments
Assignees
Labels
design improvement Improvements of frontend design Feature request

Comments

@fbaig
Copy link
Collaborator

fbaig commented Sep 20, 2024

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
An admin panel option in the top right dropdown menu. It should only be shown to users having role<=2

Additional context
The admin panel will have following functionalities to start with

  • List all users, change users' role
  • List elements with no related elements
@fbaig fbaig added the design improvement Improvements of frontend design label Sep 20, 2024
@erickzli
Copy link
Collaborator

@fbaig We need to implement new endpoints for the above functions.

@erickzli erickzli changed the title [Feature Request] Admin Panel Create a new admin Panel Sep 23, 2024
@erickzli erickzli changed the title Create a new admin Panel Create a new admin panel Sep 24, 2024
@erickzli erickzli added this to the The New Hope milestone Oct 16, 2024
@erickzli
Copy link
Collaborator

Endpoint candidates:

  • Listing all users: GET /api/users
  • Change user role: PUT /api/uses/{user-id}/role with the new role in the JSON body.

@erickzli erickzli assigned pdhanlet and unassigned erickzli Oct 29, 2024
@erickzli erickzli removed this from the A New Hope milestone Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design improvement Improvements of frontend design Feature request
Projects
None yet
Development

No branches or pull requests

3 participants