From be44d8d00f8616e698f4304ee0842cf75e849a75 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Wed, 17 Jun 2026 15:33:14 +0200 Subject: [PATCH] feat: display metrics labels above values in Grid view Filtered Totals --- components/DataGrid.tsx | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/components/DataGrid.tsx b/components/DataGrid.tsx index 1a37e00..3635b4e 100644 --- a/components/DataGrid.tsx +++ b/components/DataGrid.tsx @@ -1146,43 +1146,48 @@ const DataGrid: React.FC = ({ data, filters, hasCustomerFilter, a }; return ( -
-
- - Filtered Totals +
+
+ + Filtered Totals (YTD {latestYear})
-
+
{/* Sell Out */} -
- +
+ Sell Out Revenue + €{currentTotals.sellOut.toLocaleString('de-DE', { maximumFractionDigits: 0 })} {formatDiffPct(soGrowth)}
{/* Units */} -
- +
+ Units Sold + {currentTotals.units.toLocaleString('de-DE')} {formatDiffPct(uGrowth)}
{/* Ad Spend */} -
- +
+ Ad Spend + €{totalAdSpend.toLocaleString('de-DE', { maximumFractionDigits: 0 })} {formatDiffPct(adGrowth)}
{/* Tacos */} -
- +
+ TACOS + {tacosVal.toFixed(2)}% - TACOS + Efficiency
{/* Attributed Sales */} -
- +
+ Ad Attributed Sales + €{totalAttrSales.toLocaleString('de-DE', { maximumFractionDigits: 0 })} {formatDiffPct(attrSalesGrowth)}