monkeytype/frontend
Aman Pal c76f8dc664
fix: add input validation for new filter preset modal (@amandevelops) (#7073)
### Description

Added input validation for `New filter preset` modal in frontend and
display appropriate indicators in realtime

#### Updated UI
<img width="610" height="333" alt="Screenshot From 2025-11-03 02-08-40"
src="https://github.com/user-attachments/assets/0f0f3628-5e61-4de9-8100-d96475f8bf08"
/>

<img width="610" height="333" alt="Screenshot From 2025-11-03 02-08-26"
src="https://github.com/user-attachments/assets/df0fd478-7d54-4a99-b7ed-198f1f9ebae6"
/>


### 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`
- [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 #7063

<!-- 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-11-12 12:30:04 +01:00
..
__tests__ chore: upgrade to vite 7 (@miodec) (#7051) 2025-10-27 17:17:21 +01:00
docker chore: bump node version 2025-10-31 14:18:59 +01:00
scripts chore: language integrity check (@fehmer) (#7074) 2025-11-07 16:12:35 +01:00
src fix: add input validation for new filter preset modal (@amandevelops) (#7073) 2025-11-12 12:30:04 +01:00
static impr(quotes): add English quotes from The Time Traveler's Wife: Novel by Audrey Niffenegger (@prathampt) (#7048) 2025-11-12 12:11:50 +01:00
.eslintrc.cjs chore(eslint): add rule to protect against accessing __testing outside of test files 2025-09-01 14:25:58 +02:00
.firebaserc_example chore: add missing example file 2023-08-21 11:16:10 +02:00
.oxlintrc.json chore: change oxlint config to jsonc 2025-09-11 22:04:48 +02:00
firebase.json chore: output version to version.json 2024-07-26 18:17:08 +02:00
package.json chore: language integrity check (@fehmer) (#7074) 2025-11-07 16:12:35 +01:00
tsconfig.json chore: language integrity check (@fehmer) (#7074) 2025-11-07 16:12:35 +01:00
vite.config.dev.js chore: upgrade to vite 7 (@miodec) (#7051) 2025-10-27 17:17:21 +01:00
vite.config.js chore: language integrity check (@fehmer) (#7074) 2025-11-07 16:12:35 +01:00
vite.config.prod.js ci: fix generate version plugin hiding previous errors (@fehmer) (#7060) 2025-10-29 11:56:49 +01:00
vitest.config.ts chore: language integrity check (@fehmer) (#7074) 2025-11-07 16:12:35 +01:00