diff --git a/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx b/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx index 62020327a23f90..074d1626148bd4 100644 --- a/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx +++ b/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx @@ -128,41 +128,32 @@ export function BuildDetailsMetricCards(props: BuildDetailsMetricCardsProps) { return ( - {metricsCards.map(card => { - const valueContent = ( + {metricsCards.map(card => ( + , + tooltip: t('View insight details'), + ariaLabel: t('View insight details'), + onClick: () => { + trackAnalytics('preprod.builds.details.open_insights_sidebar', { + organization, + platform: platformProp ?? null, + project_type: projectType, + source: 'metric_card', + }); + onOpenInsightsSidebar(); + }, + } + : undefined + } + > - - {card.value} - - {card.percentageText ?? ''} - - ); - - return ( - , - tooltip: t('View insight details'), - ariaLabel: t('View insight details'), - onClick: () => { - trackAnalytics('preprod.builds.details.open_insights_sidebar', { - organization, - platform: platformProp ?? null, - project_type: projectType, - source: 'metric_card', - }); - onOpenInsightsSidebar(); - }, - } - : undefined - } - > {card.watchBreakdown ? ( } - position="left" + position="bottom" > - {valueContent} + {card.value} ) : ( - valueContent + {card.value} )} - - ); - })} + {card.percentageText ?? ''} + + + ))} ); }