5sControl / 5sControl/5s-frontend

[1.5h] Unnecessary fields in the employee card with the Admin role

Aperta
#1,092 0 commenti 0 reazioni 1 assegnatario Rivendicata da @SergBily Vedi su GitHub
0.9.0 bug ESMIL Office ready QA done Stage ready
Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.