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

Implement critical admin functions

Open andreaskoepf opened this issue 2 years ago • 6 comments

We need Admin UI for the following functions (only displayed for admin users):

  • [x] User-Id link in every message that navigates to the admin user-page of the author (e.g. to disable a user, inspect message history) (resolved via https://github.com/LAION-AI/Open-Assistant/pull/1021)
  • [x] "delete message" command for all messages (e.g. in "..." drop down) -> call DELETE /api/v1/messages/{message-id} ..
  • [x] "stop tree" command in all messages (set them into halted-by-moderator state) (e.g. in "..." drop down) (backend function to halt tree added by: https://github.com/LAION-AI/Open-Assistant/pull/1025)
  • [ ] browse through all the user's messages (not just last 10, e.g. user message cursor endpoint)
  • [ ] browse all message trees of the system (e.g. via general message cursor endpoint, only roots first and then view the whole message tree)

andreaskoepf avatar Jan 30 '23 19:01 andreaskoepf

I have opened a PR for point number 1. https://github.com/LAION-AI/Open-Assistant/pull/1021

rjmacarthy avatar Jan 30 '23 20:01 rjmacarthy

I am looking at the 4th point here browse through all the user's messages (not just last 10, e.g. user message cursor endpoint)

The current state of this page is to have the latest 10 messages of a user, but the UI is showing the latest message at the top. Is it expected behavior?

Image

About the pagination/cursor feature here. I am thinking of having a button `Load older message" to load 10 more old messages at the top/bottom depending on the answer of the question above.

kingychiu avatar Feb 05 '23 14:02 kingychiu

@kingychiu have you start the work?

notmd avatar Feb 08 '23 06:02 notmd

@notmd Not yet

kingychiu avatar Feb 08 '23 11:02 kingychiu

@notmd Not yet

@kingychiu Thanks, let me take it

notmd avatar Feb 08 '23 16:02 notmd

I think this can be closed now

notmd avatar Feb 13 '23 08:02 notmd