From 9655da8164d3dae004c897a0a694fe4036e9615c Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Fri, 24 Apr 2026 17:24:47 +0200 Subject: [PATCH] refactor: eliminate automatic 'End of Life' (EOL) logic and yellow highlighting for OOC products with no stock --- src/components/ProductDescriptions.tsx | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/components/ProductDescriptions.tsx b/src/components/ProductDescriptions.tsx index de0a9bd..04a738b 100644 --- a/src/components/ProductDescriptions.tsx +++ b/src/components/ProductDescriptions.tsx @@ -184,14 +184,6 @@ export function ProductDescriptions({ data, headers, asinColumnIndex, onEdit, ro }; const getRowColor = (row: ExcelRow) => { - // EOL Rule: OOC Classification and 0 or negative stock (Item Available) - const classification = String(row[COLUMNS.CLASSIFICATION] || '').toUpperCase().trim(); - const stock = Number(row[COLUMNS.ITEM_AVAILABLE] || 0); - - if (classification === 'OOC' && stock <= 0) { - return 'bg-yellow-500/10 hover:bg-yellow-500/20'; // EOL Highlight - } - const fields = [ row[COLUMNS.LONG_DE], row[COLUMNS.LONG_EN], row[COLUMNS.SHORT_DE], row[COLUMNS.SHORT_EN] @@ -205,13 +197,7 @@ export function ProductDescriptions({ data, headers, asinColumnIndex, onEdit, ro const Badge = ({ content, row }: { content: any, row: ExcelRow }) => { if (content !== undefined && content !== null && content !== '') return ; - // EOL Exception: OOC and stock <= 0 - const classification = String(row[COLUMNS.CLASSIFICATION] || '').toUpperCase().trim(); - const stock = Number(row[COLUMNS.ITEM_AVAILABLE] || 0); - if (classification === 'OOC' && stock <= 0) { - return EOL not neccessary; - } return ✗ Missing; };