From d73ed8fe7c11174366146bc6dd7f6923d11b7282 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 31 Jul 2024 15:19:11 +0300 Subject: [PATCH] Goal detail tweaks (#4410) * Always show details modal for goal conversions * Make metrics smaller in breakdown table So that revenue metrics fit * So that revenue metrics fit * Add more space for dimension value in breakdown modal --- assets/js/dashboard/stats/behaviours/conversions.js | 1 - assets/js/dashboard/stats/modals/breakdown-modal.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/js/dashboard/stats/behaviours/conversions.js b/assets/js/dashboard/stats/behaviours/conversions.js index 42856f8fe..ece322322 100644 --- a/assets/js/dashboard/stats/behaviours/conversions.js +++ b/assets/js/dashboard/stats/behaviours/conversions.js @@ -42,7 +42,6 @@ export default function Conversions({ afterFetchData, onGoalFilterClick }) { onClick={onGoalFilterClick} metrics={chooseMetrics()} detailsLink={url.sitePath('conversions')} - maybeHideDetails={true} color="bg-red-50" colMinWidth={90} /> diff --git a/assets/js/dashboard/stats/modals/breakdown-modal.js b/assets/js/dashboard/stats/modals/breakdown-modal.js index 86f786838..99e94d39e 100644 --- a/assets/js/dashboard/stats/modals/breakdown-modal.js +++ b/assets/js/dashboard/stats/modals/breakdown-modal.js @@ -156,7 +156,7 @@ export default function BreakdownModal({ function renderRow(item) { return ( - + {maybeRenderIcon(item)} {metrics.map((metric) => { return ( - + {metric.renderValue(item[metric.key])} ) @@ -229,7 +229,7 @@ export default function BreakdownModal({ {reportInfo.dimensionLabel} @@ -237,7 +237,7 @@ export default function BreakdownModal({ {metrics.map((metric) => { return ( - + {metric.renderLabel(query)} )