mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 15:35:23 +02:00
fix: final column mapping update (L=11, O=14) and UI cleanup
This commit is contained in:
@@ -174,11 +174,7 @@ export function ProductDescriptions({ data, onEdit }: ProductDescriptionsProps)
|
|||||||
{ col: COLUMNS.LINE, label: 'Line' },
|
{ col: COLUMNS.LINE, label: 'Line' },
|
||||||
{ col: COLUMNS.LICENSE, label: 'License' },
|
{ col: COLUMNS.LICENSE, label: 'License' },
|
||||||
{ col: COLUMNS.LONG_DE, label: 'Long DE' },
|
{ col: COLUMNS.LONG_DE, label: 'Long DE' },
|
||||||
{ col: COLUMNS.LONG_EN, label: 'Long EN' },
|
|
||||||
{ col: COLUMNS.SHORT_DE, label: 'Short DE' },
|
|
||||||
{ col: COLUMNS.SHORT_EN, label: 'Short EN' },
|
{ col: COLUMNS.SHORT_EN, label: 'Short EN' },
|
||||||
{ col: COLUMNS.CLASSIFICATION, label: 'Classif.' },
|
|
||||||
{ col: COLUMNS.ITEM_AVAILABLE, label: 'Stock' },
|
|
||||||
].map(({ col, label }) => (
|
].map(({ col, label }) => (
|
||||||
<th
|
<th
|
||||||
key={col}
|
key={col}
|
||||||
@@ -203,12 +199,8 @@ export function ProductDescriptions({ data, onEdit }: ProductDescriptionsProps)
|
|||||||
<td className="px-4 py-3 font-medium text-white max-w-[300px] truncate" title={row[COLUMNS.ARTICLE_NAME]}>{row[COLUMNS.ARTICLE_NAME]}</td>
|
<td className="px-4 py-3 font-medium text-white max-w-[300px] truncate" title={row[COLUMNS.ARTICLE_NAME]}>{row[COLUMNS.ARTICLE_NAME]}</td>
|
||||||
<td className="px-4 py-3 text-slate-300">{row[COLUMNS.LINE]}</td>
|
<td className="px-4 py-3 text-slate-300">{row[COLUMNS.LINE]}</td>
|
||||||
<td className="px-4 py-3 text-slate-300">{row[COLUMNS.LICENSE]}</td>
|
<td className="px-4 py-3 text-slate-300">{row[COLUMNS.LICENSE]}</td>
|
||||||
<td className="px-4 py-3"><Badge content={row[COLUMNS.LONG_DE]} row={row} /></td>
|
|
||||||
<td className="px-4 py-3"><Badge content={row[COLUMNS.LONG_EN]} row={row} /></td>
|
|
||||||
<td className="px-4 py-3"><Badge content={row[COLUMNS.SHORT_DE]} row={row} /></td>
|
<td className="px-4 py-3"><Badge content={row[COLUMNS.SHORT_DE]} row={row} /></td>
|
||||||
<td className="px-4 py-3"><Badge content={row[COLUMNS.SHORT_EN]} row={row} /></td>
|
<td className="px-4 py-3"><Badge content={row[COLUMNS.SHORT_EN]} row={row} /></td>
|
||||||
<td className="px-4 py-3 text-slate-400 text-xs">{String(row[COLUMNS.CLASSIFICATION] || 'N/A')}</td>
|
|
||||||
<td className="px-4 py-3 text-slate-400 text-xs">{String(row[COLUMNS.ITEM_AVAILABLE] || '0')}</td>
|
|
||||||
<td className="px-4 py-3 text-right">
|
<td className="px-4 py-3 text-right">
|
||||||
<button
|
<button
|
||||||
onClick={() => onEdit(index)}
|
onClick={() => onEdit(index)}
|
||||||
|
|||||||
+1
-1
@@ -24,5 +24,5 @@ export const COLUMNS = {
|
|||||||
SHORT_EN: 65,
|
SHORT_EN: 65,
|
||||||
RECOMMENDED_AGE: 67,
|
RECOMMENDED_AGE: 67,
|
||||||
CLASSIFICATION: 11, // Column L (index 11)
|
CLASSIFICATION: 11, // Column L (index 11)
|
||||||
ITEM_AVAILABLE: 15 // Column P (index 15)
|
ITEM_AVAILABLE: 14 // Column O (index 14)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user