Commit graph

12306 commits

Author SHA1 Message Date
Miodec
ca247f3f93 align 2025-09-24 18:55:13 +02:00
Miodec
c6e09ac50d reorder 2025-09-24 18:55:13 +02:00
Miodec
2aacc7831b small, gray icon 2025-09-24 18:55:13 +02:00
Miodec
78305bfdda balloons, icons 2025-09-24 18:55:13 +02:00
Miodec
584eb743fa tweaks 2025-09-24 18:55:13 +02:00
Christian Fehmer
42fedbdaec new loading 2025-09-24 18:55:13 +02:00
Christian Fehmer
d821643dbb fixes 2025-09-24 18:55:13 +02:00
Christian Fehmer
5c23955d9d add friend on profile page, keep list of friends in snapshot 2025-09-24 18:55:13 +02:00
Christian Fehmer
95c46ce1cf hide pending requests if empty 2025-09-24 18:55:13 +02:00
Christian Fehmer
e97d58a8e4 show loading, hide old data 2025-09-24 18:55:13 +02:00
Christian Fehmer
ab7ed3dfa3 remove refresh button 2025-09-24 18:55:13 +02:00
Christian Fehmer
2305c071ed fix styles 2025-09-24 18:55:13 +02:00
Christian Fehmer
ffd5e45f91 fix styles 2025-09-24 18:55:13 +02:00
Christian Fehmer
16bd511c78 fix styles 2025-09-24 18:55:13 +02:00
Christian Fehmer
9d239e53f6 format age 2025-09-24 18:55:13 +02:00
Christian Fehmer
9ca74b426e add blocked users to account settings 2025-09-24 18:55:13 +02:00
Christian Fehmer
b4c64fa06e fix some styles 2025-09-24 18:55:13 +02:00
Christian Fehmer
eaf64c6eec add tooltips to friends list 2025-09-24 18:55:13 +02:00
Christian Fehmer
c5da69a7a4 fix schema split 2025-09-24 18:55:13 +02:00
Christian Fehmer
6b118663d1 fixes 2025-09-24 18:55:13 +02:00
Christian Fehmer
cf0962f8bf add sortedTable with limit 2025-09-24 18:55:13 +02:00
Christian Fehmer
e98c1d021a move sortable table css to core 2025-09-24 18:55:13 +02:00
Christian Fehmer
4e91285844 extract SortedTable 2025-09-24 18:55:13 +02:00
Christian Fehmer
8ee4cd179e add sorting to friends list 2025-09-24 18:55:13 +02:00
Christian Fehmer
97cb569f85 friends list first draftw 2025-09-24 18:55:13 +02:00
Christian Fehmer
824deada25 style 2025-09-24 18:55:13 +02:00
Christian Fehmer
837051f386 feat: add friend requests frontend (@fehmer) 2025-09-24 18:55:13 +02:00
Christian Fehmer
7eda87cfd3
Merge branch 'master' into feature/friends-list 2025-09-24 17:20:48 +02:00
Jack
de847fc314
refactor(input validation): rework getting current validation status (@miodec) (#6988)
Rename to diffrentiate between the predicate `isValid` and the element
`isValid`
Return `ValidationResult` instead of just a boolean
Update usage to the new format
Move config specific `resetIfEmpty` to the `ConfigInputOptions` type
2025-09-24 16:00:37 +02:00
Miodec
f025b121cb impr(save custom text modal): add validation for custom text name input 2025-09-24 14:46:19 +02:00
Miodec
42f6a16c62 impr(modes-notice): escape custom text name for safe HTML rendering
!nuf
2025-09-24 14:45:13 +02:00
Miodec
9e5e4831a8 impr(input-validation): add trigger validation function
!nuf
2025-09-24 14:35:46 +02:00
Miodec
505049338f chore(about): escape supporters and contributors 2025-09-24 12:31:55 +02:00
Miodec
0d7d68f8b4 test: add unit tests for escapeHTML 2025-09-24 12:30:58 +02:00
Miodec
5da0713209 perf: speed up escapeHTML by ~3x 2025-09-24 12:28:09 +02:00
Eduardo Paul
a846d192d1
impr(quotes): add Portuguese quotes (@eduardopaul) (#6985)
These are some beautiful quotes in Portuguese by Machado de Assis.

> Entendeu o céu que devia regar com as suas lágrimas o solo da formosa
Petrópolis.
- "The sky understood that it should water the soil of the beautiful
Petrópolis with its tears."

> Olhos de ressaca? Vá, de ressaca. É o que me dá ideia daquela feição
nova. Traziam não sei que fluido misterioso e enérgico, uma força que
arrastava para dentro, como a vaga que se retira da praia, nos dias de
ressaca.
- "Eyes of a riptide? Yes, of a riptide. That’s the feeling I get from
that new expression. They carried some mysterious and energetic fluid, a
force that pulled inward, like the wave that draws back from the shore
after a storm."

> Apesar de generosa, é exigente, e quer da parte dos seus afilhados
algum esforço próprio. A fortuna não é Danaide. Quando vê que um tonel
esgota a água que se lhe põe dentro vai levar os seus cântaros a outra
parte.
- "Despite being generous, she is demanding and expects her godchildren
to make some effort of their own. Fortune isn’t a Danaid. When she sees
that a barrel runs out of water, she will take her jugs elsewhere."
2025-09-23 17:07:38 +02:00
Christian Fehmer
37418d0cf1
docs: update link to redis install guide (@fehmer) (#6984)
fixes #6983
2025-09-23 17:06:28 +02:00
Leonabcd123
a277bdd0d3
docs: fixed links on contributing.md not working from the main page (@Leonabcd123) (#6982)
### Description

Used absolute paths instead of relative to make sure that the links in
the contributing.md file always work.

Closes #6981 

Edit: just found #6848 which seemed to try and do the same thing, they
just didn't get the right solution, because they still used relative
paths.
2025-09-23 17:06:03 +02:00
Gabriel
a561076677
impr(quotes): add English quotes (@thesomewhatyou) (#6964)
### Description

Just added a few English quotes from some of my favorite movies. It
wasn't much, but I would love to see these quotes in Monkeytype.

### Checks

- [✓] Adding quotes?
- [N/A] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-09-23 17:04:32 +02:00
Lucas Bourneuf
3d819115eb
impr(quotes): add 4 new french quotes (@aluriak) (#6934)
Few quotes.

- *The man of science knows full well that only science has been able,
over the centuries, to bring him the time clock and the automatic
parking meter, without which no earthly happiness is possible.* (Pierre
Desproges)
- *A pre-revolutionary situation erupts when those at the top can no
longer rule, those at the bottom no longer want to be ruled, and those
in the middle switch sides to join those at the bottom.* (Lenine)
- *There are decades when nothing happens, and weeks when decades
happen.* (idem)
- *There are no supreme saviors Neither God, nor Caesar, nor Tribune,
Producers, let us save ourselves Let us decree our common salvation.*
(l'internationale, a famous french song)

Co-authored-by: Lucas Bourneuf <lucas.bourneuf@chu-brest.fr>
2025-09-23 16:56:48 +02:00
Lucas Bourneuf
df81d7ce97
impr(quotes): add 9 new english quotes (@aluriak) (#6935)
Adding Carl Sagan, internet culture, various well-known IT-related
citations, and 2 citations from my favorite writer of late.

Co-authored-by: Lucas Bourneuf <lucas.bourneuf@chu-brest.fr>
Co-authored-by: Miodec <jack@monkeytype.com>
2025-09-23 16:56:24 +02:00
Miodec
94006b7e1f chore: add reminder 2025-09-23 16:45:36 +02:00
Christian Fehmer
18c465e82d
impr: add validation for preset names (@fehmer) (#6969) 2025-09-23 16:41:06 +02:00
TheFrenchTechMan
c08572bd89
impr(quotes): Add English quotes (@TheFrenchTechMan) (#6961)
### Description

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

### Checks

- [X] Adding quotes?
- [X] 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 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.
- [ ] 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! :) -->
2025-09-23 16:40:09 +02:00
Miodec
1bf03e8dc2 refactor: use new util function 2025-09-22 13:13:01 +02:00
Miodec
02e92d0f3b impr: add debounced animation frame util
!nuf
2025-09-22 13:10:50 +02:00
Christian Fehmer
498bdf0442
Merge branch 'master' into feature/friends-list 2025-09-22 11:48:41 +02:00
Miodec
1479a26927 refactor: move resultVisible state to TestState 2025-09-21 15:44:39 +02:00
Miodec
2fc2c7bbe0 refactor: move testRestarting state to TestState 2025-09-21 15:44:39 +02:00
Ed-k
5275947f19
fix: Set result chart burst Y axis max after adding PB line (@Ed-k) (#6980)
### Description

The result chart burst axis maximum Y value needs to be updated after
adding the personal best line to keep the chart scale the same as the
wpm and raw lines.

### 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?
- 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 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.

<!-- 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 #
#6979
2025-09-20 21:12:06 +02:00