Commit graph

950 commits

Author SHA1 Message Date
Miodec
e2a51d0080 removed possible false positives 2023-06-19 13:24:24 +02:00
Miodec
756c05da96 fixed start of day timestamp being incorrect 2023-06-16 16:08:05 +02:00
Miodec
ce404ec964 added more tests 2023-06-16 16:06:23 +02:00
Miodec
6e2887c9b1 removed console logs 2023-06-15 20:27:16 +02:00
Miodec
242e017371 allowing change if undefined or null 2023-06-14 23:56:39 +02:00
Xea
850a14c584
split smoothCaret into several modes (#4374) im-0xea
* split smoothCaret into several modes

* implemented requested changes of smoothCaret modes

* moved config migration code

* bring back caretFlash animation

* fixed error (weird how the build process didnt catch this)

---------

Co-authored-by: Miodec <jack@monkeytype.com>
Co-authored-by: Niki <n.topel@callassoftware.com>
2023-06-14 13:59:24 +02:00
Miodec
2ff29b1f5a actually fixed hour offset getting overwritten 2023-06-14 12:25:29 +02:00
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