monkeytype/backend
Christian Fehmer 1d4d7dab87
feat: Allow more results for premium users (fehmer, Miodec) (#4778)
* feat: Unlimited history for premium users UI

* disable button while loading, show spinner

* optional chaining

* add isPremium to /users, remove check from frontend

* add /results max batch size to configuration

* result batching ui v1

* rename variables, update button based on state, update text

* Return allowed results in /results if limit is partly overshooting the max limit

* use br instead of margin

* let result batches code handle button disabling

* hide title

* limit max width

* hide section when below batch size

* update limit color based on the % of limit used

* bring back loaded bar

* remove unused css

* fix alignemtn

* remove text for now

* add result getting log

* always hiding for non premium users for now

* Add server configuration users.premium.enabled, throw error on /results if premium user exceeds regular limit and premium is globally disabled

* Disable premium feature globally by default

* cleanup open todos

* Don't use premium user max limit on /results if premium feature is disabled on server

* fix merge issue

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-20 16:17:20 +00:00
..
__tests__ feat: Allow more results for premium users (fehmer, Miodec) (#4778) 2023-11-20 16:17:20 +00:00
email-templates Custom email (#3964) 2023-02-13 13:24:43 +01:00
private fix: use appropriate fallback fonts (SethFalco) (#4620) 2023-09-11 16:09:34 +01:00
redis-scripts Add weekly xp leaderboards backend (#3511) Bruception 2022-11-28 14:10:02 +01:00
src feat: Allow more results for premium users (fehmer, Miodec) (#4778) 2023-11-20 16:17:20 +00:00
.gitignore fixed ignore 2022-03-07 14:39:09 +01:00
docker-compose.yml chore: update tsconfig and docker compose (#4530) 2023-08-12 16:41:36 +02:00
example.env Custom email (#3964) 2023-02-13 13:24:43 +01:00
jest-mongodb-config.js Feature/backend test (#2937) sondrekje 2022-05-05 15:19:31 +02:00
jest.config.ts test: lowering this because build is failing at 37.99 😠 2023-10-27 15:47:08 +01:00
knip.json added knip to find unused exports 2023-08-10 18:32:33 +02:00
package-lock.json refactor: Import shared types back into MonkeyTypes namespace (fehmer) (#4800) 2023-11-20 14:56:28 +00:00
package.json refactor: Import shared types back into MonkeyTypes namespace (fehmer) (#4800) 2023-11-20 14:56:28 +00:00
tsconfig.json refactor: Import shared types back into MonkeyTypes namespace (fehmer) (#4800) 2023-11-20 14:56:28 +00:00