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.
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.
* 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
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.
* added button for toggling color mode in nav bar
* removed border from color-theme toggle button
* removed padding around sun icon and made header title slighty responsive
* lower gap between navigation buttons for mobile
* 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
The issue was the omtimised build was optimising the "+1" object key name to just "1" causing the context menu to try to shown an undefined emoji icon.
Remove deleted property from Message
Add dedicated route for delete_message
Pre-commit
Revert change to promp_repository fetch_message
Remove blank line
Desciptions are shown both via tooltips, which are easier to read on desktop browsers, and via an explain (i) button so that mobile users can get the description (though in one larger list).