Commit graph

11307 commits

Author SHA1 Message Date
Jack
ceedf8ace2
refactor: enable no-unsafe-call rule (@miodec) (#5883)
### Description

<!-- Please describe the change(s) made in your PR -->

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [ ] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [ ] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
2024-09-13 15:18:00 +02:00
Miodec
84166ce10b revert: upgrade octokit/rest
This reverts commit 05c22a9417.
2024-09-13 15:10:06 +02:00
Jack
8b2c1723a8
chore: upgrade slim-select (@miodec) (#5884)
Finally!
2024-09-13 14:49:26 +02:00
Miodec
2a0a5b408c chore: upgrade turbo 2024-09-13 13:57:12 +02:00
Miodec
05c22a9417 chore: upgrade octokit/rest 2024-09-13 13:37:57 +02:00
Miodec
f6cee0a559 chore: release v24.37.0 2024-09-13 13:32:35 +02:00
Miodec
fa3ae6668e refactor: move file 2024-09-13 13:27:16 +02:00
Igor Bedesqui
604fc208ea
feat(language): add javascript react language (@bdsqqq) (#5873) 2024-09-13 13:26:57 +02:00
Jack
70842599a9
feat(dev): add deepclone util function (@miodec) (#5882)
!nuf
2024-09-13 13:24:56 +02:00
Jack
955eeae2a7
refactor: enable no-unsafe-assignment rule (@miodec) (#5874)
Co-authored-by: Nad Alaba <37968805+NadAlaba@users.noreply.github.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: Igor Bedesqui <igorbedesqui@gmail.com>
Co-authored-by: amarnathsama <63007641+amarnathsama@users.noreply.github.com>
2024-09-13 13:18:06 +02:00
Christian Fehmer
e19b3e3e8b
refactor: remove leftover code from ts-rest migration (@fehmer) (#5875) 2024-09-13 12:27:35 +02:00
amarnathsama
8a6c81669e
feat(settings): allow partial presets (@amarnathsama, @miodec, @fehmer) (#5813) 2024-09-12 21:42:29 +02:00
Igor Bedesqui
dd93fdbf02
impr(language): add common javascript words, symbols and functions (@bdsqqq) (#5869) 2024-09-12 20:59:36 +02:00
Christian Fehmer
98acf75613
refactor: use css for heatmap colors (@fehmer) (#5879) 2024-09-12 20:57:20 +02:00
Nad Alaba
f9bd7d778b
fix(quote search): search service not building in code_javascript quotes (@NadAlaba) (#5876) 2024-09-12 20:38:52 +02:00
Jack
93d6fff895
refactor: enable no-unsafe-argument rule (@miodec) (#5872) 2024-09-11 14:23:00 +02:00
Christian Fehmer
4f75a00cb3
impr: use ts-rest for webhook endpoints (@fehmer, @miodec) (#5871)
!nuf
2024-09-11 14:16:34 +02:00
Christian Fehmer
b315836dee
impr: move configuration checks to contracts (@fehmer) (#5851)
!nuf
2024-09-11 11:26:12 +02:00
dependabot[bot]
c6daef0e9d
chore(deps): bump express from 4.19.2 to 4.20.0 in /backend (#5867)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-09-11 11:17:02 +02:00
Miodec
f6a27b2d18 impr(dev): add hotfix script
!nuf
2024-09-10 23:11:42 +02:00
Miodec
3478c21aa9 fix: lower accuracy requirement for accounts that have opted out of the leaderboards
actually closes #5858
2024-09-10 23:11:29 +02:00
Christian Fehmer
c7b3e2c916
impr: move permission checks to contracts (@fehmer, @miodec) (#5848)
!nuf
2024-09-10 11:35:57 +02:00
Jam Moonbami
14277538c3
feat(themes): add suisei theme (@moonbamijam) (#5820)
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-09-09 17:34:03 +02:00
Nad Alaba
618d53ebff
fix: multi-line words causing issues in ui scrolling and tape mode (@NadAlaba, @Miodec) (#5857) 2024-09-09 11:27:39 +02:00
Christian Fehmer
b06b9f73e5
refactor: rework rate limiting (@fehmer) (#5845)
!nuf
2024-09-09 10:39:08 +02:00
Miodec
e655aa741a fix: unnecessary assertion
!nuf
2024-09-08 13:05:35 +02:00
Miodec
38d8ac7212 fix: unresolved ts type
!nuf
2024-09-08 12:46:39 +02:00
Miodec
89016d390d impr: dont sent results shorter than 1 second
closes #5858
2024-09-08 10:35:15 +02:00
Christian Fehmer
9c083f2397
fix: unable to update profile with missing values (@fehmer) (#5859) 2024-09-07 13:05:44 +02:00
Christian Fehmer
6de9ad6e1c
fix: result filters defaults invalid (@fehmer) (#5860) 2024-09-07 13:05:13 +02:00
Miodec
d5fb24fb12 fix(server): get personal bests request mode2 should be optional
!nuf
2024-09-06 15:10:45 +02:00
Miodec
715bc0ec23 chore: release v24.36.0 2024-09-06 12:53:17 +02:00
fsq
5f695b4229
feat(layout): add the scythe layout (@forusu) (#5854)
* Update _list.json

Adds the scythe layout.

* Update _list.json

Fixed JSON syntax errors

* Update _list.json
2024-09-06 12:08:14 +02:00
Nad Alaba
cbaefbf210
fix(caret): getting last letter top in long multiline words (@NadAlaba) (#5856)
* fix(caret): getting last letter top in long multiline words (@NadAlaba)

* no need to check for invisible extra letters

This check was needed when `letterPosTop` was
`currentLetter?.offsetTop ?? previousLetter?.offsetTop ??
lastWordLetter?.offsetTop` where `previousLetter?.offsetTop` was defined
but 0 in extra letters in blind mode, so we got the value of zero
although in some fonts the real value (`lastWordLetter` value) is not 0.

However, now we don't use `previousLetter`, and `currentLetter` is
undefined in extra letters (blind mode or not), so we'll get the value
we want (`lastWordLetter` value) in extra letters.

* update comment
2024-09-06 11:59:27 +02:00
Christian Fehmer
77c1e8e298
feat(funbox): add instant messaging (@fehmer) (#5850)
Thanks
2024-09-05 17:36:10 +02:00
Alessandro Chitarrini
b8ca187ab3
Open impr(quotes): add English quote (@chitvs) (#5844)
Co-authored-by: Jack <jack@monkeytype.com>
2024-09-05 17:32:13 +02:00
Christian Fehmer
259894ab9f
impr: use tsrest for user endpoints (@fehmer) (#5815)
!nuf
2024-09-05 17:28:19 +02:00
Nad Alaba
6a24dbb986
chore(PR labeler): fix workflow having read access only, when triggered from forks (@NadAlaba) (#5842)
* chore(PR labeler): fix workflow having read access only when triggered from forks (@NadAlaba)

* remove logging and add an example with scope

* use action instead of gh cli for security

* use action to read json (instead of echoing contents in shell) for security

* step.if needs the same variables

* don't let attacker choose the labels

* step.name starts in caps

* no need for variable if it's used once
2024-09-05 13:44:23 +02:00
Christian Fehmer
8e0a6c3417
impr(settings): add hints to tag buttons on mouseover (@fehmer) (#5849) 2024-09-05 11:12:32 +02:00
Nad Alaba
661c138812
fix(zen mode): issues when changing tape mode and other caret issues (@NadAlaba) (#5824)
* fix(zen mode): undefined word when changing tape mode during test (@NadAlaba)

* fix(zen mode): shrinking full-width-caret when changing tape mode during test (@NadAlaba)

* fix(zen mode): messed up caret in RTL languages (@NadAlaba)

because of the letter '_' that is added to the beginning of a word
in zen mode, the caret is getting positioned on the 2nd letter.

Also, since lastWordLetter is always undefined (because wordLen is
always 0) offsetHeight and offsetTop are getting the default values
regardless of font characteristics.

* fix caret staying in position in (blind + word tape + zen) mode

* refactor: combine last 2 solutions

* rename parameter
2024-09-02 12:10:45 +02:00
Nad Alaba
55496996de
refactor: determine active word based on logical value, not DOM class (@NadAlaba) (#5834)
* refactor: use active word based on logical value, not DOM class

* use existing const instead of querying DOM

activeWord.offsetTop changes when the DOM element gets updated
no need to query the active word again

* better naming

* no need to requery DOM, we have the top of the previous word saved
2024-09-02 11:49:41 +02:00
Andrew Hermes
02490213d6
impr(quotes): add English quote (#5832) 2024-09-02 10:58:44 +02:00
Miodec
8ddb23ac40 fix: cookie modal not being shown for new users 2024-09-01 16:35:30 +02:00
Miodec
cc00295a5d fix: words flashing when line jumping in some modes 2024-08-30 20:27:36 +02:00
Christian Fehmer
1804ebcd8a
impr: use tsrest for quotes endpoints (@fehmer) (#5802)
!nuf
2024-08-29 15:42:42 +02:00
Sanidhya Singh
1ba4be38d0
impr(PR labels): automatically label PRs "waiting for review/update" (@sanidhyas3s) (#5830)
!nuf
2024-08-29 14:17:04 +02:00
amarnathsama
253efb7340
fix(presets): auto-switch theme checkbox values not loaded correctly (@amarnathsama) (#5826)
* fixed bug where presets wouldnt change auto light and dark theme checkbox values

* mode code to setting.ts

* updated variable name

* updated setting.ts
2024-08-29 12:40:19 +02:00
Nad Alaba
faf522f21f
fix(release script): not updating root package.json version + not supporting some shells (@NadAlaba) (#5825)
* fix(release script): update root package.json version as well + other issues (@NadAlaba)

* remove version from release/package.json (get and set root only)

* usernames start with @, prs start with # in title regex

* update github PR links

* fix typo in dev-pkg script
2024-08-28 14:42:52 +02:00
Miodec
7b4a789f2e refactor: await addWord if the test is out of words
fixes #5630 by not always awaiting
closes #5819
2024-08-28 13:51:07 +02:00
Miodec
13eab07139 fix(language): duplicate word 2024-08-28 12:06:35 +02:00