Add AI fill for product technical data and localize the modal.
Users can fill technical fields from a prefilled prompt, and FA locale shows Persian titles and actions; SEO modal no longer shows a search icon. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
06e2442aaf
commit
32f0dbab63
@@ -68,3 +68,17 @@ export async function saveProductTechnicalInfo(
|
||||
body: formStateToPayload(values),
|
||||
})
|
||||
}
|
||||
|
||||
export async function fillProductTechnicalInfoByAi(
|
||||
productId: string,
|
||||
prompt: string,
|
||||
) {
|
||||
return apiRequest<{ values: ProductTechnicalFormValues }>(
|
||||
`${businessPath(productId)}/ai-fill`,
|
||||
{
|
||||
method: 'POST',
|
||||
auth: true,
|
||||
body: { prompt },
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user