From b808d0e38e6685f05f043eb66b63545d2108e9c1 Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Thu, 14 May 2026 15:30:43 -0600 Subject: [PATCH] Color metric card percentage green/yellow/red based on target, keep NC count always red --- frontend/src/components/pages/CCPMetricsPage.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/pages/CCPMetricsPage.js b/frontend/src/components/pages/CCPMetricsPage.js index f0de15f..2c43374 100644 --- a/frontend/src/components/pages/CCPMetricsPage.js +++ b/frontend/src/components/pages/CCPMetricsPage.js @@ -132,22 +132,22 @@ function MetricBreakdownPanel({ metrics }) { {displayMetrics.map(m => { const pct = m.total > 0 ? (m.compliant / m.total) : 0; const target = Number(m.target || 0); - const color = pct >= target ? '#10B981' : pct >= target * 0.85 ? '#F59E0B' : '#EF4444'; + const pctColor = pct >= target ? '#10B981' : pct >= target * 0.85 ? '#F59E0B' : '#EF4444'; return (
{m.metric_id} - {(pct * 100).toFixed(0)}% + {(pct * 100).toFixed(0)}%
-
{m.non_compliant.toLocaleString()}
+
{m.non_compliant.toLocaleString()}
); })}