5sControl / 5sControl/5s-frontend

Edit name order: Gaps in field

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

Description

Precondition:
Go to https://office.5scontrol.com\mobile
Login as admin

Description:
When creating an admin, you must assign "Workspace"

Step to reproduce:
1. Go to section "Заказы"
2. Go to tab "Не начат"
3. Choose any order
4. Click to icon "Edit order"
5. Enter the name of the order with spaces at the beginning and end of the line

Expected result:
Field is highlighted in red, appears tooltip "Недопустимые символы"

Actual result:
Order save

Attachment:
Image

Contributor guide

Open the contributing guide

Research direction

Look for the order editing form component and its validation logic, likely in a file like EditOrderForm.tsx or similar. Find where the order name input is handled and add trim validation or check for leading/trailing spaces. Test by reproducing the steps in the UI to ensure the 'Недопустимые символы' tooltip appears.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.