Commit Graph

455 Commits

Author SHA1 Message Date
notmd aaa1276bae Admin user management (#1393)
part of #1022

    Allow updating the show_on_leaderboard field.
    Add raw JSON of the user object.
    Add a new user message table.
    Also fixed style issue: hard to see reaction count when the user also reacted.
    Rename MessageTable to MessageConversation.
2023-02-10 15:16:26 +09:00
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
notmd ef548edb72 Trollboard expandable (#1354)
* wip

* hide necessary column in trollboard

* remove console.log

* fix build

* clean up

* remove commented code
2023-02-09 09:20:27 +01:00
Keith Stevens 07b58d4021 Switching username generator library to be less explicit (#1351) 2023-02-08 18:32:25 +01:00
chronikum d35220c702 Remove the automatic refreshing interval when in message tree (#1353)
Co-authored-by: Jonathan Fritz <fritz@nosc.io>
2023-02-08 18:31:11 +01:00
Andreas Köpf 35a2c58565 add trailing slash to text_labels post path 2023-02-08 09:34:17 +00:00
notmd 7175ce364c Hide message reaction count when user not reacted yet (#1303)
close #1252
Also add a copy message link feature
2023-02-08 15:28:37 +09: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
AbdBarho e2327295af Fix error in user stats when loading (#1290)
there was no check for waiting the data to be fetched, worked locally, not when deployed.
2023-02-07 19:57:35 +09:00
notmd b7d0c4331c Ts strict mode (#1288)
part of #879
2023-02-07 19:56:59 +09:00
notmd 5d10b28b20 fix leaderboard when current user doesn't have stats (#1289) 2023-02-07 08:17:21 +01: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
MrlolDev 9adc4852b0 fix: dark theme background to 404 && 500 pages (#1234)
* fix: dark theme background to 404 && 500 pages

* fix: use oa-basic-theme instead of background color.
2023-02-06 20:37:31 +09:00
Saifeddine ALOUI 56b6595d01 Added Arabic locale with right to left support (#1220)
I have added arabic locale and modified the _app.tsx code to automatically detect the current language direction and applies it to the while website.
2023-02-06 11:27:59 +09:00
Kian-Meng Ang 1e321a6fca Fix typos (#1143)
Found via `codespell -S .mypy_cache,yarn.lock,*.json,*.ipynb -L
rouge,nam,vie`
2023-02-05 20:18:03 +01:00
AbdBarho e6fe477308 Show ToS on all pages (#1111)
Closes #1047
2023-02-05 19:58:20 +09:00
AbdBarho 692d178a24 Fix localization in for labelling (#1132) 2023-02-05 15:16:12 +09:00
Richard Macarthy 3b61a26c9c Add halt tree, and copy message id features (#1088) 2023-02-05 15:09:39 +09:00
Yannic Kilcher 280979c7b0 added mainenance mode (#1130) 2023-02-04 22:37:48 +01:00
AbdBarho b724b37d4c Fix ToS page in dark mode (#1091) 2023-02-04 14:39:50 +01:00
Keith Stevens ef5b9d7757 Fixing the way we generate the backenduser object during jwt creation (#1090) 2023-02-04 08:18:19 +01:00
Andreas Köpf 323432c150 update LAION's address 2023-02-03 22:31:39 +00: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
Keith Stevens 7578cc5748 Merge pull request #1057 from notmd/911_control_email_signin
Allow to enable/disable email signin via env variable
2023-02-03 17:40:10 +09: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
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
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 fa9a0cc776 fix build 2023-02-02 20:26:24 +07:00
notmd 28ee771a97 System config parameter view 2023-02-02 20:23:00 +07:00
notmd 0b9b8ed927 allow to enable/disable email sigin via env variable 2023-02-02 00:29:46 +07:00
notmd 79a39771aa remove root styles folder 2023-02-01 17:55:29 +07:00
AbdBarho 849996c22d Merge pull request #1040 from notmd/995_available_task
Display number of available tasks
2023-02-01 09:44:43 +01:00
notmd c8cd869594 extract type 2023-02-01 14:34:47 +07:00
Keith Stevens 04e81edf5c Merge pull request #932 from notmd/911_sigin_captcha
911 signin captcha
2023-02-01 15:56:14 +09:00
notmd f569c6d12b Display number of available tasks 2023-01-31 22:00:14 +07:00
notmd 4d2baf09a7 fix typo 2023-01-31 20:13:52 +07:00
notmd f1ab2086d6 Show at least the top 100 users on the leaderboards 2023-01-31 01:09:02 +07:00
AbdBarho f1eb670d38 Merge pull request #994 from LAION-AI/refactor
Consolidate API calls to TaskContext
2023-01-30 09:28:28 +01:00
notmd f825ae54fb try to fix test 2023-01-30 02:15:34 +07:00
notmd c05c0d88a1 remove debug code 2023-01-30 02:00:45 +07:00
notmd 0ab2fd5c5c try fix test 2023-01-30 01:00:12 +07:00
notmd e3f496df81 try to fix test 2023-01-29 23:44:30 +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
notmd fce158b8d3 disable sigin button until captcha success 2023-01-29 23:18:08 +07:00
notmd f75d02c33a use signIn callback instead middleware 2023-01-29 22:59:45 +07:00
AbdBarho 77cc96d401 TaskContext as subset of ApiHookState 2023-01-29 11:38:16 +01:00