Commit Graph

659 Commits

Author SHA1 Message Date
Keith Stevens 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 3f50cf1080 Pre-commit 2023-01-21 20:35:02 +00:00
rjmacarthy edeae8cc84 Fix locale leaderboard after rebase 2023-01-21 20:33:27 +00: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
ml729 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
ml729 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
ml729 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
ml729 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
ml729 0f2a65ea3c remove unnecessary imports 2023-01-21 12:55:30 -05:00
ml729 91bb560383 clean up status page code 2023-01-21 12:55:30 -05:00
ml729 812c8cb209 create status page 2023-01-21 12:55:30 -05:00
ml729 ea7e320a78 add status option in admin page left bar 2023-01-21 12:53:36 -05:00
Keith Stevens e756e5d992 Fixing another page with locale data 2023-01-21 19:03:12 +09:00
Keith Stevens b9ce2fb140 Ensuring localization works across all pages and fix user data fetching in admin view 2023-01-21 17:56:29 +09:00
Keith Stevens 1c725bb4e2 Merge pull request #862 from LAION-AI/whitespace
Render whitespace in messages
2023-01-21 10:34:50 +09:00
Keith Stevens b05df5b095 Merge pull request #861 from LAION-AI/last-updated
Show last updated on leaderboard
2023-01-21 10:34:23 +09:00
AbdBarho 2802bc1581 Render whitespace in messages 2023-01-20 13:51:47 +01:00
Keith Stevens 7488f175f2 Merge pull request #859 from LAION-AI/fetch-available-tasks
Fetch available tasks
2023-01-20 21:03:45 +09:00
AbdBarho 0c5e2fc45d Show last updated on leaderboard 2023-01-20 13:00:59 +01:00
AbdBarho a588844ba5 use clsx 2023-01-20 12:26:50 +01:00
AbdBarho e80a69dd8a Fetch available tasks 2023-01-20 12:16:17 +01:00
AbdBarho 1fe24db8ae Restyle account page 2023-01-20 11:05:56 +01:00
Keith Stevens c81967fca9 Merge pull request #852 from rjmacarthy/chore/apply-i18n-pages
website: Add localization to pages, header and footer
2023-01-20 18:59:27 +09:00
rjmacarthy f09eee1ce7 Pre-commit 2023-01-20 09:44:06 +00:00
AbdBarho 47c402e762 More space for messages on narrow screen 2023-01-20 10:37:54 +01:00
rjmacarthy 9b659191ca Extract common getStaticProps to single file 2023-01-20 09:37:02 +00:00
Keith Stevens f711133df9 Merge pull request #844 from LAION-AI/827-use-discord-credentials
Send the most detailed user credentials to the backend
2023-01-20 17:00:00 +09:00
rjmacarthy 3fa2e637d2 Add localization to pages, header and footer
Fix import orders for useTranslation

Apply common translations for header and footer

lint

Fix getServerSideProps messages/id
2023-01-19 19:23:29 +00:00
Keith Stevens 581f31203c Fixing the contract tests to use the new user type 2023-01-19 17:32:05 +09:00
Keith Stevens ae6600afa2 Removing an unused import 2023-01-19 17:23:53 +09:00
Keith Stevens df1eca4eaf Ensuring the website uses the most specific auth type with the backend when fetching and interacting with tasks 2023-01-19 17:21:41 +09:00
Adrian Cowan bde1639e07 website: Change spam question to "Is the message spam?" 2023-01-19 19:10:23 +11:00
AbdBarho 13fa1151a0 Restyle slider thumb 2023-01-18 19:10:48 +01:00
AbdBarho 7a628c81f4 Merge pull request #820 from LAION-AI/web-small-test-cleanup
Moving the page tests into pages directory to simplify tab completion
2023-01-18 15:17:30 +01:00
Keith Stevens a5d59339f9 Deleting some function arguments used for debugging 2023-01-18 15:33:27 +09:00
Keith Stevens 289d52e348 Adding a README explaining directory test structure 2023-01-18 15:32:36 +09:00
Keith Stevens 04b14bb24b Moving the test file to a different directory 2023-01-18 15:31:31 +09:00
Keith Stevens 173af6847e Moving the username handler to a ts file 2023-01-18 15:23:24 +09:00
Keith Stevens 67c820d379 Moving the page tests into the pages directory to simplify tab completion 2023-01-18 15:20:53 +09:00
Keith Stevens 5fa1155deb Deleting a decayed cypress auth check 2023-01-18 14:51:06 +09:00