5sControl / 5sControl/5s-frontend
[1.5h] Unnecessary fields in the employee card with the Admin role
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100