Form action field base settings (#11035)

- Add settings for text and number fields
- Settings are for now the same but I still separated with two
components because they will evolve


https://github.com/user-attachments/assets/96b7fffd-c3a1-45b9-aeaa-45d63505de3c
This commit is contained in:
Thomas Trompette
2025-03-19 18:44:02 +01:00
committed by GitHub
parent 8b513a7d3b
commit 7b0bf7c4b0
12 changed files with 481 additions and 24 deletions

View File

@ -88,9 +88,12 @@ export const workflowFormActionSettingsSchema =
z.object({
id: z.string().uuid(),
label: z.string(),
type: z.nativeEnum(FieldMetadataType),
type: z.union([
z.literal(FieldMetadataType.TEXT),
z.literal(FieldMetadataType.NUMBER),
]),
placeholder: z.string().optional(),
settings: z.record(z.any()),
settings: z.record(z.any()).optional(),
}),
),
});