Commit graph

12580 commits

Author SHA1 Message Date
Leonabcd123
a9e5980fea Add closestParent 2025-12-21 16:11:00 +02:00
Leonabcd123
03eef0485e
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-21 15:06:41 +02:00
Seif Soliman
fd177c9ed4
chore: TypeError when deleting in zen (@byseif21) (#7282)
* fix error from race condition `Cannot read properties of null (reading
'remove')` when deletion in zen mode, added null check.

The active word could already be removed when the debounced update runs,
which caused a null error

---------

Co-authored-by: Jack <jack@monkeytype.com>
2025-12-21 11:50:10 +01:00
Miodec
a1240d3d7e refactor: clean up zen mode element removal 2025-12-21 11:28:26 +01:00
Jack
16b4ec88af
impr: add reset function to promiseWithResolvers (@miodec) (#7280)
Actual AI slop but if it works ?????

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-21 10:56:50 +01:00
Christian Fehmer
ef5ef0c427
feat(commandline): add sign out (@fehmer) (#7283) 2025-12-21 10:54:24 +01:00
Miodec
d11bdaa710 refactor: result saving code flow 2025-12-20 18:09:49 +01:00
Miodec
58b6162b11 chore: missing setInvalid calls 2025-12-20 18:09:49 +01:00
Miodec
11c2bff300 chore: reorder 2025-12-20 18:09:49 +01:00
Miodec
4fae28c0f6 chore: move result code to result file 2025-12-20 18:09:49 +01:00
Miodec
5f50628110 chore: remove unnecessary code 2025-12-20 18:09:49 +01:00
Miodec
2cba7576bd chore: move ui code to result 2025-12-20 18:09:49 +01:00
Miodec
1f4e616d74 refactor: move code around 2025-12-20 18:09:49 +01:00
Miodec
10f4a13c1f chore: move ui code out of the test-logic file 2025-12-20 18:09:49 +01:00
Leonabcd123
32e4794bca
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-20 18:17:47 +02:00
Christian Fehmer
dd2ec8c6b9
fix: dom-utils onChild calling handler for elements outside the parent (@fehmer) (#7279) 2025-12-20 17:17:09 +01:00
Leonabcd123
bdddeecfcb Remove getParent 2025-12-20 17:38:09 +02:00
Leonabcd123
163417dd22 Remove getFirstmatchingParent and replace it with closest 2025-12-20 17:36:52 +02:00
Leonabcd123
5cc8325baf Use currentTarget 2025-12-20 15:49:15 +02:00
Leonabcd123
992ba7c9d8 Use currentTarget 2025-12-20 15:39:07 +02:00
Leonabcd123
573b262e25 Use currentTarget 2025-12-20 15:29:39 +02:00
Leonabcd123
f052d7fb9f Use childTarget 2025-12-20 15:21:40 +02:00
Leonabcd123
85a955920b Use childTarget again 2025-12-20 15:11:56 +02:00
Leonabcd123
6f211e12bb Use childTarget 2025-12-20 15:06:47 +02:00
Leonabcd123
470ca0f1de
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-20 15:00:24 +02:00
Christian Fehmer
bd3cd75c94
refactor: add currentTarget back to regular listeners, add childTarget to onChild listeners (@fehmer) (#7273)
rework `onChild` to behave mostly like jQuery `.on` with selector.

- we remove `currentTarget` from the `onChild` event handler because
native events and jQuery events have different values for it
- the jQuery `currentTarget` is available with `childTarget` in our
events

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-12-20 13:41:11 +01:00
Miodec
86ed9c2570 chore: ignore pnpm-lock 2025-12-20 11:05:27 +01:00
Arjun
1e2109bf60
impr(quotes): Add English quotes from XCOM: EU (@Zeden19) (#7264)
### Description

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

### Checks

- [ ] Adding/modifying Typescript code?
  - [ ] I have used `qs`, `qsa` or `qsr` instead of JQuery selectors.
- [X] 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?
- Make sure to follow the [languages
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md)
  - [ ] Add language to `packages/schemas/src/languages.ts`
- [ ] Add language to exactly one group in
`frontend/src/ts/constants/languages.ts`
  - [ ] 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 screenshots 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`
- [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.-->

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! :) -->
2025-12-20 11:04:34 +01:00
Alex Rusbridge
5093dbe128
fix(british-english): adds british english spelling for english-medical.json (@AlexRusbridge) (#7278)
### Description

Adds British English spelling for words found in the english-medical
word list.

- Hematology terms (`hemo-`/`hema-` -> `haemo-`/`haema-`)
- Blood condition suffixes (`-emia` -> `-aemia`)
- White blood cell terms (`leuko-` -> `leuco-`)
- Respiratory terms (`-pnea` -> `-pnoea`)
- Other notable conversions (common patterns like `-ize` and other
cases)

### Checks

- [ ] ~Adding/modifying Typescript code?~
- [ ] ~Adding quotes?comment) so we can verify their content.~
- [ ] ~Adding a language?~
- [ ] ~Adding a theme?~
- [ ] ~Adding a layout?~
- [ ] ~Adding a font?~
- [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.

---------

Co-authored-by: Jack <jack@monkeytype.com>
2025-12-20 10:15:55 +01:00
Leonabcd123
cd38248e3c
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-20 09:52:50 +02:00
Leonabcd123
8148b05dd6
fix(preset): Fix qsa warning on preset modal (@Leonabcd123) (#7277)
### Description

Use a more specific selector.
2025-12-19 23:40:48 +01:00
Jack
eb92e1af0d
impr: replace vite-plugin-checker with ~~vibe~~ (@miodec) (#7271)
vite plugin checker seems to happily spawn a new linting process per
file save, causing issues. This vibe coded solution kills the previously
running process. It also splits linting into two steps to get some fast
fail behavior.

I (AI) tried to merge it into one file but the overlay refused to show
that way.

!nuf
---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-19 22:29:56 +01:00
Leonabcd123
47712857f9
fix(blind-mode): make blind mode "on" text invisible (@Leonabcd123) (#7274)
### Description

Use `&ensp;` instead of the current, visible character.
2025-12-19 19:42:51 +01:00
Christian Fehmer
65e490c961
chore: use innerText on generate data modal (@fehmer) (#7276) 2025-12-19 19:42:34 +01:00
Leonabcd123
805c7ae7d9
fix(hide-extra-letters): extra letters with hideExtraLetters enabled causing caret problems (@Leonabcd123) (#7272)
### Description

Same solution as  #7254
2025-12-19 17:00:02 +01:00
Leonabcd123
b60ebc3857 Convert event.currentTarget to event.target 2025-12-19 14:53:42 +02:00
Christian Fehmer
ed4d2cd06c
Merge branch 'master' into bye-jquery-all-other-pages 2025-12-19 12:57:41 +01:00
Christian Fehmer
ca9dac17a7
refactor: remove currentTarget from dom-utils event handlers (@fehmer) (#7270) 2025-12-19 12:55:16 +01:00
Leonabcd123
d88d1a4ba9 Fix presets bug 2025-12-19 12:54:38 +02:00
Leonabcd123
6669cd60b5 Convert qs to qsa 2025-12-19 12:52:17 +02:00
Leonabcd123
aab7fa2ac3 Convert qs to qsa 2025-12-19 12:51:18 +02:00
Leonabcd123
82eaa84209 Fix tags bug 2025-12-19 12:44:29 +02:00
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