From 8832ee076079a505cf3efea184de895d028577e3 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Thu, 22 Jan 2026 14:07:36 +0100 Subject: [PATCH] feat: enable SKU drill-down from Weekly Sales to Ads tab - WeeklyGrid.tsx: Make SKU identifiers clickable with hover effects - App.tsx: Implement handleSkuDrillDown to filter by SKU and switch to Ads view --- components/WeeklyGrid.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/WeeklyGrid.tsx b/components/WeeklyGrid.tsx index ed63ccd..3db2b6e 100644 --- a/components/WeeklyGrid.tsx +++ b/components/WeeklyGrid.tsx @@ -446,7 +446,14 @@ const WeeklyGrid: React.FC = ({ data, top50Ranking, onDrillDown {ranks.map((r, i) => ( ))} - {row.sku || '-'} + onDrillDown?.(row.sku)} + className={`text-xs font-black uppercase tracking-tighter truncate max-w-[120px] transition-all + ${onDrillDown ? 'text-indigo-400 cursor-pointer hover:text-indigo-300 hover:underline' : 'text-indigo-400/70'}`} + title={onDrillDown ? `Click to see Ads detail for ${row.sku}` : ''} + > + {row.sku || '-'} + {row.asin} {row.title}