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:
Alireza Hassani
2026-09-19 13:50:13 +03:30
co-authored by Cursor
parent 0bbc5bbc12
commit 592540cc7e
17 changed files with 527 additions and 76 deletions
@@ -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) : '—')
}