5sControl / 5sControl/5s-frontend

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

オープン
#1,092 コメント 0 件 リアクション 0 件 担当者 1 名 @SergBily が担当を希望しています GitHub で見る
0.9.0 bug ESMIL Office ready QA done Stage ready
主要言語
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。