Commit Graph
55 Commits
Author SHA1 Message Date
Adrian CowanandGitHub db76b0b1fa website: Use existing translations of language names (#1349)
Removed language.json translation file as we don't really need it anymore, just moved the couple of remaining items into tasks.json

I also reverted the change where I created lang_mismatch_lang and lang_mismatch_lang.explanation because we don't actually need two different strings and it was causing an issue where it would show a mix of english and the users language rather than just show the existing "Wrong language" text that is probably a better intermediate until the translations are updated. Let me know if there is a better way to handle updating the source english text for translations.
2023-02-08 19:43:50 +09:00
Adrian CowanandGitHub b733471161 website: Fix broken page when detected language not in list. (#1345) 2023-02-08 19:42:11 +09:00
Adrian CowanandGitHub 52af7ba13b website: show language in text area (#1296)
* website: show language in text area

When the language hasn't been detected (too little text) the langauge that it will be submitted as is shown. When we detect the language is not what will be submitted we show the detected language in red. The tooltip informs the user that they don't appear to be writing in the correct language.

Note: this replaces the modal dialog that we use to popup if the language appeared to differ.

* website: Don't suggest the user change the language
2023-02-07 20:17:53 +09:00
Kian-Meng AngandGitHub 1e321a6fca Fix typos (#1143)
Found via `codespell -S .mypy_cache,yarn.lock,*.json,*.ipynb -L
rouge,nam,vie`
2023-02-05 20:18:03 +01:00
Korbinian PöppelandGitHub 7fac0d70c8 Live language feedback (#1071)
* Add live language detection using 'lande' in TrackedTextarea.

* Remove 'Disable Language Detection'.

* Re-run linter.
2023-02-05 15:10:53 +09:00
AbdBarhoandGitHub 86eac87c19 Add ToS/License Agreement to Website (#1080)
* add new apis to oasst client

* add tos handler

* Add ToS to Dashboard

* use Provider for ToS

* simplify provider

* fix error

* Inject into JWT

* primitive error handling

* update comment

* address review
2023-02-03 20:53:20 +01:00
notmd 1e2948743d wip 2023-02-01 17:22:44 +07:00
AbdBarhoandGitHub aaefac97a8 Merge pull request #970 from othrayte/improve-e2e-test-reliability
website: Improve reliability of e2e tests
2023-01-29 09:18:35 +01:00
Andreas KöpfandGitHub 5747373480 fix typo Unhelful 2023-01-28 19:57:44 +01:00
Adrian Cowan e0e398fa8b website: Improve reliability of e2e tests 2023-01-29 03:17:44 +11:00
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 0a6d9011ea Fix semantic html nesting 2023-01-27 22:33:04 +01:00
Adrian Cowan 1011fa527c website: Fix handling of new and unknown labels 2023-01-27 13:25:07 +11:00
Adrian Cowan 58a07dd05d website: Make the spam question simple again
This is an initial quick fix to get back simple buttons. This should be followed up with some refactoring or maybe a real spam task.
2023-01-26 18:11:41 +11:00
Adrian Cowan 25cf9eb953 website: Switch to radio buttons for likert style labeling 2023-01-23 21:51:19 +11:00
Adrian Cowan 007773a3f5 website: Switch to likert style labelling 2023-01-23 21:51:17 +11:00
notmd d466e63d66 wip 2023-01-22 20:35:31 +07:00
AbdBarho a588844ba5 use clsx 2023-01-20 12:26:50 +01:00
AbdBarho 1fe24db8ae Restyle account page 2023-01-20 11:05:56 +01:00
Adrian Cowan bde1639e07 website: Change spam question to "Is the message spam?" 2023-01-19 19:10:23 +11:00
AbdBarho 13fa1151a0 Restyle slider thumb 2023-01-18 19:10:48 +01:00
Keith Stevens cf29f544eb Merge branch 'main' into 763-make-labels-required 2023-01-17 08:58:29 +09:00
AbdBarho 6c01205b52 Small website fixes 2023-01-16 19:22:04 +01:00
Adrian Cowan 17f860b9d6 website: Improve 'spam?' question 2023-01-16 22:27:32 +11:00
Keith Stevens a2f68c7259 Require labels to be set on labeling task and setting up basic storybook stories for tasks 2023-01-16 18:51:01 +09: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
klotske 224223ddde Update components and Cypress test 2023-01-14 02:47:47 +03:00
klotske 7101d84573 Fix a bug with Label submit 2023-01-14 02:29:00 +03:00
klotske 43313d81f1 Fix merge conflict & rename props 2023-01-14 02:17:40 +03:00
klotske d944c41502 Merge branch 'main' into add-simple-label 2023-01-14 02:13:47 +03:00
klotske 8f5b5a853d Add interactionFlag to hide default choice 2023-01-13 22:35:23 +03:00
klotske 83152db09b Add default colorScheme value 2023-01-13 21:38:28 +03:00
klotske 74c9007857 Rename to LabelRadio 2023-01-13 21:36:43 +03:00
klotske f4742585cb Add configurable colorScheme 2023-01-13 19:20:01 +03:00
klotske 76cdab9876 Added LabelSimpleGroup & updated LabelTask 2023-01-13 19:09:04 +03: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
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
rsandb 80cf195972 Dashboard Integration 2023-01-11 22:12:09 -06: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
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
notmd 6e0e820f94 fix: desktop regression 2023-01-08 06:59:38 +07:00
notmd 25ce928733 fix: improve TaskControls UI on mobile 2023-01-08 06:53:39 +07:00
klotske 20a734d1e1 Add regex word counter 2023-01-07 19:33:58 +03:00
Keith Stevens ac409be6f9 Fixing a build issue I introduced 2023-01-07 20:04:54 +09:00
Keith Stevens dca0ba1774 Fixing most of the eslint warnings in the web code 2023-01-07 19:57:59 +09:00
klotske 44d05ed709 Initial implementation of progressbar tracking 2023-01-07 00:06:15 +03:00
Andrew MaguireandGitHub 95158ff16d Merge pull request #423 from andrewm4894/submit-button-dynamic-color
make submit button blue for submit and green for next task
2023-01-05 23:21:02 +00:00
Andrew MaguireandGitHub 78c6333bcf make submit button blue for submit and green for next task 2023-01-05 22:05:24 +00:00