Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Create an admin web page that shows messages from a given user

Open fozziethebeat opened this issue 2 years ago • 0 comments
trafficstars

Admins will need to review the messages posted by users. To make this simple, we should use the Backend API /api/v1/frontend_users/{username}/messages using the user's appropriate ID based on their auth method (for email: ID in the User table, for discord: userId in Account table).

This requires:

  • [ ] A link from the user's entry in the main admin panel that goes to a new page (/admin/review-user/{id})
  • [ ] Fields to set the number of messages to inspect and the start and end date.
  • [ ] A table to display the fetched messages.
  • [ ] A way to change the user's role assuming an admin might want to change their access rights after review.
  • [ ] An API route to do the fetching from the Backend using /api/v1/frontend_users/{username}/messages. This layer should probably be the one that decides what user ID to send to the backend.

Blocked by #237

fozziethebeat avatar Jan 01 '23 12:01 fozziethebeat