5sControl / 5sControl/5s-frontend
[1.5h] Unnecessary fields in the employee card with the Admin role
- 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:
Ненужные поля в карточке работника с ролью Админ
Precondition:
добавить нового работника и выбрать для него роль Админ
Steps to reproduce:
1. Войти в систему как Админ
2. Нажать раздел Employees
3. Открыть карточку работника с ролью Админ
Actual result:
в карточке админа отображаются ненужные поля Work start time/Work end time
Expected result:
поля Work start time/Work end time отображаются только в карточках работников с ролью Рабочий
Attachments:
https://github.com/user-attachments/assets/8f748d27-3b2f-4554-954a-597c2a75fae1
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
Find the employee card component, likely in the Employees section. Look for conditional rendering logic based on the user's role (Admin vs. Worker). The fields 'Work start time' and 'Work end time' should be hidden when the role is Admin. Check the test or storybook for the component to verify the change.
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
- 55/100