Generate fake form from metadata (#10641)

- add name to form field metadata
- extract field generation from object record schema
- use field generation to generate field from metadata
- add tests
This commit is contained in:
Thomas Trompette
2025-03-04 13:25:29 +01:00
committed by GitHub
parent aba20dae11
commit d151b1329c
7 changed files with 370 additions and 30 deletions
@@ -1,8 +1,11 @@
import { FieldMetadataType } from 'twenty-shared';
import { BaseWorkflowActionSettings } from 'src/modules/workflow/workflow-executor/workflow-actions/types/workflow-action-settings.type';
export type FormFieldMetadata = {
label: string;
type: string;
name: string;
type: FieldMetadataType;
placeholder?: string;
settings?: Record<string, any>;
};