Commit graph

12538 commits

Author SHA1 Message Date
Leonabcd123
d7bbd3ccb2 Fix funbox bug 2025-12-19 12:40:04 +02:00
Leonabcd123
1f1e554c1b
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-19 11:44:04 +02:00
Leonabcd123
72fc330f7d Remove redundant assignment 2025-12-19 11:42:29 +02:00
Leonabcd123
7a9b141e65 Spell balloon correctly 2025-12-19 11:40:22 +02:00
Leonabcd123
fb35c2f3db Use qs 2025-12-19 11:34:24 +02:00
Leonabcd123
e96bf42265 Use qsa 2025-12-19 11:26:49 +02:00
Leonabcd123
dd1b9d4d5e Get data-id 2025-12-19 11:23:09 +02:00
Leonabcd123
92acf8dc9d Useless 2025-12-19 11:21:01 +02:00
Leonabcd123
0e0d4c4570 Use qsa 2025-12-19 11:20:07 +02:00
Leonabcd123
3d6744d309 Update parent 2025-12-19 11:17:28 +02:00
Leonabcd123
84db41a6cc Replace onDOMReady with onWindowLoad 2025-12-19 11:14:51 +02:00
Miodec
96e30b141e chore: bump oxc packages 2025-12-19 09:56:37 +01:00
Leonabcd123
f8e74405e6 Remove onChild from ElementsWithUtils 2025-12-19 10:23:07 +02:00
Leonabcd123
ed806b6e50 Remove setValue in ElementsWithUtils 2025-12-19 10:19:29 +02:00
Leonabcd123
fd4b9c9121 Fix leaderboards bug 2025-12-19 08:59:04 +02:00
Leonabcd123
f46090fd6c Rename getParents to getFirstMatchingParent 2025-12-18 21:51:54 +02:00
Leonabcd123
cf4d7ab1fd Use native type 2025-12-18 21:49:20 +02:00
Leonabcd123
9acadeb1f8 Add back type check 2025-12-18 21:46:38 +02:00
Leonabcd123
48b1af0699
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-18 20:36:44 +02:00
Leonabcd123
5cc9316d00 Fix bug 2025-12-18 20:31:54 +02:00
Christian Fehmer
8a2a3e4d23
impr: add copy details to notification history (@fehmer) (#7262)
Add details to notifications.

If details are available show share icon on hover in the notification
history. On click the full content is copied to the clipboard. With this
is easier for an user to share the full details of an error on github or
discord.

<img width="377" height="107" alt="image"
src="https://github.com/user-attachments/assets/f22638a1-bafd-4708-8d8a-0ec48db10f1d"
/>

<img width="377" height="107" alt="image"
src="https://github.com/user-attachments/assets/d4a66860-f99f-4ac1-992c-81e31ab13eba"
/>



```json
{
    "title": "Error",
    "message": "Failed to save config",
    "details": {
        "status": 422,
        "validationErrors": [
            "Unrecognized key(s) in object: 'invalid'"
        ]
    }
}
```

---------

Co-authored-by: Jack <jack@monkeytype.com>
2025-12-18 19:27:24 +01:00
Miodec
484ab1bd5f chore: remove jquery from toggleSettingsGroup 2025-12-18 19:21:40 +01:00
Leonabcd123
8de6f76158 Convert qs to qsa 2025-12-18 20:20:13 +02:00
Leonabcd123
0ab19f2654 Convert qs to qsa 2025-12-18 20:18:50 +02:00
Leonabcd123
e6853bc29f
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-18 19:48:23 +02:00
Leonabcd123
7f09d4e8ee Finish removing jquery from settings page 2025-12-18 19:48:02 +02:00
Leonabcd123
729bc46ddc Remove almost all jquery from account page 2025-12-18 19:23:14 +02:00
Leonabcd123
3e498e0aa8 Remove jquery from settings page 2025-12-18 18:56:17 +02:00
Leonabcd123
9d709c7c7c
impr(quote search): add exact search quotes (@Leonabcd123) (#7261)
### Description

Make text wrapped in `""` required when searching for quotes (meaning
only quotes that contain this exact text will appear in the results).
This allows case insensitivity (so "hello" will match "Hello").
2025-12-18 17:22:44 +01:00
Miodec
8d1eefc5ba fix: account icon alignment when not using an avatar 2025-12-18 16:36:12 +01:00
Leonabcd123
e695b899ef Remove jquery from leaderboards page 2025-12-18 15:45:26 +02:00
Md Moushuf Alam
9e93af465f
refactor: replace jQuery with DOM utils for alt and shift key trackers (@MoushufAlam) (#7266)
### Description
Replaces jQuery usage with DOM utils for alt and shift key trackers.
Scope intentionally kept small per contributing guidelines.


### Checks

- [x] Adding/modifying Typescript code?
  - [x] I have used `qs`, `qsa` or `qsr` instead of JQuery selectors.
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] 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.-->

Related to #7186 

<!-- 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! :) -->
2025-12-18 11:43:47 +01:00
Md Moushuf Alam
d6a6dad552
refactor: replace jQuery with DOM utils in caps lock warning (@MoushufAlam) (#7265)
### Description

Replaces jQuery usage with DOM utils for the caps lock warning.
Scope intentionally kept small per contributing guidelines.

### Checks

- [x] Adding/modifying Typescript code?
  - [x] I have used `qs`, `qsa` or `qsr` instead of JQuery selectors.
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] 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.-->
Related to #7186 
<!-- 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! :) -->
2025-12-18 09:51:07 +01:00
Miodec
c222098a05 fix: previous commit nuking the timer 2025-12-17 20:53:40 +01:00
Seif Soliman
0e5dd85db2
fix(lazy-mode): respect manual toggle after unsupported language (@byseif21) (#7260)
### Description

* lazy mode status “stuck” after switching to a language that does not
support it then goes back to the one that supports it.


* to reproduce
After seeing the “This language does not support lazy mode” warning,
switch back to the one that was working with and manually toggling lazy
mode. It would not update to the selected option.
2025-12-17 20:41:55 +01:00
Miodec
bd9951931e fix: timer resetting to initial value when test finishes
closes #7263
2025-12-17 20:30:16 +01:00
100daysummer
74bafad7d5
impr(language): add bulgarian 1k (@100daysummer) (#7232)
### Description

This commit expands the two bulgarian wordlists - bulgarian.json and
bulgarian_latin.json

### Checks

- [ ] Adding/modifying Typescript code?
  - [ ] I have used `qs`,`qsa` or `qsr` instead of JQuery selectors.
- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [x] Adding a language?
- Make sure to follow the [languages
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md)
  - [x] Add language to `packages/schemas/src/languages.ts`
- [x] Add language to exactly one group in
`frontend/src/ts/constants/languages.ts`
  - [x] Add language json file to `frontend/static/languages` 
- [ ] Adding a theme?
- Make sure to follow the [themes
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/THEMES.md)
  - [ ] Add theme to `packages/schemas/src/themes.ts`
  - [ ] Add theme to `frontend/src/ts/constants/themes.ts`
  - [ ] Add theme css file to `frontend/static/themes`
- [ ] Add some screenshot of the theme, especially with different test
settings (colorful, flip colors) to your pull request
- [ ] Adding a layout?
- [ ] Make sure to follow the [layouts
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LAYOUTS.md)
  - [ ] Add layout to `packages/schemas/src/layouts.ts`
  - [ ] Add layout json file to `frontend/static/layouts` 
- [ ] Adding a font?
- Make sure to follow the [themes
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/FONTS.md)
  - [ ] Add font file  to `frontend/static/webfonts`
  - [ ] Add font to `packages/schemas/src/fonts.ts`
  - [ ] Add font to `frontend/src/ts/constants/fonts.ts`
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Jack <jack@monkeytype.com>
2025-12-17 19:32:49 +01:00
Md Moushuf Alam
97b9085f7e
refactor: replace jquery with dom utils in scroll-to-top button (@MoushufAlam) (#7257)
### Description

Replaces jQuery usage with dom utils in the scroll-to-top button.
Scope intentionally kept small per contributing guidelines.

### Checks

- [x] Adding/modifying Typescript code?
  - [x] I have used `qs`, `qsa` or `qsr` instead of JQuery selectors.
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] 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.-->

Related to #7186

<!-- 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! :) -->
2025-12-17 19:19:43 +01:00
Seif Soliman
96169a149e
fix(caret): align caret correctly in RTL tape mode (@byseif21) (#7259)
* In RTL tests, enabling tape mode causes the main caret to be
misaligned from the start of the test and remain offset while typing.
The tape margin was always calculated from the left side, which is
correct for LTR but incorrect for RTL layouts.

fix

* we should have mirrored the margin from the right side.
2025-12-17 19:18:46 +01:00
Christian Fehmer
3f21023fc1
chore: update vitest/testcontainer versions, try to fix container teardown on macos (@fehmer) (#7248)
Co-authored-by: Miodec <jack@monkeytype.com>
2025-12-16 18:11:55 +01:00
Leonabcd123
71e78cd52d
docs: improve language in pull request template (@Leonabcd123) (#7252) 2025-12-16 17:55:27 +01:00
Miodec
d990b42c1e chore: update contributors list 2025-12-16 17:50:03 +01:00
Leonabcd123
b7c06d1ddc
fix(blind mode): Extra letters in blind mode causing caret problems (@Leonabcd123) (#7254)
### Description

- Enable blind mode
- Write extra letters
- Caret will jump to above the first letter in the word
2025-12-16 17:47:38 +01:00
Leonabcd123
9416ed2cab
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-16 13:33:06 +02:00
Christian Fehmer
36b59ae8ee
impr: add multiple elements found warning in dom utils (@fehmer) (#7242)
Co-authored-by: Miodec <jack@monkeytype.com>
2025-12-16 12:30:25 +01:00
Leonabcd123
a17884c49b Remove JQuery from friends page 2025-12-16 13:16:50 +02:00
Leonabcd123
55db4dbea4 Convert qs to qsa 2025-12-16 13:07:22 +02:00
Leonabcd123
59c15f714d Add setValue for ElementsWithUtils 2025-12-16 12:07:35 +02:00
Leonabcd123
f406502898
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-16 11:58:32 +02:00
Miodec
65aadb7e89 fix: out of focus warning sometimes showing even though words were focused 2025-12-16 10:55:37 +01:00