5sControl / 5sControl/5s-frontend
fix bug in create new item
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions: Пользователь авторизован, добавлена камера 192.168.1.163, к камере подключён алгоритм MinMax.
Summury: Inventory, для добавления нового item необходимо добавить камеру и подключить алгоритм через страницу configuration.
1. Открыть вкладку Inventory;
2. Ввести item name, current stock level, select a camera;
3. Выбрать камеру 192.168.1.168.
Result: Item не добавлен, для добавления нового item необходимо добавить камеру и подключить алгоритм через страницу configuration.
Expecte result: Item добавлен.
Contributor guide
Research direction
The issue describes a bug in the Inventory feature where selecting a camera (192.168.1.168) with a MinMax algorithm fails to add a new item. Start by examining the frontend components for Inventory item creation, likely in a directory like `src/components/Inventory` or `src/pages/Inventory`. Look for the form handling camera selection and algorithm integration. Check the API calls made when submitting the form and verify the payload matches backend expectations. Testing the fix will require a local setup with a connected camera and algorithm.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100