From 20f18d8890f286f800d640d9d580dcdd8a5a80aa Mon Sep 17 00:00:00 2001 From: Aram Petrosyan Date: Sun, 8 Mar 2026 19:48:06 +0400 Subject: [PATCH] fix(insights): dynamic hour labels in hourly breakdown chart Replace fixed hour labels (12am, 6am, 12pm, 6pm, 11pm) with dynamic labels derived from hourlyData. Now displays every even hour (12am, 2am, 4am, etc.) for better alignment with the chart bars. Made-with: Cursor --- .../src/components/insights/bento-dashboard.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/insights/bento-dashboard.tsx b/frontend/src/components/insights/bento-dashboard.tsx index 21bc38d..7311310 100644 --- a/frontend/src/components/insights/bento-dashboard.tsx +++ b/frontend/src/components/insights/bento-dashboard.tsx @@ -114,13 +114,13 @@ function HourlyBreakdownChart({ })} - {/* Hour labels */} -
- 12am - 6am - 12pm - 6pm - 11pm + {/* Hour labels - even hours only (12am, 2am, 4am, ...) */} +
+ {hourlyData.filter((_, i) => i % 2 === 0).map((hour) => ( +
+ {hour.HourLabel} +
+ ))}
);