Unique fields - add unicity toggle on data model settings (#13592)

To review after https://github.com/twentyhq/twenty/pull/13539

closes https://github.com/twentyhq/core-team-issues/issues/1224

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Etienne
2025-08-08 19:15:49 +02:00
committed by GitHub
parent 6a492b0732
commit e06fc34cbe
18 changed files with 222 additions and 94 deletions
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
import { FieldPhonesValue } from '@/object-record/record-field/types/FieldMetadata';
import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList';
import { DEFAULT_PHONE_CALLING_CODE } from '@/object-record/record-field/meta-types/input/components/PhonesFieldInput';
import { styled } from '@linaria/react';
import { parsePhoneNumber } from 'libphonenumber-js';
import { isDefined } from 'twenty-shared/utils';
@@ -49,7 +48,7 @@ export const PhonesDisplay = ({
callingCode:
value.primaryPhoneCallingCode ||
value.primaryPhoneCountryCode ||
`+${DEFAULT_PHONE_CALLING_CODE}`,
'',
}
: null,
...parseAdditionalPhones(value?.additionalPhones),