5sControl / 5sControl/5s-frontend
fix bug messages about required fields don't appear at the same time
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Сообщения об обязательности полей отображаются не одновременно при отправке пустой формы
**Environment:**
win 11
Chrome 114
**Precondition:**
пользователь авторизован
открыта форма редактирования компании на странице "Company"
форма редактирования компании пустая
**STR:**
1. Кликнуть по кнопке "Save"
**ER:**
Сообщения "Name field is required", "Email field is required" появляются одновременно
**AR:**
Сообщения "Name field is required" появляется при пустой форме или при заполнении поля почты, "Email field is required" появляется при заполненном поле "Name", под полем почты сообщение об ошибке "Name field is required"
**Attachments:**
https://drive.google.com/file/d/1zfgI7eKJHa01b0rAnZ4g2b8zQFrZQMMe/view?usp=drive_link
Contributor guide
Research direction
Look at the company edit form on the 'Company' page, likely in a components directory. The validation logic for required fields (Name and Email) is triggering messages incorrectly. Check the form's validation state and error display logic. Run the app locally to reproduce the issue from the steps, then ensure both required messages appear simultaneously on form submission.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100