Commit Graph

97 Commits

Author SHA1 Message Date
Keith Stevens 7b16ee9a75 When loading recent messages, filter by the user's stored language. (#1292)
A simple short term fix. Applies to #962. To fully fix a small backend change is needed.
2023-02-09 19:29:11 +09:00
Keith Stevens c9d283a1ff update the backend path to manage user status (#1294) 2023-02-08 13:41:15 +01:00
Andreas Köpf 35a2c58565 add trailing slash to text_labels post path 2023-02-08 09:34:17 +00:00
notmd a46e4a2bb1 implement trollboard UI (#1301)
* implement trollboard UI

* remove unneeded code

* add link to user

* user link in leaderboard
2023-02-08 13:49:00 +09:00
notmd b7d0c4331c Ts strict mode (#1288)
part of #879
2023-02-07 19:56:59 +09:00
notmd 952e021c88 Show current user rank in leaderboard (#1263)
close #1000 maybe #1178 too

*  Show current user rank in the leaderboard with +-1 user (only on leaderboard 
*  Extend auto_main script to use random user.
*  Support colSpan in the DataTable component (I haven't verified colSpan in header yet, leave that until we need it)
*  Refactor OasstError to include the path and request method.
2023-02-07 14:49:50 +09:00
AbdBarho 0ef36e81be Basic user stats in the accounts page (#1158)
Closes #747
Blocked by #1156 #1166

Very simplistic, not much styling
2023-02-07 08:10:35 +09:00
AbdBarho 9467b21d53 Update ToS Endpoint (#1207) 2023-02-05 21:51:13 +01:00
Korbinian Pöppel 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
Richard Macarthy 3b61a26c9c Add halt tree, and copy message id features (#1088) 2023-02-05 15:09:39 +09:00
AbdBarho 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
Keith Stevens 880a1433d9 Merge pull request #1041 from rjmacarthy/feature/delete-message-ui
website: Add delete message feature for admins
2023-02-03 17:34:02 +09:00
Keith Stevens 98924d0b45 Merge pull request #1078 from LAION-AI/hook-types
Add TaskReply types for task hooks
2023-02-03 17:33:24 +09:00
AbdBarho e8e3f28665 update hooks 2023-02-03 08:30:19 +01:00
AbdBarho 95d143ce4d Merge pull request #1072 from notmd/1068_admin_system_config
System config parameter view
2023-02-03 08:08:03 +01:00
Andreas Köpf d5c0adba5f fix typo SERCERT -> SECRET 2023-02-02 22:10:50 +00:00
rjmacarthy e9add425e6 Add delete message feature
Remove deleted property from Message

Add dedicated route for delete_message

Pre-commit

Revert change to promp_repository fetch_message

Remove blank line
2023-02-02 13:33:22 +00:00
notmd 28ee771a97 System config parameter view 2023-02-02 20:23:00 +07:00
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