Commit graph

943 commits

Author SHA1 Message Date
Miodec
cb166d2743 fixed everyuser getting houroffset 0 automatically 2023-06-13 23:15:13 +02:00
Miodec
d500e06d9b pretty fix 2023-06-12 14:47:13 +02:00
Jack
27b1a7fedb
Streak hour offset (#4357)
* backend flow to set hour offset

* added frontend popup to set streak hour offset

* displaying a message that the user can change offset
displaying the actual offset if its already set

* applying offset when checking streaks

* added tests for the new offset
updated old streak tests

* defaulting to undefined

* removing content if offset is already set

* updated the way offset is displayed

* also updating in the local snapshot
2023-06-12 14:38:44 +02:00
Miodec
cca3f8090d updated admin limit 2023-06-07 15:15:14 +02:00
Miodec
b2ac4e7197 moved to admin route 2023-06-07 15:00:13 +02:00
Miodec
0107530eae added toggle banned endpoint 2023-06-07 14:53:53 +02:00
Miodec
45eb1e8a40 added rate limiter 2023-06-07 14:53:33 +02:00
Miodec
5a1070be52 1 email attempt 2023-06-07 09:14:58 +02:00
Miodec
895c6738cb added test that verified pb funbox check is working 2023-06-05 18:07:00 +02:00
Miodec
985ef5959e fixed pbs not working with funboxes 2023-06-05 17:46:44 +02:00
Miodec
009c79350b removed console logs 2023-06-05 17:38:41 +02:00
Miodec
6ff95b0e83 updated funbox structure
added frontend properties and functions
updated type
2023-06-05 13:11:39 +02:00
Miodec
2e7179df8e checking if result funboxes are unique
checking if result funboxes are compatible with each other
2023-06-05 13:11:16 +02:00
Miodec
f8f80fbeb0 making sure to only take unique funboxes 2023-06-05 12:27:38 +02:00
Miodec
bcc6445440 stricter result schema 2023-06-05 11:27:32 +02:00
Miodec
f51a64727e stricted result schema 2023-06-05 11:27:32 +02:00
Evan
0f51c384f6
Force mode2 to always be string (#4097) Ferotiq Miodec
* make a util type

* `StringNumber` in `leaderboards.ts`

* fix errors in`pb-tables.ts`

* remove string conversion

* update schemas

* refactor `checkAndUpdatePb`

* use string arrays

* parse the mode2 before comparing

* refactor types

* fallback to empty array

* complete the mode2 string conversion

* missed a few things

* assert

* fix tests

* those were meant to be arrays

* don't supply custom and zen by default

* update interfaces

* add `parseInt`

* rename

* apparently those weren't even needed

* updated type

* added types

* types

* added comment

* added comments, removed triple equals

* another comment and again removed type check

* making sure to include legacy results

* using template strings instead

* using template strings and triple equals

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-24 15:53:37 +02:00
Nis-chal-Jain
7c8f537941
Fixed an typo at the documentation of monkeytype api (#4306) Nis-chal-Jain 2023-05-22 15:05:03 +02:00
Miodec
5d2b07308b removed console log 2023-05-22 14:32:07 +02:00
Miodec
5ff41ded22 fixed email client not catching sending errors
logging errors to the database
2023-05-17 23:51:37 +02:00
Miodec
014e20cf82 setting cached user banned property,
not checking again if user is already banned
2023-05-17 13:34:46 +02:00
Miodec
445f61c8a8 better comment 2023-05-17 13:34:46 +02:00
Miodec
82bfc5956e updated log 2023-05-17 13:34:46 +02:00
Miodec
16b2b11caf better log 2023-05-17 12:05:48 +02:00
Miodec
f0ec3d36ff not allowing users to report themselves
closes #4269
2023-05-15 13:36:58 +02:00
Miodec
6c9eb9ec3a deleting inbox on user reset
closes #4281
2023-05-15 13:36:57 +02:00
Miodec
219ec63794 turns out date.now uses miliseconds instead of seconds... who knew? 2023-05-09 16:06:47 +02:00
Evan
9408322503
Update PersonalBests Interface (#4158) Ferotiq
* update `PersonalBests` interface

* removed properties

* setting to skeleton if needed

* consistency and add skeleton by default

* consistency

* populate personalBests on user get

* simplification + consistency + small fixes

* protecting against partial object

* removed duplicate

* not optional property

* ensuring personal bests structure while creating user snapshot

* checking pb structure for tags

* missing skeleton

* required personal bests property

* simplify

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-03 11:39:32 +02:00
Bruce Berrios
8ee934c69d
Remove daily lb cache (#4231)
* Remove daily lb cache

* remove init

* lint
2023-04-30 11:25:18 -04:00
Miodec
02d4fa050f logging more fields 2023-04-24 12:54:54 +02:00
Miodec
9ff57a773f fixed tests 2023-04-21 12:05:38 +02:00
Miodec
aecdd21474 allowing users to update the casing of their own name 2023-04-21 11:22:43 +02:00
Miodec
017ca95236 passing previous name as function parameter to avoid requesting the user multiple times 2023-04-21 10:44:40 +02:00
Miodec
7d4e1ffc03 moved last name change check to the controller 2023-04-21 10:43:32 +02:00
Miodec
ad664812be missing styles in the config validation 2023-04-21 10:11:13 +02:00
Miodec
c12852eef2 updated bullmq 2023-04-20 13:27:41 +02:00
Miodec
5fbc14c73c cron version bump 2023-04-20 13:13:08 +02:00
Miodec
2d8a4a7651 update firebase admin 2023-04-20 13:08:53 +02:00
Miodec
cc59b346fc looking fo the service account key in the src folder 2023-04-18 16:19:46 +02:00
Miodec
c6d0070dd3 moved firebase admin into its own module
not initialising if ther eis no service account
this allows the backend server to be ran without firebase (all though it will throw errors)
closes #4190
2023-04-18 15:50:54 +02:00
Miodec
942df911bd fixed server boot errors not displayed correctly 2023-04-18 15:50:54 +02:00
Miodec
dcbf5e0333 Merge branch 'newads' 2023-04-18 12:44:55 +02:00
Miodec
e6cbdfd6c0 not including users who have opted out 2023-04-18 11:28:00 +02:00
Miodec
f053ca2c96 stopped ab test, removed ab test tracking code 2023-04-17 16:47:39 +02:00
Miodec
d96eea2bca Merge branch 'master' into newads 2023-04-12 16:26:59 +02:00
Miodec
26a876938e i am stupid 2023-04-12 16:26:45 +02:00
Miodec
73c84b43c3 Merge branch 'master' into newads 2023-04-12 00:03:00 +02:00
Miodec
c36664c00c passing lboptout into validation 2023-04-12 00:01:31 +02:00
Miodec
f29db00949 added catch, disabled cache for send verification email 2023-04-11 23:24:14 +02:00
Miodec
4262144c85 Merge branch 'master' into newads 2023-04-06 01:40:35 +02:00