fix: resolve TYPE column with pattern ['type'] instead of ['product','type']

The column header in the Excel is 'TYPE', not 'Product Type', so the
old pattern never matched. resolveColumnIndices fell back to the hardcoded
index 103, causing the PRODUCT_TYPE editable column index to be wrong on
reload and edited values (e.g. 'Surprise Bath bomb') to never be applied.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Vidal Wolf
2026-04-23 16:26:04 +02:00
co-authored by Claude Sonnet 4.6
parent f3ed3cf147
commit 63242d8852
+1 -1
View File
@@ -78,7 +78,7 @@ export const COLUMN_PATTERNS: Record<keyof typeof COLUMNS, string[]> = {
VERIFIED_DIMS: ['verified'], VERIFIED_DIMS: ['verified'],
VALIDATED_CHECK: ['validated'], VALIDATED_CHECK: ['validated'],
VALIDATED_NOTE: ['note'], VALIDATED_NOTE: ['note'],
PRODUCT_TYPE: ['product', 'type'], PRODUCT_TYPE: ['type'],
ITEM_TO_LOGISTIC: ['item', 'to', 'logistic'], ITEM_TO_LOGISTIC: ['item', 'to', 'logistic'],
ANNA_CHECK: ['anna', 'check'], ANNA_CHECK: ['anna', 'check'],
ANNA_NOTE: ['anna', 'note'] ANNA_NOTE: ['anna', 'note']