Christian Fehmer
afbff1bcf6
fix(docker): Allow to self-host without firebase config (@fehmer) ( #6685 )
...
fixes #6505
2025-07-01 13:06:06 +02:00
Seif Soliman
e4a102ac64
impr(results): allow PBs with stop on letter if accuracy is 100% (@byseif21) ( #6611 )
2025-06-26 17:11:15 +02:00
Miodec
63b63ffa9c
chore: update plugins overrides
2025-06-14 15:33:52 +02:00
Miodec
4c05dd8326
chore: bump oxlint version
2025-06-14 14:43:05 +02:00
Miodec
2d008461ed
chore: catch firebase internal errors when trying to auth
2025-06-14 14:11:05 +02:00
Miodec
04fbd81c10
chore: bump oxlint version
2025-05-29 13:23:13 +02:00
Christian Fehmer
d6ae7cf7c4
fix: compatability check header shown if client is using cached responses (@fehmer) ( #6602 )
...
If frontend and backend are deployed with a new COMPATABILITY_CHECK
header frontend might show the backend version is lower because of the
http header of a cached response.
Adding the COMPATABILITY_CHECK version as part of the etag fixes this.
2025-05-27 16:59:49 +02:00
Jack
ea90e0a99e
refactor: dont allow nullable numbers (@miodec) ( #6564 )
...
Enables strict boolean expressions rule for nullable numbers
2025-05-16 16:04:19 +02:00
Miodec
8370de1fa4
impr: add function to clearstreakhouroffset
...
!nuf
2025-05-12 13:52:37 +02:00
Christian Fehmer
eb092cea1c
refactor: move languages to contracts (@fehmer) ( #6497 )
2025-05-07 14:02:27 +02:00
Miodec
255c4b944d
fix: unable to link discord if user has no avatar
2025-04-30 18:41:03 +02:00
Miodec
c666d13c96
impr: parse response from discord api with zod
...
!nuf
2025-04-29 13:53:02 +02:00
Christian Fehmer
212b8d38cb
refactor: make funbox settings an array (@fehmer) ( #6487 )
...
change funbox from "hash separated values" to array.
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-29 11:31:44 +02:00
Miodec
ab9cef010e
chore: swap monkeyerror for error to not expose actual error message to the frontend
2025-04-26 21:53:16 +02:00
Jack
e06f7f41cf
refactor: add trycatch util (@miodec) ( #6492 )
...
Adds trycatch util to cleanup try catch code.
2025-04-26 21:24:39 +02:00
Miodec
a59f99a533
refactor: protect against null, remove nullish coalescing
2025-04-26 18:56:58 +02:00
Seif Soliman
86383cf9ef
refactor(backend): improve redis and json.parse type safety with zod (@byseif21, @miodec) ( #6481 )
...
### Description
refactored backend files to enhance type safety and reliability using
Zod validation and Redis instead of JSON.parse , I tried to avoid the
files that isn't necessary tho so I hope I don't miss any or included
unnecessary ones!! didn't fully test only verified code compilation and
partial tests without Redis!!.
Should Close #5881
Related to #6207
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-24 16:25:43 +02:00
Miodec
a424f96480
chore: upgrade oxlint
2025-04-23 18:54:33 +02:00
Miodec
d3f3a834e3
refactor: remove unnecessary json parse
2025-04-23 18:43:38 +02:00
Miodec
0b05b3c2fd
refactor: enable ban-ts-comment rule
2025-04-16 19:15:30 +02:00
Jack
cac8835c77
chore: add oxlint (@miodec) ( #6455 )
...
Use oxlint for general linting to provide much quicker feedback. Keep
eslint for type-aware rules. Fully switch to oxlint once it supports
type-aware.
2025-04-16 17:18:50 +02:00
Christian Fehmer
f6d9b7c3ef
impr: lazy load chartData on results (@fehmer) ( #6428 )
...
Optimize results endpoint by removing heavy or unused data.
We load the whole result chart data for up to 1000 results each time,
but it is very unlikely the user will view the charts for all old
results. By removing the size in my tests went down from 1152kb to
276kb.
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-08 13:46:40 +02:00
Miodec
115b0d7292
impr: pass lboptout to bot linking command
...
!nuf
2025-04-02 22:01:44 +02:00
Miodec
2c13284528
impr: pass lboptout to bot linking command
...
!nuf
2025-04-02 21:55:34 +02:00
Christian Fehmer
b1d75fb077
fix: local development using docker not working with pnpm (@fehmer) ( #6401 )
...
!nuf
2025-03-26 13:11:02 +01:00
Miodec
d567130053
chore: remove logs, cache is fine
2025-03-20 17:56:10 +01:00
Miodec
33977b71e6
chore: ugly console log to check if the cache is working for sure
2025-03-20 17:50:40 +01:00
Miodec
4bfe6c9bf7
impr: cache leaderboard collection size to improve performance
...
!nuf
2025-03-20 14:54:29 +01:00
Christian Fehmer
e647d875f0
impr: error handling on user deletion (@fehmer) ( #6363 )
...
!nuf
2025-03-17 16:05:46 +01:00
Nad Alaba
932d0e166e
build: fix openapi spec path for docs & stats endpoints on dev (@NadAlaba) ( #6343 )
...
### Description
1. fix openapi specification path so that /docs endpoint would work on
dev.
> Error: ENOENT: no such file or directory, stat
'backend/src/static/api/public.html' Stack: Error: ENOENT: no such file
or directory
2. fix openapi specification path so that API Operation would work on
/stats endpoint on dev.
> Cannot read openApi specification from
backend/src/api/routes/../../static/api/openapi.json. Swagger stats will
not fully work.

3. remove unneeded `files` & `ts-node` options from `tsconfig.json` in
various places.
> File 'backend/src/types/types.d.ts' not found.
The file is in the program because:
Part of 'files' list in tsconfig.json
4. add the missing `pnpm test` script to the funbox package.
2025-03-12 16:20:46 +01:00
Christian Fehmer
4d4de260d9
chore: update mongodb version to 5.0.13 (@fehmer) ( #6364 )
2025-03-12 15:29:19 +01:00
Miodec
bd7f06be9a
fix: handle firebase rate limit when requesting email verification
...
!nuf
2025-03-12 12:59:55 +01:00
Miodec
9bbcf40f45
chore: fix test
2025-03-12 08:56:59 +01:00
Miodec
71b5f2875f
chore: temporary object log to track down an error
2025-03-12 08:55:19 +01:00
Miodec
f5f4453624
chore: update error messages
2025-03-12 08:54:54 +01:00
Christian Fehmer
f80dde4c89
chore(self hosting): run selfhosted backend in prod mode (@fehmer) ( #6326 )
...
Co-authored-by: Miodec <jack@monkeytype.com>
2025-03-03 17:43:08 +01:00
Christian Fehmer
660d856f96
refactor: use bearer auth instead of uid auth for tests (@fehmer) ( #6318 )
2025-03-03 12:08:30 +01:00
Christian Fehmer
50f6bd418c
fix: errors not being logged into the database (@fehmer) ( #6323 )
...
!nuf
2025-03-03 11:32:31 +01:00
Christian Fehmer
642c03abdc
fix(docker): fix configuration endpoint, add configuration export (@fehmer) ( #6317 )
...
- fixes /configure endpoint not working in docker image because of the
missing `private` directory
- adds `export configuration` button to api server configuration
2025-02-27 10:48:59 +01:00
Christian Fehmer
41b02155f2
test: fix tests not awaiting expect with resolves or rejects (@fehmer) ( #6308 )
2025-02-26 17:50:24 +01:00
Christian Fehmer
7be66e9cb3
fix: rounding issues causing daily leaderboard to be out of order sometimes (@fehmer) ( #6303 )
2025-02-24 12:04:33 +01:00
Christian Fehmer
05271d6946
impr: log failed worker queue jobs (@fehmer) ( #6295 )
...
!nuf closes #6294
2025-02-22 09:14:59 +01:00
Christian Fehmer
598e167f9b
fix: daily leaderboard worker not giving XP to users (@fehmer) ( #6292 )
2025-02-21 17:40:11 +01:00
Christian Fehmer
8bc23b7c3d
fix: remove user from XP leaderboard if opt-out, reset or deleted (@fehmer) ( #6290 )
...
Ensure user is removed from the weekly XP leaderboards if they either
`opt-out`, `reset` their account or `delete` their account.
2025-02-21 17:09:55 +01:00
Christian Fehmer
8a41ccee97
fix: past leaderboard not fetching the users rank (@fehmer) ( #6289 )
...
Show the users ranking for the last day on the daily and for the last
week on the weekly leaderboard correctly.
- Fix request query schema for the [daily
rank](https://api.monkeytype.com/docs/internal#tag/leaderboards/operation/leaderboards.getDailyRank )
having pagination
- Fix request query schema for the [weekly
rank](https://api.monkeytype.com/docs/internal#tag/leaderboards/operation/leaderboards.getWeeklyXpRank )
missing the `weeksBefore` parameter
- Fix frontend to include the `daysBefore` or `weeksBefore` parameter on
`rank` calls
---------
Co-authored-by: Miodec <jack@monkeytype.com>
2025-02-21 16:52:20 +01:00
Miodec
ba940232a0
chore: update version string format
2025-02-20 11:42:10 +01:00
Christian Fehmer
fd6bf18a4c
fix: update csp entries for redocly (@fehmer) ( #6265 )
...
!nuf
2025-02-14 19:05:00 +01:00
Jack
01dee3fe15
feat: leaderboards remake, weekly xp leaderboards (@miodec) ( #6250 )
2025-02-12 16:34:03 +01:00
Christian Fehmer
e7685c5861
impr: add X-Compatibility-Check header to all responses (@fehmer) ( #6262 )
...
!nuf
2025-02-12 14:37:53 +01:00
Miodec
a0c471a28e
chore: add captcha to the forgot password modal
2025-02-12 12:12:48 +01:00