From 525c4f981208766bb248a3d9274e38f7650259d7 Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Sat, 25 Apr 2026 19:10:00 -0400 Subject: [PATCH] fix(ui): address PR-Agent feedback on health redesign PR-Agent flagged two real bugs at score 84: 1. Accessibility (HealthPriorityCard): the priority card header was a clickable
with onClick, making expand/collapse mouse-only. Promote it to a
- -
-
-

{check.name}

- {hasContent && ( -
- -
- )} -
-

- {check.message} -

-
- + {headerInner} + + ) : ( +
{headerInner}
+ )} {isExpanded && ( diff --git a/ui/src/components/health/health-status-ribbon.tsx b/ui/src/components/health/health-status-ribbon.tsx index 41b07ce4..320ece6d 100644 --- a/ui/src/components/health/health-status-ribbon.tsx +++ b/ui/src/components/health/health-status-ribbon.tsx @@ -25,7 +25,11 @@ function formatRelativeTime( const seconds = Math.floor((Date.now() - timestamp) / 1000); if (seconds < 5) return t('health.justNow'); if (seconds < 60) return t('health.secondsAgo', { count: seconds }); - return t('health.minutesAgo', { count: Math.floor(seconds / 60) }); + const minutes = Math.floor(seconds / 60); + if (minutes < 60) return t('health.minutesAgo', { count: minutes }); + // Roll up to hours so a stale "120 minutes ago" reads as "2 hours ago" + const hours = Math.floor(minutes / 60); + return t('health.hoursAgo', { count: hours }); } export function HealthStatusRibbon({