73 Commits

Author SHA1 Message Date
notmd 71326d485e allow moderators to ban user (#1458)
* allow mod to ban user

* fix middleware
2023-02-11 09:10:10 +01:00
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 07b58d4021 Switching username generator library to be less explicit (#1351) 2023-02-08 18:32:25 +01:00
notmd b7d0c4331c Ts strict mode (#1288)
part of #879
2023-02-07 19:56:59 +09: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
AbdBarho e1f52c76d7 Merge pull request #1051 from notmd/bundle_analyzer
Setup bundle analyzer
2023-02-02 10:13:09 +01:00
notmd ff94e3a6e0 support window 2023-02-01 20:30:04 +07:00
notmd fdd57eda85 setup bundle analyzer 2023-02-01 19:45:43 +07:00
notmd c6bf5bc907 Merge branch 'main' into cleanup 2023-02-01 17:31:03 +07:00
notmd 1e2948743d wip 2023-02-01 17:22:44 +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
Keith Stevens 7a56b152a2 Update the locale cookie when a user sets the url manually 2023-01-30 20:30:01 +09:00
notmd 599d70962e Merge branch 'main' into 911_sigin_captcha 2023-01-29 23:34:04 +07:00
Keith Stevens 2e1abd3f69 Copying from #769 to implement mock service worker 2023-01-28 20:09:04 +09:00
Adrian Cowan 63dc5d170f website: Add storybook stories for messages 2023-01-26 17:24:17 +11:00
notmd a6fcf0dc1e wip 2023-01-25 17:44:59 +07:00
notmd b7056eccd1 Show more stats in leaderboard table 2023-01-24 02:04:00 +07:00
notmd 204e11b400 migrate all icon to lucide 2023-01-22 21:02:52 +07:00
notmd 2fbe83c291 Merge branch 'main' into lucide 2023-01-22 20:38:43 +07:00
notmd d466e63d66 wip 2023-01-22 20:35:31 +07:00
notmd 7025b174d2 Merge branch 'main' into 766_admin_enhancement 2023-01-22 17:22:31 +07:00
Keith Stevens 7274512c2f Implementing core of setting user languages and fetching language specific tasks 2023-01-21 21:36:37 +09:00
notmd 99d9ee1937 Merge branch 'main' into 766_admin_enhancement 2023-01-20 23:08:59 +07:00
notmd 801ad553b8 Allow to filter user by display_name 2023-01-18 15:19:00 +07:00
Keith Stevens 527e1513b1 Merge pull request #779 from rjmacarthy/internal/internationalization
website: Enable i18n internationalization and refactor index page
2023-01-18 14:28:12 +09:00
Keith Stevens 0a36e459d7 Guarantee all users get a name (#800)
* Guarantee all users get a name and it is used when talking to the backend

* Small code cleanup
2023-01-17 21:12:48 +01:00
rjmacarthy d10f691eeb Implemented i18n for internationalization and refactor index for localization support
lint

Fix Hero as tag types

Fix build warning regarding i18n

Update package.json and package-lock.json

Revert package-lock.json

Add package-lock, fix build

Pre-commit

Fix default export in favour of named export

Refactor cta buttons to use react-icons

Remove unused props from CircleBackground
2023-01-17 08:01:37 +00:00
notmd e464fcbbb2 migrate formik to react-hook-form 2023-01-16 17:54:21 +07:00
notmd b90ac368f7 wip 2023-01-16 12:27:40 +07:00
AbdBarho ab63150004 Use new leaderboard api 2023-01-15 14:07:30 +01:00
Yannic Kilcher 7677a59e04 installed sharp for next standalone deployment 2023-01-13 10:36:13 +01:00
ericv105 d11d81891c Merge branch 'unit-testing-jest-rtl' 2023-01-10 19:14:40 -05:00
Keith Stevens 69dc6bf68d Adding a bare bones feature flag setup 2023-01-09 09:44:01 +09:00
Keith Stevens c234e8b0d0 Adding an admin page to manage a specific user's status 2023-01-08 16:15:48 +09:00
ericv105 a0d656404e scripts for typecheck and cypress component tests 2023-01-07 23:01:20 -05:00
Keith Stevens aa4bb41355 Delete sharp, it's not needed and breaks docker on m1 2023-01-07 08:54:50 +09:00
ericv105 bf2a5e4a46 jest setup, cypress type conflict fix 2023-01-06 01:07:27 -05:00
Keith Stevens 38fec237d0 Merge pull request #342 from jack-michaud/jm/contract-tests-for-website
refactor + test: add OasstApiClient in website with tests
2023-01-05 19:30:47 +09:00
Keith Stevens ad67f66aee Downgrading sharp to ensure it builds on mac m1 2023-01-04 18:09:39 +09:00
Jack Michaud 5ed4131720 ci: run contract tests through separate cypress command and add into CI 2023-01-03 20:51:11 -05:00
Desmond Grealy de7e8c08a2 Merge branch 'main' into dark-mode-implementation 2023-01-02 19:00:10 -08:00
Desmond Grealy 3d13c7c91c Darkmode for survey pages. Fixes for eslint. 2023-01-02 18:36:54 -08:00
Adrian Cowan 0df6d7fd31 website: more e2e tests for signin
Fixed issue where existing sign in test fails due to the existence of dev test login.

Added reusable cy.signInWithEmail() to login before testing rest of UI.
2023-01-02 21:13:10 +11:00
Adrian Cowan 64a7b9848a website: Restrict ranking items to vertical motion to avoid breaking the webpage layout.
When the items are drag-able outside the page boundary the viewport leaves the page boundary. This looks particularly unprofessionally on mobile. There is also another option to restrict to the page boundaries (restrictToWindowEdges) which might be better but it doesn't appear to work on mobile (firefox); the issue is that the items get stuck slightly off to the left edge of the viewport and can't be moved horizontally at all (even without restrictToVerticalAxis).
2023-01-01 16:40:29 +11:00
Keith Stevens 41e509405b Merge pull request #199 from croumegous/fix-lint-build
Fix linter warnings
2023-01-01 10:46:21 +09:00
croumegous 8c79cadbb1 chore: manually fix linter warning 2022-12-31 18:27:08 +01:00
croumegous a0b900559c chore: eslint plugins to sort import and remove unused import automatically 2022-12-31 18:22:06 +01:00
Dustin a40d51b06f added missing dependency for DNDKit on evaluation pages 2022-12-31 09:03:10 -08:00
AbdBarho ece0227aec Use DnDKit for ranking tasks 2022-12-31 09:19:37 +01:00
Martin H. Normark 932129906c Tidy up cypress npm scripts 2022-12-31 00:11:32 +01:00