Commit Graph

475 Commits

Author SHA1 Message Date
notmd 1e2948743d wip 2023-02-01 17:22:44 +07:00
Keith Stevens c262255986 Merge pull request #1021 from rjmacarthy/feature/admin-user-link
website: Add link to user admin page in messages dropdown for admin users
2023-01-31 21:03:01 +09:00
rjmacarthy d5e94b5a5e Fix Messages stories wrap with SessionProvider 2023-01-31 10:04:13 +00:00
rjmacarthy 54849d30fa Update user icon in messages dropdown 2023-01-31 08:21:40 +00:00
Keith Stevens 9b4f53c8e1 Merge pull request #1019 from notmd/998_increase_leaderboard_limit
Show top 100 users on the leaderboards
2023-01-31 16:44:02 +09:00
rjmacarthy eeab643dc3 Add link to user admin page in messages dropdown for admin users
Fix potential undefined data user

revert type change next-auth
2023-01-30 19:54:03 +00:00
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
notmd f1ab2086d6 Show at least the top 100 users on the leaderboards 2023-01-31 01:09:02 +07:00
AbdBarho 5426fe7ee0 Merge pull request #1011 from LAION-AI/983-fix-locale-on-url-change
Update the locale cookie when a user sets the url manually
2023-01-30 18:41:54 +01:00
AbdBarho 1881790edc Merge pull request #1012 from othrayte/double-label-bug
website: Fix crash on reopen labelling after submitting
2023-01-30 17:47:34 +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
Adrian Cowan 8e29831528 website: Fix crash on reopen labelling after submitting 2023-01-30 23:04:19 +11:00
Keith Stevens 7a56b152a2 Update the locale cookie when a user sets the url manually 2023-01-30 20:30:01 +09: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
Keith Stevens f8c9503ba6 merging with main 2023-01-29 15:18:49 +09:00
Keith Stevens 7072ae2a8d Merge pull request #971 from othrayte/message-specific-labels
website: request message specific labels for on demand labelling
2023-01-29 15:16:23 +09:00
Keith Stevens b0ee9bea5f Addressing review comments 2023-01-29 15:13:50 +09:00
Adrian Cowan 8d45a989d6 website: request message specific labels for on demand labelling 2023-01-29 12:41:15 +11: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 21c4a1263a website: Add head to task pages even if no task and improve var name 2023-01-29 12:09:58 +11:00
Andreas Köpf 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
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
Keith Stevens 2e1abd3f69 Copying from #769 to implement mock service worker 2023-01-28 20:09:04 +09:00
Keith Stevens c47b8f175d Merge pull request #959 from LAION-AI/oasst-header
Send `x-oasst-user` header to backend
2023-01-28 16:23:07 +09:00
Keith Stevens b3f28d2bf3 Merge pull request #940 from rjmacarthy/refactor/tasks-page
website: Refactor task page routes and repetition
2023-01-28 16:07:42 +09: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
AbdBarho 0a6d9011ea Fix semantic html nesting 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
rjmacarthy bf77d4dc60 Add types for TaskType to TaskHook
Pre-commit

Apply better naming to task api hooks

Lint
2023-01-27 19:09:28 +00:00
rjmacarthy e6009933db Rename const to taskInfo 2023-01-27 10:16:25 +00:00
rjmacarthy 24f4c08796 Refactor task page routes and repetition
Remove blank line

Lint add blank line

Link pre-commit
2023-01-27 10:16:02 +00:00
Adrian Cowan 1011fa527c website: Fix handling of new and unknown labels 2023-01-27 13:25:07 +11:00
Keith Stevens 1e88166401 Merge pull request #936 from othrayte/simple-spam-task
website: Make the spam question simple again
2023-01-26 17:13:48 +09:00
Keith Stevens bf082a96bb Merge pull request #935 from othrayte/message-stories
website: Add storybook stories for messages
2023-01-26 17:12:55 +09: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 63dc5d170f website: Add storybook stories for messages 2023-01-26 17:24:17 +11:00
notmd 05f2e5c534 Merge branch 'main' into refactor_oasst_api_client 2023-01-25 16:36:32 +07:00
notmd 94d2ed820e Refactor OasstApiClient 2023-01-25 15:04:39 +07: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
Keith Stevens b0cb6cf047 Adding an help link to the docs on the dashboard 2023-01-24 16:26:24 +09:00
Keith Stevens 25b8c6a085 Merge pull request #903 from notmd/leaderboard_enhancement
Show more stats in leaderboard table
2023-01-24 10:54:48 +09:00
notmd 0c890ae726 fix disablePagination logic 2023-01-24 02:09:33 +07:00