Commit Graph

79 Commits

Author SHA1 Message Date
notmd 599d70962e Merge branch 'main' into 911_sigin_captcha 2023-01-29 23:34:04 +07:00
notmd a7ff5e5f21 add comment 2023-01-29 20:42:23 +07:00
Keith Stevens cc1a4bdcb4 Merge pull request #920 from LAION-AI/857-backend-token-decrypt
857 backend token decrypt
2023-01-29 19:31:16 +09:00
Adrian Cowan 8d45a989d6 website: request message specific labels for on demand labelling 2023-01-29 12:41:15 +11:00
Keith Stevens c333ecd27a Merging from main 2023-01-28 18:05:56 +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 3c791efb79 Move api calls to oasst_api_client 2023-01-27 22:33:04 +01:00
AbdBarho 9429590a81 Move to factory 2023-01-27 22:33:04 +01:00
AbdBarho cdb9f2da4e Send x-oasst-user header 2023-01-27 22:33:04 +01:00
AbdBarho b07c7271b8 Merge pull request #960 from notmd/fix_leaderboard_limit
Pass correct param when fetch leaderboard
2023-01-27 21:20:11 +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
notmd ce3b3c7ecc pass correct param when fetch leaderboard 2023-01-28 00:17:31 +07: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
notmd 3c9e5388ba add captcha to signin page 2023-01-26 01:00:31 +07:00
notmd 05f2e5c534 Merge branch 'main' into refactor_oasst_api_client 2023-01-25 16:36:32 +07:00
notmd 2e2a57cf10 wip 2023-01-25 16:36:06 +07:00
notmd 97cd57a300 fix test 2023-01-25 16:02:20 +07:00
notmd 31630be319 fix test & build 2023-01-25 15:48:53 +07:00
notmd 94d2ed820e Refactor OasstApiClient 2023-01-25 15:04:39 +07: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 5b7c32ebec Updating axios to always send credentials 2023-01-24 16:48:34 +09:00
AbdBarho b208ffb00a Send lang parameter the correct way (#901) 2023-01-24 10:55:06 +09:00
notmd b7056eccd1 Show more stats in leaderboard table 2023-01-24 02:04:00 +07:00
AbdBarho 51afea69ec Send language when fetching available tasks 2023-01-22 21:57:21 +01:00
notmd b8672e5986 rename gt and lt to before and after (#888) 2023-01-22 19:51:07 +01:00
notmd 7025b174d2 Merge branch 'main' into 766_admin_enhancement 2023-01-22 17:22:31 +07:00
AbdBarho 43732442fc Merge pull request #881 from LAION-AI/854-language-preferences
Adding language preferences for the UI and tasks
2023-01-22 11:03:47 +01:00
Keith Stevens 79331df366 Fixing an import order 2023-01-22 16:15:54 +09:00
Keith Stevens ab09a3f50f Adding a valid language check 2023-01-22 16:13:35 +09:00
notmd fa5702ac9e Merge branch 'main' into 766_admin_enhancement 2023-01-22 14:07:19 +07:00
ml729 a2932d1613 unify 3 status endpoints and move status fetches to oasst_api_client 2023-01-21 12:55:31 -05:00
notmd 0cc6b3b8ae Merge branch 'main' into 766_admin_enhancement 2023-01-21 22:10:15 +07:00
Keith Stevens 7274512c2f Implementing core of setting user languages and fetching language specific tasks 2023-01-21 21:36:37 +09:00
Keith Stevens b9ce2fb140 Ensuring localization works across all pages and fix user data fetching in admin view 2023-01-21 17:56:29 +09:00
notmd 7eb5023e82 use cursor endpoint 2023-01-21 14:34:22 +07:00
notmd 7099ff4dd0 Merge branch 'main' into 766_admin_enhancement 2023-01-20 23:12:43 +07:00
notmd 99d9ee1937 Merge branch 'main' into 766_admin_enhancement 2023-01-20 23:08:59 +07:00
AbdBarho e80a69dd8a Fetch available tasks 2023-01-20 12:16:17 +01:00
Keith Stevens c81967fca9 Merge pull request #852 from rjmacarthy/chore/apply-i18n-pages
website: Add localization to pages, header and footer
2023-01-20 18:59:27 +09:00
rjmacarthy f09eee1ce7 Pre-commit 2023-01-20 09:44:06 +00:00
rjmacarthy 9b659191ca Extract common getStaticProps to single file 2023-01-20 09:37:02 +00:00
Keith Stevens df1eca4eaf Ensuring the website uses the most specific auth type with the backend when fetching and interacting with tasks 2023-01-19 17:21:41 +09:00
notmd 801ad553b8 Allow to filter user by display_name 2023-01-18 15:19:00 +07:00
Keith Stevens 0a36e459d7 Guarantee all users get a name (#800)
* Guarantee all users get a name and it is used when talking to the backend

* Small code cleanup
2023-01-17 21:12: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
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