Add multi_value technical inputs and FA AI prompts.
Support duplicatable list fields in form builder and value UIs, and guide fill prompts to put leftover specs in سایر ویژگیها. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
0bbc5bbc12
commit
592540cc7e
@@ -34,6 +34,12 @@ function formatTechnicalValue(item: ProductTechnicalValue): string {
|
||||
const labels = item.optionLabels ?? (Array.isArray(item.value) ? item.value : [])
|
||||
return labels.length ? labels.join(', ') : '—'
|
||||
}
|
||||
if (item.type === 'multi_value') {
|
||||
const items = Array.isArray(item.value)
|
||||
? item.value.map((entry) => String(entry).trim()).filter(Boolean)
|
||||
: []
|
||||
return items.length ? items.join('، ') : '—'
|
||||
}
|
||||
if (item.type === 'select') {
|
||||
return item.optionLabel ?? (item.value ? String(item.value) : '—')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user