5sControl / 5sControl/5s-frontend

there is no abbreviation of the hour in block of the report

未关闭
#556 0 条评论 0 个 reaction 已指派 1 人 已被 @AlexGurski 认领 在 GitHub 查看
bug
主要语言
TypeScript
星标
3
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

Отсутствует сокращение "h" слова "hours" в блоке репорта на странице "Dashboard" вкладка "Reports"

**Precondition:**
1. Пользователь авторизован
2. Камера авторизована
3. Алгоритм (например, machine control, кроме MinMax) назначен на камеру
4. Есть репорты у которых продолжительность более 60 минут

****Environment:**
office: https://grand-alien-apparently.ngrok-free.app/dashboard
kaunas hp: https://complete-boa-loudly.ngrok-free.app
Сhrome Версия 119

**STR:****
1. Кликнуть по вкладке "Dashboard" в боковом меню
2. Кликнуть по вкладке "Reports" страницы "Dashboard"
3. Найти репорт с продолжительностью от 60 минут

**ER:**
Формат времени репорта _1h:_38min 0s

**AR:**
Формат времени репорта 1:38min 0s

**Attachments:**

![Image](https://github.com/5sControl/5s-frontend/assets/122295113/e76ddb20-cca1-4847-b7a0-e72f7d730d56)

贡献指南

打开贡献指南

调研方向

Look for the report duration formatting logic in the frontend code, likely in a component or utility file handling the Dashboard/Reports tab. The screenshot shows the UI element; inspect the code that generates the time string '1:38min 0s' and modify it to include the 'h' abbreviation for hours. Check for existing time formatting functions or i18n keys. Verify the change by running the app and checking a report with duration over 60 minutes.

由索引模型根据 Issue 内容生成。

评估

技术栈
react, typescript
领域
frontend, internationalization
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。