Bruce Berrios
87b89e0d57
Add weekly xp leaderboards backend ( #3511 ) Bruception
...
* Add weekly seasons
* Fix test
* Add week timestamp tests
* Add unit tests
* Fix weeks before calculation
* Update user.spec.ts
* Remove minXp maxXp reward config
* Record total time typed + last activity timestamp
* Season -> Weekly XP Leaderboard
* prettier
* Add config hints
* Update leaderboard.ts
* monkeytype
Co-authored-by: Miodec <jack@monkeytype.com>
2022-11-28 14:10:02 +01:00
Bruce Berrios
a3b3387f01
Purge from dailies ( #3635 ) Bruception
...
* Purge from dailies
* Fix
* Migrate logic to lua script
* added test to pass coverage
* typo
* also purging user from daily lbs on personal bests clear
Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-10 18:29:29 +02:00
Bruce Berrios
0ef52ed9da
Add daily leaderboards ( #3023 ) bruception
...
* Setup daily leaderboards backend (#2987 ) bruception
* Setup daily leaderboards backend
* Add enabled checks
* Consistent naming
* Add initial unit tests
* Use more flexible daily leaderboard rule logic
* Fix seed rule
* Add LRU Cache + Rank Calculation
* Use native functions
* Optional daily leaderboard rank
* Proper status code for invalid lb mode
* Add result criteria check
* Make daily leaderboard cache size configurable
* Add Ape endpoint for daily leaderboard (#2997 )
* support for switching to viewing daily lbs
* test
* buttons
* only checking daily if user has more than 2 hours typed
* updated structure
* setting rank if its undefined
* only when daily
* storing uid
* fixed media queries
* Daily leaderboards pagination (#3006 )
* Pagination
* Remove with scores
* Add daily leaderboard rank (#3014 ) Bruception
* Add daily leaderboard rank
* Remove unused import
* Use object instead
* Add client logic
* Add limit checks
* Announce top daily leaderboard results (#3017 )
* Add rank in daily leaderboard results (#3022 )
* not showing lb memory and top % on daily
* Fix rank pagination
* Actual fix
* showing new rank
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-26 16:30:11 +02:00