From d6589e807b82a1e100a5b32c80f53bd873edc262 Mon Sep 17 00:00:00 2001 From: Alan Buscaglia Date: Wed, 22 Oct 2025 10:21:33 +0200 Subject: [PATCH] style: format alert-pill component --- ui/components/graphs/line-chart.tsx | 5 +--- ui/components/graphs/shared/alert-pill.tsx | 5 +++- ui/components/graphs/shared/chart-tooltip.tsx | 30 +++++++++++++------ 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/ui/components/graphs/line-chart.tsx b/ui/components/graphs/line-chart.tsx index 7ab92b4ddf..daefb55808 100644 --- a/ui/components/graphs/line-chart.tsx +++ b/ui/components/graphs/line-chart.tsx @@ -87,10 +87,7 @@ const CustomLineTooltip = ({ {newFindings !== undefined && (
- + - +
-

+

{typeof data.value === "number" ? data.value.toLocaleString() : data.value} @@ -66,7 +63,10 @@ export function ChartTooltip({ {data.newFindings !== undefined && data.newFindings > 0 && (

- + {data.newFindings} New Findings
@@ -75,7 +75,10 @@ export function ChartTooltip({ {data.new !== undefined && data.new > 0 && (
- + {data.new} New
@@ -84,14 +87,20 @@ export function ChartTooltip({ {data.muted !== undefined && data.muted > 0 && (
- + {data.muted} Muted
)} {data.change !== undefined && ( -

+

{data.change > 0 ? "+" : ""} {data.change}% @@ -146,7 +155,10 @@ export function MultiSeriesChartTooltip({ {entry.value} {entry.payload[`${entry.dataKey}_change`] && ( - + ({entry.payload[`${entry.dataKey}_change`] > 0 ? "+" : ""} {entry.payload[`${entry.dataKey}_change`]}%)