5sControl / 5sControl/5s-frontend
[4h] The implementation time of an operation in progress is counted as 0 hours
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Description
Время выполнения операции, находящейся в работе, считается как 0 часов.
Precondition:
войти в систему в роли работника, отсканировать QR-код, выйти из системы, не завершая операцию
Steps to reproduce:
1. Войти в систему под учётными данными администратора
2. Нажать Orders
3. Выбрать заказ с ранее отсканированной работником операцией
4. Выбрать отсканированную операцию в работе
5. Нажать на имя работника, отсканировавшего и не завершившего операцию
6. Баг появляется
Actual result:
время выполнения операции считается как 0 h, пока работник или администратор не завершит данную операцию
Expected result:
при просмотре времени выполнения работником операции считается фактическое время выполнения на момент просмотра
Attachments:
https://github.com/user-attachments/assets/4c63cf5b-1e53-46c7-83cf-95d9459cb1d7
Environment
Device: Samsung S20+
OS: Android 13
Browser: Google Chrome
Version: 131.0.6778.261
コントリビューションガイド
調査の方向性
The issue describes a time calculation bug for in-progress operations. Look at the order and operation components, likely in the Orders section. Find where operation duration is calculated and displayed, and check the logic for handling active, uncompleted operations. The fix involves updating the duration calculation to use the current time instead of zero until completion.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100