5sControl / 5sControl/5s-frontend
[1h] The work start/end time may not be set for the employee
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Description:
Время начала/окончания работы может быть не установлено для работника в его карточке
Steps to reproduce:
1. Войти в систему как Админ
2. Нажать раздел Employees
3. Нажать иконку добавления нового работника
4. Заполнить поля Login, Password, Email, Employee's last name, Employee's first name
5. Нажать поле Employee role
6. Выбрать вариант worker
7. Нажать кнопку Save
Actual result:
создаётся карточка нового работника, в полях Work start time/Work end time запись "Time not set"
Expected result:
поля Work start time/Work end time обязательны для заполнения при создании нового работника с ролью Рабочий
Attachments:
https://github.com/user-attachments/assets/5c3304fe-2b58-4aa8-bc32-350ed7858e42
Environment
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 133.0.6943.137
Hướng dẫn đóng góp
Hướng nghiên cứu
The issue is about form validation for employee creation. Look at the component handling the employee creation form, likely in a file like `src/components/EmployeeForm.tsx` or similar. Identify the fields for work start/end time and add required validation for the 'worker' role. Check existing validation logic and ensure the form prevents submission when these fields are empty. Test by creating a new employee with the worker role.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100