Commit Graph
391 Commits
Author SHA1 Message Date
Adrian Cowan 8d45a989d6 website: request message specific labels for on demand labelling 2023-01-29 12:41:15 +11:00
Keith StevensandGitHub 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 StevensandGitHub 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 59531c7d3d userless client 2023-01-27 22:33:04 +01:00
AbdBarho cdb9f2da4e Send x-oasst-user header 2023-01-27 22:33:04 +01:00
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 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 05f2e5c534 Merge branch 'main' into refactor_oasst_api_client 2023-01-25 16:36:32 +07:00
notmd 31630be319 fix test & build 2023-01-25 15:48:53 +07: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
notmd b7056eccd1 Show more stats in leaderboard table 2023-01-24 02:04:00 +07:00
notmd 7f993b670c Merge branch 'main' into leaderboard_enhancement 2023-01-23 21:14:29 +07:00
notmd 037ec3c96e wip 2023-01-23 21:10:56 +07:00
notmd 957bd25793 fix wrong import 2023-01-23 19:30:22 +07:00
notmd 8bd9187a7a Merge branch 'main' into typesafe_i18n 2023-01-23 19:29:24 +07:00
Keith StevensandGitHub 7a279ad1c8 Merge pull request #890 from LAION-AI/lang
Send language when fetching available tasks
2023-01-23 08:31:26 +09:00
AbdBarho 51afea69ec Send language when fetching available tasks 2023-01-22 21:57:21 +01:00
notmd 80a7ad0154 typesafe i18n 2023-01-22 23:28:27 +07:00
notmd 204e11b400 migrate all icon to lucide 2023-01-22 21:02:52 +07: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
Keith StevensandGitHub f645b53405 Merge pull request #884 from LAION-AI/available
Present available task types on dashboard
2023-01-22 21:39:31 +09:00
Keith StevensandGitHub cc4d13193f Merge pull request #821 from notmd/766_admin_enhancement
Allow to filter `user` by `display_name`
2023-01-22 21:32:48 +09:00
Keith StevensandGitHub edff155fd7 Merge pull request #882 from notmd/fix_recent_messages
Fix recent messages not showing
2023-01-22 21:30:12 +09:00
AbdBarho fd703663bd Fix all tasks page 2023-01-22 12:00:55 +01:00
AbdBarho 6167f63467 Present available task types on dashboard 2023-01-22 11:53:34 +01:00
notmd 7025b174d2 Merge branch 'main' into 766_admin_enhancement 2023-01-22 17:22:31 +07:00
notmd 0f0d0e00b5 use user.id 2023-01-22 17:05:22 +07:00
AbdBarhoandGitHub 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
notmd 554e730d34 user getBackendUserCore 2023-01-22 16:01:01 +07:00
notmd 952c61f461 Fix recent messages 2023-01-22 15:50:23 +07:00
notmd fa5702ac9e Merge branch 'main' into 766_admin_enhancement 2023-01-22 14:07:19 +07:00
Keith StevensandGitHub 91ea5eab9b Merge pull request #867 from ml729/admin-status-page
Implement #828 Create admin status page
2023-01-22 16:05:11 +09:00
ml729 a31da35fb0 use dummy user for tasks availability 2023-01-21 21:08:09 -05:00
ml729 19652d5cec remove unnecessary imports 2023-01-21 20:42:34 -05:00
rjmacarthy 81a392232e Add locale to leaderboard and organize locale json 2023-01-21 20:26:40 +00:00
ml729 323f5a19a2 use Promise.allSettled for admin status 2023-01-21 14:01:58 -05:00
ml729 a75c13ef42 use getBackendUserCore for taskAvailability 2023-01-21 13:13:15 -05:00
ml729 4dd809585e handle error/loading case correctly in status page 2023-01-21 12:55:31 -05:00
ml729 fbc2ba468b removed unnecessary element id 2023-01-21 12:55:31 -05:00
ml729andnotmd 72d61cc44c use Promise.all website/src/pages/api/admin/status.ts
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-21 12:55:31 -05:00
ml729andnotmd 05dce5b4a9 Use CardBody website/src/pages/admin/status/index.tsx
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-21 12:55:31 -05:00
ml729andnotmd 56fb28f953 use CardBody in website/src/pages/admin/status/index.tsx
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-21 12:55:31 -05:00
ml729andnotmd 2d7d14b4c9 Update website/src/pages/admin/status/index.tsx
Co-authored-by: notmd <33456881+notmd@users.noreply.github.com>
2023-01-21 12:55:31 -05:00
ml729 93969bd49d status use current admin user 2023-01-21 12:55:31 -05:00
ml729 a2932d1613 unify 3 status endpoints and move status fetches to oasst_api_client 2023-01-21 12:55:31 -05:00
ml729 b8ef87fb54 use Card component for status page 2023-01-21 12:55:31 -05:00
ml729 4ccc88e0bb fix admin status api handler comments 2023-01-21 12:55:31 -05:00