5sControl / 5sControl/5s-frontend

[5h] Зона выходит за пределы рабочей области камеры

Open Beginner friendly
#827 0 comments 0 reactions 1 assignee Assigned to @ThanhDoIVan View on GitHub
bug Front
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

**Precondition**

ОС: macOS

Браузер: Google Chrome

**Steps**

Авторизоваться в системе под учётной записью admin.
Перейти на вкладку Configuration.
Выбрать вкладку Camera.
Выбрать камеру для редактирования.
Нажать кнопку "+Add Zone".
Выделить зону на экране камеры.
Кликнуть один раз на созданную зону для её трансформирования или перемещения.
Переместить зону за пределы видимой рабочей области камеры.

**Expected Result**

Должно появиться уведомление о том, что зона выходит за пределы экрана.
Сохранение изменений должно быть недоступно, если зона выходит за пределы рабочей области камеры.

**Actual Result**

Зона сохраняется за пределами рабочей области камеры без уведомления об ошибке.

Attachments
![Зона на пределами экрана камеры ](https://github.com/user-attachments/assets/a440be4f-0969-45d8-95b7-7832ed305347)

Contributor guide

Open the contributing guide

Research direction

Look for the camera configuration UI components, likely under a 'Configuration' or 'Camera' section. Find the zone creation and editing logic, which should include validation for the zone boundaries against the camera's visible workspace. The fix involves adding a check to prevent saving when the zone is outside the workspace and showing a notification. Test by replicating the steps in the issue.

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
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.