Introduce ARRAY field type (#6862)
This PR was created by \[GitStart\](<https://gitstart.com/>) to address the requirements from this ticket: \[TWNTY-6447\](<https://clients.gitstart.com/twenty/5449/tickets/TWNTY-6447>). This ticket was imported from: <https://github.com/twentyhq/twenty/issues/6447> ### Description \- We added a new field type ### Refs #6447 ### Demo <https://jam.dev/c/2b4d7853-ea89-4e9d-a561-6edcb4fdb34b> Fixes #6447 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
committed by
GitHub
parent
bc99cfec98
commit
8208a3e976
@ -1,4 +1,5 @@
|
||||
import {
|
||||
IconBracketsContain,
|
||||
IconComponent,
|
||||
IllustrationIconCalendarEvent,
|
||||
IllustrationIconCalendarTime,
|
||||
@ -183,6 +184,12 @@ export const SETTINGS_FIELD_TYPE_CONFIGS = {
|
||||
Icon: IllustrationIconSetting,
|
||||
category: 'Basic',
|
||||
},
|
||||
[FieldMetadataType.Array]: {
|
||||
label: 'Array',
|
||||
Icon: IconBracketsContain,
|
||||
category: 'Basic',
|
||||
exampleValue: ['value1', 'value2'],
|
||||
},
|
||||
} as const satisfies Record<
|
||||
SettingsSupportedFieldType,
|
||||
SettingsFieldTypeConfig
|
||||
|
||||
@ -80,6 +80,7 @@ const StyledFieldPreviewCard = styled(SettingsDataModelFieldPreviewCard)`
|
||||
`;
|
||||
|
||||
const previewableTypes = [
|
||||
FieldMetadataType.Array,
|
||||
FieldMetadataType.Address,
|
||||
FieldMetadataType.Boolean,
|
||||
FieldMetadataType.Currency,
|
||||
|
||||
Reference in New Issue
Block a user