5sControl / 5sControl/5s-frontend

[2h] Error saving algorithm without "description" and "used in" fields

Open
#797 0 comments 0 reactions 1 assignee Claimed by @pkostukevich View on GitHub
bug ESMIL Front
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Desktop

Precondition:
Пользователь находится в конфигурации в модуле алгоритмоы

Steps:

Нажать на кнопку добавления нового алгоритма / перейти в режим редактирования существующего алгоритма
Заполнить поля
Сохранить

Actual result:
Изменения не принимаются, если значения description и used in не заданы вручную

Expected Result:
Возможность сохранения дефолтного значения used in и пустого значения description, если данные значения не заданы пользователем.
Вывод уведомления на экран в случае ошибки

![Image](https://github.com/user-attachments/assets/5d24737f-571d-49a2-baee-e2ca4c03d745)

Contributor guide

Open the contributing guide

Research direction

Look for the algorithm configuration module, likely in a component handling algorithm creation/editing. Find the form validation logic for the 'description' and 'used in' fields. The fix involves allowing empty/default values and ensuring error notifications are displayed. Check for existing tests related to algorithm saving to verify the behavior.

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
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.