From 64f2953c7033f2cdc0ad4ad274da6d53f2787565 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Wed, 17 Jun 2026 16:31:23 +0200 Subject: [PATCH] feat: move vendor stock to own column with EU/UK badges and add Stock header --- components/ForecastView.tsx | 69 ++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/components/ForecastView.tsx b/components/ForecastView.tsx index 33faa19..42ebc7e 100644 --- a/components/ForecastView.tsx +++ b/components/ForecastView.tsx @@ -135,40 +135,48 @@ const ComparisonTableRow: React.FC<{ row: ComparisonRow }> = React.memo(({ row } const barWidth = Math.min(100, row.pctPeriod); return ( - -
- {row.sku} - {(row.vendorStockEU > 0 || row.vendorStockUK > 0) && ( -
- {row.vendorStockEU > 0 && ( -
- - EU - {row.vendorStockEU.toLocaleString('de-DE')} -
- )} - {row.vendorStockUK > 0 && ( -
- - UK - {row.vendorStockUK.toLocaleString('de-DE')} -
- )} -
- )} -
+ + {row.sku} {row.description} + +
+ {row.vendorStockEU > 0 ? ( +
+ + EU + {row.vendorStockEU.toLocaleString('de-DE')} +
+ ) : ( +
+ EU + +
+ )} + {row.vendorStockUK > 0 ? ( +
+ + UK + {row.vendorStockUK.toLocaleString('de-DE')} +
+ ) : ( +
+ UK + +
+ )} +
+ {row.actualUnits.toLocaleString('de-DE')} @@ -648,6 +656,11 @@ const ForecastView: React.FC = ({ asinMetadata, vendorStockMa /> + +
+ Stock +
+