Commit Graph

30 Commits

Author SHA1 Message Date
Adrian Cowan ab4dce3f60 website: Support new widget types for labelling (#966)
* website: Support new widget types for labelling

Adds proper support for yes/no spam style questions as well as a simple interface for flag style labels.

Also cleaned up the Task component to fix some rerender issues.

* website: Fix some UI text, adjust yes/no button alignment

* website: Remove left over console.log

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>

---------

Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-28 17:07:43 +01:00
AbdBarho ab227c5db5 Fix error in labeling tasks 2023-01-27 22:33:04 +01:00
Adrian Cowan 356fd775e9 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>
2023-01-27 20:52:40 +01:00
Adrian Cowan a6d23821be website: Highlight target message 2023-01-23 22:49:30 +11:00
AbdBarho 2802bc1581 Render whitespace in messages 2023-01-20 13:51:47 +01:00
AbdBarho 47c402e762 More space for messages on narrow screen 2023-01-20 10:37:54 +01:00
Yannic Kilcher 51a1d9a841 fixed white-space issue for messages that contain code 2023-01-17 22:33:23 +01:00
rsandb 9423f0c973 Fix width issue for messages on desktop
Also replaced grid with box because it wasn't using any grid props and was just calling an extra element
2023-01-14 21:36:35 -06:00
AbdBarho 335218ba22 Fix full labeling task display 2023-01-14 09:51:12 +01:00
rsandb eb0988bee9 Message Styling For Mobile
Decreased padding for mobile and changed some styling to give better contrast
2023-01-13 19:57:46 -06:00
rjmacarthy 2a8d38f058 Refactor fetch and post to use axios
Fix set_label id missing in payload use frontend_message_id

pre-commit

Refactor api fetcher/poster to axios create

lint

Remove string literal for path

Revert oasst_api_client.ts

Fix warning httpStatusCode OasstError optional parameter

Refactor remove api base url for local api

Lint add blank line
2023-01-13 17:05:10 +00:00
klotske b2fbc5d2ad Add enabled & linkEnabled props to messages 2023-01-13 13:10:06 +03:00
klotske 82b2693ed6 Remove unused import 2023-01-12 16:17:08 +03:00
klotske 82a60ef904 Change typings & refactor FlaggableElement 2023-01-12 16:10:05 +03:00
klotske d8328807f4 Remove redundant LinkOverlay 2023-01-12 12:51:37 +03:00
rsandb 80cf195972 Dashboard Integration 2023-01-11 22:12:09 -06:00
klotske 606e07c6a1 Fix link behaviour 2023-01-11 20:59:46 +03:00
klotske cc08a5573b Wrapped message in nextjs link 2023-01-11 19:00:14 +03:00
Keith Stevens aba5b43a37 Minimal fixing for the Message type in one context 2023-01-11 16:40:28 +09:00
Keith Stevens 454f332823 Ensuring the flagging post has a message or post id 2023-01-11 16:36:40 +09:00
Keith Stevens 17bcc53fb7 Merging with main again 2023-01-11 15:02:29 +09:00
rsandb f61f582a9b Integrate Dashboard with Messages/Styling Changes 2023-01-10 18:48:14 -06:00
Keith Stevens 747c3501d1 Adding a new web api path that returns valid labels and then fetching from that within FlaggableElement. This allows FlaggableElement to fetch all its own data and remove the need to pipe labels through a series of components 2023-01-10 20:57:42 +09:00
Keith Stevens 9e14de2570 Moving the ValidLabel type 2023-01-10 16:30:44 +09:00
Keith Stevens 54cc88bb1f Ensure FlaggableElement always has the set of labels 2023-01-10 14:08:43 +09:00
Keith Stevens dca0ba1774 Fixing most of the eslint warnings in the web code 2023-01-07 19:57:59 +09:00
jojopirker d0bc720761 inital try for navigation messages trees
should be redone probably in a recursive way...
2023-01-05 12:17:45 +01:00
jojopirker efdfb09695 fixed typo 2023-01-04 20:04:26 +01:00
jojopirker 910c1c88ce pre-commit 2023-01-04 15:42:51 +01:00
jojopirker be22c77b07 moved components into new folder 2023-01-04 15:38:26 +01:00