5sControl / 5sControl/5s-frontend

[3h] Некорректное поведение: Создание новой зоны работы алгоритма при выделении текста в поле "Name".

Open
#829 0 comments 0 reactions 1 assignee Assigned to @kirilbaskakov View on GitHub
bug ESMIL Front QA done v. 0.8
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Precondition**
Войти в систему под пользователем admin.

**Description**
При выделении текста в поле "Name" на вкладке камеры, система создаёт дополнительную зону работы алгоритма в левом верхнем углу экрана. Эта зона не сохраняется при нажатии кнопки "Save". Баг может привести к путанице в конфигурации зон и снижению точности работы алгоритма.

**Steps to Reproduce**
1.Перейти на вкладку Configuration.
2.Выбрать вкладку Camera.
3.Выбрать камеру для редактирования.
4.Нажать кнопку "+Add Zone".
5.Создать новую зону работы алгоритма
6.Ввести в поле "Name" текст не меньше 10-20 символов
7.Выделить введённый текст в поле "Name"

**Expected Result**
Текст в поле "Name" выделяется.
На экране камеры не создаётся дополнительная зона.

**Actual Result**
Текст в поле "Name" выделяется.
На экране камеры в левом верхнем углу создаётся новая зона работы алгоритма, которая исчезает после нажатия кнопки "Save".

Environment
ОС: macOS
Браузер: Google Chrome 127.0.6533.100

Attachments

https://github.com/user-attachments/assets/9355200e-f58a-41ce-9f50-e773d358e4fe

Contributor guide

Open the contributing guide

Research direction

The issue is about a camera configuration UI where text selection in a 'Name' field triggers an unintended algorithm zone creation. Look at the component handling the camera zone addition, likely in a file like CameraConfiguration.tsx or similar. Examine the event handlers for text selection and zone creation to see if they are incorrectly linked. The zone appears in the top-left corner and disappears on save, so check the zone state management and the save logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.