This commit is contained in:
2026-08-29 16:45:04 +05:30
parent f4a2962981
commit 7e3571f90e

View File

@@ -169,12 +169,16 @@ export function ImportScope({ value, onChange, isTenantFixed = false }: ImportSc
/>
<Selector
label="Category for rows that do not name one"
/* "for rows that do not name one" was the old label, and it stopped
being true when the sheet stopped carrying a category. No row names
one now, so it read as a rare fallback when it is in fact the only
source — and a field that looks optional is a field people skip. */
label="Category"
size="sm"
options={categoryOptions}
value={value.categoryid ? String(value.categoryid) : ''}
placeholder={!value.tenantid ? 'Choose a merchant first' : 'Choose a category'}
description="A product with no category cannot appear in the customer app at all."
description="Applied to every product in the sheet. The customer app browses by category, and one filed without a category cannot be found there at all — which is why this is asked here rather than typed on every row."
isDisabled={!value.tenantid}
onChange={(next) => onChange({ ...value, categoryid: Number(next) || undefined })}
/>