Commit Graph

55 Commits

Author SHA1 Message Date
AbdBarho 335218ba22 Fix full labeling task display 2023-01-14 09:51:12 +01:00
rsandb 2b3978200f fix task card background color 2023-01-14 02:41:37 -06:00
Keith Stevens 58cbc50b31 Merge pull request #700 from LAION-AI/rank-fix
Fix submit of initial ranking
2023-01-14 17:02:09 +09:00
AbdBarho 22bc9c2730 Fix initial Ranking 2023-01-14 08:03:19 +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
Keith Stevens af8f17a55c Merge pull request #687 from Klotske/add-simple-label
#668 - Add simple label
2023-01-14 09:54:06 +09:00
klotske 43313d81f1 Fix merge conflict & rename props 2023-01-14 02:17:40 +03:00
Keith Stevens db5df84a21 Merge pull request #663 from rjmacarthy/main
website: Combine fetcher and poster files, update all references to use axios for both GET and POST
2023-01-14 08:14:21 +09:00
klotske d944c41502 Merge branch 'main' into add-simple-label 2023-01-14 02:13:47 +03:00
klotske 74c9007857 Rename to LabelRadio 2023-01-13 21:36:43 +03: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 76cdab9876 Added LabelSimpleGroup & updated LabelTask 2023-01-13 19:09:04 +03:00
Adrian Cowan 19e58c04a5 website: make e2e tests actually test the tasks work
Prior to this change the tests didn't handle any task types as the detection of the task type was failing.
2023-01-14 02:16:30 +11:00
Adrian Cowan eb43c8b4f8 website: Add a review step before submitting
to hint to the user that they should reread and check what they have written.

Also show numbers for ranked items rather than drag handles in the review step as the items can't be moved in that step.
2023-01-14 02:16:27 +11:00
klotske 9232ab8c56 Extract Slider Label to own component 2023-01-13 17:38:52 +03:00
AbdBarho 3d4b57c071 Merge pull request #684 from melvinebenezer/592_non_empty_text
#592 non empty text
2023-01-13 15:35:21 +01:00
James Melvin 786553e00a fix: removed console log 2023-01-13 19:59:13 +05:30
James Melvin b24b47d8bd fix: merge conflict 2023-01-13 19:10:50 +05:30
James Melvin 8067e1a879 fix: pre-commit changes 2023-01-13 19:04:51 +05:30
James Melvin 0979b4300a fix: non-empty text before submitting on create task 2023-01-13 18:58:42 +05:30
Adrian Cowan 5054e19e93 website: Remove next task button and load new task immediately
Also disable the task inputs while the task is submitted and before the new task is ready in case the users network is slow or something.
2023-01-13 23:40:16 +11:00
klotske 4ac159ec7e Update CreateTask UI 2023-01-12 16:35:44 +03:00
klotske 82a60ef904 Change typings & refactor FlaggableElement 2023-01-12 16:10:05 +03:00
rsandb 0f9867c542 added data-cy divs to Task components 2023-01-11 22:28:20 -06:00
rsandb 80cf195972 Dashboard Integration 2023-01-11 22:12:09 -06:00
Keith Stevens 268cd7d7b5 Forwarding the real task id in backend interactions and ensure the labeling task works 2023-01-11 19:32:52 +09:00
kostiak e2844e4d86 Added random task and moved other tasks to /tasks/all 2023-01-11 09:30:58 +00:00
Keith Stevens 17bcc53fb7 Merging with main again 2023-01-11 15:02:29 +09:00
Keith Stevens 5109f14e4c Fixing the answer submission problem after unifying code 2023-01-11 14:58:10 +09:00
Riley Sandborg f542821b3a Merge branch 'LAION-AI:main' into main 2023-01-10 18:49:00 -06:00
rsandb f61f582a9b Integrate Dashboard with Messages/Styling Changes 2023-01-10 18:48:14 -06:00
Keith Stevens e1dd677677 Merging with main 2023-01-11 08:47:16 +09:00
Adrian Cowan 805bc33ba4 website: Unify task controls
Also happens to fix some issues with the no-changes are-you-sure dialog only appearing once and other form values not being reset correctly.
2023-01-11 02:59:10 +11: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
Adrian Cowan 15e1203be9 website: Refactor remaining task pages to use Task.tsx 2023-01-10 21:44:22 +11:00
Keith Stevens 2c34b09f85 Merge branch 'main' into web-tidy-sweep 2023-01-10 16:25:43 +09:00
Keith Stevens 062bfdba3a Revert "Centralize task types"
This reverts commit 97c1f12e11.
2023-01-10 16:24:35 +09:00
Keith Stevens fe4e949f2f Revert "rebasing"
This reverts commit c4d5ed990b.
2023-01-10 16:23:56 +09:00
Keith Stevens c4d5ed990b rebasing 2023-01-10 16:22:23 +09:00
AbdBarho 97c1f12e11 Centralize task types 2023-01-10 16:20:48 +09:00
AbdBarho 54a042d002 Centralize task types 2023-01-10 06:51:59 +01:00
Keith Stevens 54cc88bb1f Ensure FlaggableElement always has the set of labels 2023-01-10 14:08:43 +09:00
Keith Stevens 34a1715923 Cleaning up a suite of eslint warnings 2023-01-10 13:02:17 +09:00
James Melvin 420b3739eb fix: retrieval of valid_labels from API to populate the TEXT_LABEL_FLAGS in FlaggableElements.tsx 2023-01-09 22:31:44 +05:30
Adrian Cowan f277e2da0f Prompt for reason for skipping.
Note: skipping is only half implemented for labelling and summarisation tasks as those probably need to be changed to use the new Task component.
2023-01-09 00:02:43 +11:00
AbdBarho d99c0e2d2f Use enum for type definition 2023-01-08 12:12:15 +01:00
AbdBarho c9a3813b8f Add Label Assistant Reply Task 2023-01-08 12:07:26 +01:00
AbdBarho f7dceee87a Add LabelPrompterReplyTask 2023-01-08 10:52:57 +01:00
AbdBarho a19e0fa085 Extract generic code out of labeling task 2023-01-08 10:52:57 +01:00
Keith Stevens 0d91e748ef Merge pull request #477 from LAION-AI/label-initial-prompt
Label Initial Prompt
2023-01-08 10:32:12 +09:00