5sControl / 5sControl/5s-frontend
[2h] Order add: Incorrect error when creating an order with existing ID
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Precondition:
Go to https://office.5scontrol.com/
Login as admin
Description:
При создании заказа с присвоением ему существующего номера в базе, появляется ошибка 400
Step to reproduce:
1. Зайти в заказы
2. Кликнуть иконку [Добавить заказ]
3. Ввести существующий номер заказа и кликнуть сохранить
Expected result:
Поле "Номер заказа" подсвечивается красным. Поде полем появляется текст "Такой заказ уже существует". Кнопка [Сохранить] не кликабельна.
Actual result:
Переход на страницу со списком заказов. Появляется попап с ошибкой 400
Attachment:
Guía de contribución
Línea de trabajo
Find the order creation form component and the API call for adding an order. The validation for duplicate order IDs should happen before submission, likely in the form's onChange or onSubmit handler. Look for error handling of the 400 response and where the UI should show a field-specific error instead of a generic popup. Check existing validation patterns for other fields to replicate.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100