Commit graph

62 commits

Author SHA1 Message Date
Jack 7e703028bd
refactor: enable no-unsafe-member-access (@miodec) (#5887)
### 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-18 12:56:52 +02:00
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
Miodec 05c22a9417 chore: upgrade octokit/rest 2024-09-13 13:37:57 +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
amarnathsama 8a6c81669e
feat(settings): allow partial presets (@amarnathsama, @miodec, @fehmer) (#5813) 2024-09-12 21:42:29 +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
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
Christian Fehmer b06b9f73e5
refactor: rework rate limiting (@fehmer) (#5845)
!nuf
2024-09-09 10:39:08 +02:00
Christian Fehmer 9c083f2397
fix: unable to update profile with missing values (@fehmer) (#5859) 2024-09-07 13:05:44 +02:00
Miodec d5fb24fb12 fix(server): get personal bests request mode2 should be optional
!nuf
2024-09-06 15:10:45 +02:00
Christian Fehmer 259894ab9f
impr: use tsrest for user endpoints (@fehmer) (#5815)
!nuf
2024-09-05 17:28:19 +02:00
Christian Fehmer 1804ebcd8a
impr: use tsrest for quotes endpoints (@fehmer) (#5802)
!nuf
2024-08-29 15:42:42 +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
Christian Fehmer 65ef5eaba5
refactor: remove ResultOmittableDefaultPropertiesSchema (@fehmer) (#5827) 2024-08-27 13:14:57 +02:00
Christian Fehmer 30d440a70e
impr: use tsrest for dev endpoints (@fehmer) (#5800)
!nuf
2024-08-23 20:03:13 +02:00
Christian Fehmer e2d574444a
impr: use tsrest for configurations endpoint (@fehmer) (#5796)
!nuf
2024-08-23 19:06:41 +02:00
Christian Fehmer e03a25fb92
impr: use ts-rest for results endpoint (@fehmer) (#5758)
!nuf
2024-08-23 12:13:50 +02:00
Miodec ed8efe619d chore: release v24.34.0 2024-08-20 17:32:27 +02:00
dependabot[bot] 758ebd920b
chore(deps-dev): bump @typescript-eslint/parser from 8.0.1 to 8.2.0 (#5807)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 8.0.1 to 8.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.2.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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 <fehmer@users.noreply.github.com>
2024-08-20 17:03:46 +02:00
Miodec 101beef87c chore(release package): catch github release api error, notify user 2024-08-14 13:49:26 +02:00
Miodec b131646db7 chore: release v24.33.0 2024-08-14 13:46:11 +02:00
Miodec 8c6be2cca4 fix(release package): incorrect path 2024-08-14 13:43:53 +02:00
dependabot[bot] 68efbcec21
chore(deps-dev): bump madge from 6.1.0 to 8.0.0 (@dependabot) (#5774)
Bumps [madge](https://github.com/pahen/madge) from 6.1.0 to 8.0.0.
- [Changelog](https://github.com/pahen/madge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pahen/madge/compare/v6.1.0...v8.0.0)

---
updated-dependencies:
- dependency-name: madge
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 12:21:24 +02:00
Jack 55e183e7bb
impr: add local storage with schema class to improve type safety (@miodec) (#5763)
!nuf
2024-08-12 17:04:01 +02:00
Miodec ed47fb73a8 chore: allow expressions in explicit-function-return-type rule 2024-08-12 14:31:58 +02:00
Christian Fehmer c6e8f413fc
impr: use tsrest for leaderboard endpoints (@fehmer) (#5717)
!nuf
2024-08-12 14:08:17 +02:00
Miodec 295e47638e chore: rebuild all files instead of just what changed 2024-08-09 17:01:10 +02:00
Miodec 8e343bc390 chore: replace all eslint warnings with errors 2024-08-09 13:20:59 +02:00
Jack 782eea643b
chore: remove some unnecessary root dependencies, move to correct packages (@miodec) (#5751)
* remove some, move some

* version
2024-08-09 13:19:53 +02:00
Miodec d27c622943 chore: move example.env to release package 2024-08-09 12:51:29 +02:00
Christian Fehmer c50535cd0f
impr: use tsrest for public endpoints (@fehmer) (#5716)
!nuf
2024-08-09 12:39:27 +02:00
Christian Fehmer 45d27b5e00
chore: add test for recordClientVersion (@fehmer) (#5746) 2024-08-08 18:27:00 +02:00
Miodec 0a0f175291 chore: export deploy backend script 2024-08-08 18:16:28 +02:00
Christian Fehmer 2d24fc323e
fix: remove tailing slashes from new endpoint urls (@fehmer) (#5745)
!nuf
2024-08-08 18:12:50 +02:00
Miodec c2d08096ed impr: export cf purge script
!nuf
2024-08-08 17:07:13 +02:00
Miodec d57e318cf1 fix: sh scripts sometimes not finding .env file
!nuf
2024-08-08 17:07:13 +02:00
Miodec cdfcc9e663 fix: incorrect paths
!nuf
2024-08-08 16:27:47 +02:00
Jack 1eebf748ba
refactor: move release code to a package (@miodec) (#5743) 2024-08-08 16:16:01 +02:00
Christian Fehmer f6ec006507
impr: use tsrest for psa endpoints (@fehmer) (#5712)
!nuf
2024-08-08 15:10:26 +02:00
dependabot[bot] dfdf3fc6cd
chore(deps-dev): bump typescript from 5.3.3 to 5.5.4 (@dependabot) (#5734) 2024-08-08 12:44:22 +02:00
Christian Fehmer 460f803bca
impr: use tsrest for admin endpoint (@fehmer) (#5713)
!nuf
2024-08-08 12:41:07 +02:00
dependabot[bot] aac2ef1313
chore(deps-dev): bump rimraf from 5.0.9 to 6.0.1 (@dependabot) (#5731)
Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.9 to 6.0.1.
- [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/rimraf/compare/v5.0.9...v6.0.1)

---
updated-dependencies:
- dependency-name: rimraf
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 12:11:05 +02:00
Nad Alaba 738574ed33
impr(pace caret): add tags pb mode (@NadAlaba) (#5715)
* impr(pace caret): add tags pb mode (@NadAlaba)

* update modes notice when clear tags from commandline

* remove all mode because it grabs only 1k results

* short circuit tag.active

* update setting name

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-02 21:50:56 +02:00
amarnathsama 8c7ece3721
impr(settings): replace sound volume with a slider (@amarnathsama) (#5702)
* replaced sound volume settings with a slider

* used SettingsGroup instead of custom class, minor css change

* use common structure, remove css

* notify if sound volume is out of range

* command input goes from 0 to 1

* fix test

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-02 21:15:40 +02:00
Nad Alaba feaff239f2
build(contracts): fix output paths for windows (@NadAlaba) (#5700) 2024-08-01 13:32:16 +02:00
Christian Fehmer 8a09acd8d5
impr: use tsrest for ape-keys endpoint (@fehmer) (#5706)
!nuf
2024-08-01 13:29:25 +02:00