5sControl / 5sControl/5s-frontend

[5h] In Orders view, graphs are not drawn at the same starting and ending time

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

描述

Пользователь находится в Orders View

**Steps:**

1. Вписать стартовое время 8:00
2. Вписать конечное время 8:00
3. Проверить отображение графиков

**Actual result:**
При одинаковом значении стартового и конечного времени , график не отображается

**Expected Result:**
Установить разницу в начальном и конечно времени для каждого параметра Zoom индивидуально (1x- 4 часа , 2 x- 2 часа , 4x - 1 час , 8x - 30 минут , 16x - 15 мин , 32x - 8 минут)

Files:

贡献指南

打开贡献指南

调研方向

Look for the Orders View component and the chart rendering logic, likely in a file like `OrdersView.tsx` or a chart component. Find where the start and end time inputs are handled and where the zoom levels (1x, 2x, etc.) are defined. The fix involves setting a minimum time difference for each zoom level when the start and end times are equal. Check for existing tests related to chart time ranges.

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

评估

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

把新 issue 发到你的邮箱

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