5sControl / 5sControl/5s-frontend
[4h] The implementation time of an operation in progress is counted as 0 hours
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 1
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- react, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100