Add emoji reactions and reporting for messages (website) (#952)

* website: Move labelling to message ... menu and add reporting and emoji reactions

We can add more emoji easily in future, we just need to pick ones that we have consistent icons for.

Also added "open in new tab" option so that messages can be navigated to from tasks on mobile.

* website: Make new label and report strings translatable.

* website: Move report api call to oasst client

* small fixes

* pre-commit

---------

Co-authored-by: AbdBarho <ka70911@gmail.com>
This commit is contained in:
Adrian Cowan
2023-01-27 20:52:40 +01:00
committed by GitHub
co-authored by AbdBarho
parent c7692b9049
commit 356fd775e9
22 changed files with 541 additions and 54 deletions
@@ -20,7 +20,6 @@ export const EvaluateTask = ({
let messages = [];
if (task.conversation) {
messages = task.conversation.messages;
messages = messages.map((message, index) => ({ ...message, id: index }));
}
useEffect(() => {
@@ -48,7 +48,7 @@ export const LabelTask = ({
</Box>
) : (
<Box mt="4">
<MessageView text={task.prompt} is_assistant={false} id={task.message_id} />
<MessageView text={task.prompt} is_assistant={false} id={task.message_id} emojis={{}} user_emojis={[]} />
</Box>
)}
</>