5sControl / 5sControl/5s-frontend
[2h] Order add: Incorrect error when creating an order with existing ID
- Lingua principale
- TypeScript
- Stelle
- 3
- Fork
- 1
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Precondition:
Go to https://office.5scontrol.com/
Login as admin
Description:
При создании заказа с присвоением ему существующего номера в базе, появляется ошибка 400
Step to reproduce:
1. Зайти в заказы
2. Кликнуть иконку [Добавить заказ]
3. Ввести существующий номер заказа и кликнуть сохранить
Expected result:
Поле "Номер заказа" подсвечивается красным. Поде полем появляется текст "Такой заказ уже существует". Кнопка [Сохранить] не кликабельна.
Actual result:
Переход на страницу со списком заказов. Появляется попап с ошибкой 400
Attachment:
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100