Add suggested values for variable dropdown (#9437)
<img width="378" alt="Capture d’écran 2025-01-07 à 15 37 20" src="https://github.com/user-attachments/assets/c15abcac-684a-4c3b-ad12-62cf91afe927" /> Here is a first version: - simple fields have a suggested value - composite do not, but sub values of composite do - json, arrays or complex values do not
This commit is contained in:
@ -25,7 +25,7 @@ const generateObjectRecordFields = (
|
||||
type: field.type,
|
||||
icon: field.icon,
|
||||
label: field.label,
|
||||
value: generateFakeValue(field.type),
|
||||
value: generateFakeValue(field.type, 'FieldMetadataType'),
|
||||
};
|
||||
} else {
|
||||
acc[field.name] = {
|
||||
@ -37,7 +37,7 @@ const generateObjectRecordFields = (
|
||||
isLeaf: true,
|
||||
type: property.type,
|
||||
label: camelToTitleCase(property.name),
|
||||
value: generateFakeValue(property.type),
|
||||
value: generateFakeValue(property.type, 'FieldMetadataType'),
|
||||
};
|
||||
|
||||
return acc;
|
||||
|
||||
Reference in New Issue
Block a user