From 35c91b98261b0c8eca9a113d19d9ef600ca33294 Mon Sep 17 00:00:00 2001 From: Cuong Nguyen <128072568+can-anyscale@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:25:18 -0800 Subject: [PATCH] [ci] change metric to green if greater than (#50) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently the metric on go/flaky only turns green when it is an exact match (see the 24% number). Change it to green if it is greater than. Screenshot 2024-01-23 at 9 47 52 AM Signed-off-by: can --- js/src/components/stat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/components/stat.tsx b/js/src/components/stat.tsx index 339eaf7..7e24e43 100644 --- a/js/src/components/stat.tsx +++ b/js/src/components/stat.tsx @@ -15,7 +15,7 @@ const StatsPane: React.FC = ({ stats }) => ( title={s.key} value={s.value.toFixed(0)} valueStyle={{ - color: s.value === s.desired_value ? "green" : "red", + color: s.value >= s.desired_value ? "green" : "red", textAlign: "right", }} suffix={s.unit}