21 Commits

Author SHA1 Message Date
notmd 7a0bfa2d68 add moderator role (#1419) 2023-02-10 18:18:48 +09:00
Richard Macarthy cc3891ed12 Fix hydration issues side menu, move side_menu.json to common.json (#1327)
Fixes #1326

This PR moves all json in side_menu.json to common.json. We have an issue with the side menu layout as it's a high level component and this causes hydration issues with SSR when global namespaces are not passed by default.
2023-02-09 11:45:03 +09:00
Adrian Cowan db76b0b1fa website: Use existing translations of language names (#1349)
Removed language.json translation file as we don't really need it anymore, just moved the couple of remaining items into tasks.json

I also reverted the change where I created lang_mismatch_lang and lang_mismatch_lang.explanation because we don't actually need two different strings and it was causing an issue where it would show a mix of english and the users language rather than just show the existing "Wrong language" text that is probably a better intermediate until the translations are updated. Let me know if there is a better way to handle updating the source english text for translations.
2023-02-08 19:43:50 +09:00
Adrian Cowan 52af7ba13b website: show language in text area (#1296)
* website: show language in text area

When the language hasn't been detected (too little text) the langauge that it will be submitted as is shown. When we detect the language is not what will be submitted we show the detected language in red. The tooltip informs the user that they don't appear to be writing in the correct language.

Note: this replaces the modal dialog that we use to popup if the language appeared to differ.

* website: Don't suggest the user change the language
2023-02-07 20:17:53 +09:00
notmd b7d0c4331c Ts strict mode (#1288)
part of #879
2023-02-07 19:56:59 +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 9b611c9f71 Merge pull request #1079 from GuilleHoardings/es-translation-web
Translate strings that were not using i18n yet
2023-02-03 18:07:16 +09:00
notmd 2d2ea2039c Merge branch 'main' into 911_control_email_signin 2023-02-03 13:31:18 +07:00
Guillermo Hoardings 602799881a Translate strings that were not using i18n yet
Only English and Spanish translations have been included.
2023-02-03 01:53:04 +01:00
Andreas Köpf d5c0adba5f fix typo SERCERT -> SECRET 2023-02-02 22:10:50 +00:00
notmd 0b9b8ed927 allow to enable/disable email sigin via env variable 2023-02-02 00:29:46 +07:00
notmd 599d70962e Merge branch 'main' into 911_sigin_captcha 2023-01-29 23:34:04 +07:00
notmd fb26a52c2c allow to enable/disable email signin captcha via env variable 2023-01-29 23:28:26 +07: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
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
notmd 3c9e5388ba add captcha to signin page 2023-01-26 01:00:31 +07:00
notmd a6fcf0dc1e wip 2023-01-25 17:44:59 +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 80a7ad0154 typesafe i18n 2023-01-22 23:28:27 +07:00
Keith Stevens b02429c1f7 Tag in the user table when they are new and include it in the user session 2023-01-14 18:55:28 +09:00
Keith Stevens 7e517db934 Fixing the type errors when updating the jwt and session with a role 2023-01-06 20:19:02 +09:00