changes
This commit is contained in:
@@ -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 })}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user