AbdBarho
b8a62e5f4f
Merge pull request #1017 from iurimatias/bug/fix_storybook
...
storybook: Fix broken storybook page for Task Component
2023-01-30 20:47:07 +01:00
Iuri Matias
3dc1b187da
storybook: Fix broken storybook page for Task Component
...
storybook: Fix broken storybook page for Task Component
fix linting
2023-01-30 10:48:54 -05:00
Adrian Cowan
6b7cb74e5d
website: Fix regression that broke the ability to review unchanged rankings.
...
This was caused by the init effect in Task.tsx running _after_ the task submits it's default reply validity as part of it's init effect. Clearly we need to refactor the way Task.tsx works.
2023-01-30 23:45:58 +11:00
AbdBarho
77cc96d401
TaskContext as subset of ApiHookState
2023-01-29 11:38:16 +01:00
AbdBarho
d7f2a6d0d9
Consolidate API calls to TaskContext
2023-01-29 11:03:07 +01:00
AbdBarho
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
Alan Jean
ccf96fd843
Refactor tasks translation file to have one placeholder per task-type
...
Fixes #979
2023-01-29 05:30:00 +04:00
Adrian Cowan
e0e398fa8b
website: Improve reliability of e2e tests
2023-01-29 03:17:44 +11:00
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
4067bec03f
Remove unused i18n
2023-01-27 23:12:44 +01:00
AbdBarho
e4dcfe4161
Use new reply_message
2023-01-27 22:41:20 +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
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
rjmacarthy
78a7051ce6
Use pre-defined TaskType in TaskInfos configuration
...
Remove debugger
2023-01-24 14:58:04 +00:00
rjmacarthy
31a0754d21
Rename function to getTypeSafei18nKey
2023-01-24 14:46:47 +00:00
rjmacarthy
54cc7827b6
Add localisation to tasks and dashboard
...
Fix i18n merge issues
Add blank line dashboard.json
Remove console.log
Alphabeticalise
Pre-commit
Fix i18n key warnings add util function
Fix Task.storties.tsx
Revert pass duplicate prop
2023-01-24 10:41:12 +00:00
AbdBarho
89f9e5a887
Merge pull request #872 from othrayte/likert-like-labelling
...
website: Switch to likert style labeling
2023-01-23 18:19:03 +01:00
Adrian Cowan
a6d23821be
website: Highlight target message
2023-01-23 22:49:30 +11:00
Adrian Cowan
007773a3f5
website: Switch to likert style labelling
2023-01-23 21:51:17 +11:00
notmd
2fbe83c291
Merge branch 'main' into lucide
2023-01-22 20:38:43 +07:00
notmd
d466e63d66
wip
2023-01-22 20:35:31 +07:00
AbdBarho
6167f63467
Present available task types on dashboard
2023-01-22 11:53:34 +01:00
AbdBarho
e80a69dd8a
Fetch available tasks
2023-01-20 12:16:17 +01:00
AbdBarho
47c402e762
More space for messages on narrow screen
2023-01-20 10:37:54 +01:00
AbdBarho
e3387b43b8
Merge pull request #793 from LAION-AI/773-links-to-docs-everywhere
...
Adding links to external documentation for tasks and in footers
2023-01-17 07:25:01 +01:00
Keith Stevens
ac5a0e8157
Adding links to external documentation for tasks and in footers
2023-01-17 15:11:33 +09:00
AbdBarho
e49654dfb7
Scroll to top on submit
2023-01-17 07:05:46 +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
7e1b57a93e
Fixing the build
2023-01-16 18:58:44 +09:00
Keith Stevens
68f22d0fa9
Adding new index and story files
2023-01-16 18:53:11 +09: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
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