diff --git a/packages/twenty-front/src/modules/activities/emails/utils/__tests__/getDisplayNameFromParticipant.test.ts b/packages/twenty-front/src/modules/activities/emails/utils/__tests__/getDisplayNameFromParticipant.test.ts index 486da5ead..7b4d8c7a8 100644 --- a/packages/twenty-front/src/modules/activities/emails/utils/__tests__/getDisplayNameFromParticipant.test.ts +++ b/packages/twenty-front/src/modules/activities/emails/utils/__tests__/getDisplayNameFromParticipant.test.ts @@ -20,12 +20,12 @@ describe('getDisplayNameFromParticipant', () => { avatarUrl: '', jobTitle: '', linkedinLink: { - url: '', - label: '', + primaryLinkUrl: '', + primaryLinkLabel: '', }, xLink: { - url: '', - label: '', + primaryLinkUrl: '', + primaryLinkLabel: '', }, city: '', email: '', diff --git a/packages/twenty-front/src/modules/companies/types/Company.ts b/packages/twenty-front/src/modules/companies/types/Company.ts index 43f2cfbc1..2bdc5bc88 100644 --- a/packages/twenty-front/src/modules/companies/types/Company.ts +++ b/packages/twenty-front/src/modules/companies/types/Company.ts @@ -9,8 +9,16 @@ export type Company = { address: string; accountOwnerId?: string | null; position?: number; - linkedinLink: { __typename?: 'Link'; url: string; label: string }; - xLink?: { __typename?: 'Link'; url: string; label: string }; + linkedinLink: { + __typename?: 'Links'; + primaryLinkUrl: string; + primaryLinkLabel: string; + }; + xLink?: { + __typename?: 'Links'; + primaryLinkUrl: string; + primaryLinkLabel: string; + }; annualRecurringRevenue: { __typename?: 'Currency'; amountMicros: number | null; diff --git a/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts b/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts index c00b9f5da..45dfba438 100644 --- a/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts +++ b/packages/twenty-front/src/modules/favorites/hooks/__mocks__/useFavorites.ts @@ -92,8 +92,9 @@ export const mocks = [ person { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -106,8 +107,9 @@ export const mocks = [ } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl @@ -132,12 +134,14 @@ export const mocks = [ company { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue { @@ -218,8 +222,9 @@ export const mocks = [ person { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -232,8 +237,9 @@ export const mocks = [ } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl @@ -258,12 +264,14 @@ export const mocks = [ company { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue { diff --git a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapFieldMetadataToGraphQLQuery.test.tsx b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapFieldMetadataToGraphQLQuery.test.tsx index fc841bd27..fa54aa795 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapFieldMetadataToGraphQLQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapFieldMetadataToGraphQLQuery.test.tsx @@ -50,13 +50,15 @@ describe('mapFieldMetadataToGraphQLQuery', () => { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue @@ -113,8 +115,9 @@ idealCustomerProfile __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } accountOwner { @@ -128,8 +131,9 @@ id } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue @@ -157,8 +161,9 @@ people __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -173,8 +178,9 @@ name phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapObjectMetadataToGraphQLQuery.test.tsx b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapObjectMetadataToGraphQLQuery.test.tsx index 534428624..fac523a61 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapObjectMetadataToGraphQLQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-metadata/utils/__tests__/mapObjectMetadataToGraphQLQuery.test.tsx @@ -39,8 +39,9 @@ describe('mapObjectMetadataToGraphQLQuery', () => { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -49,13 +50,15 @@ company __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue @@ -93,8 +96,9 @@ name phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-metadata/utils/getObjectMetadataItemsMock.ts b/packages/twenty-front/src/modules/object-metadata/utils/getObjectMetadataItemsMock.ts index 7ae1d86e7..9953c5767 100644 --- a/packages/twenty-front/src/modules/object-metadata/utils/getObjectMetadataItemsMock.ts +++ b/packages/twenty-front/src/modules/object-metadata/utils/getObjectMetadataItemsMock.ts @@ -703,7 +703,7 @@ export const getObjectMetadataItemsMock = () => { { __typename: 'field', id: '20202020-a3a7-4f63-9303-10226f6055be', - type: 'LINK', + type: 'LINKS', name: 'xLink', label: 'X', description: 'Contact’s X/Twitter account', @@ -984,7 +984,7 @@ export const getObjectMetadataItemsMock = () => { { __typename: 'field', id: '20202020-dcf6-445a-b543-37e55de43c25', - type: 'LINK', + type: 'LINKS', name: 'linkedinLink', label: 'Linkedin', description: 'Contact’s Linkedin account', @@ -2847,7 +2847,7 @@ export const getObjectMetadataItemsMock = () => { { __typename: 'field', id: '20202020-46e3-479a-b8f4-77137c74daa6', - type: 'LINK', + type: 'LINKS', name: 'xLink', label: 'X', description: 'The company Twitter/X account', @@ -2894,7 +2894,7 @@ export const getObjectMetadataItemsMock = () => { { __typename: 'field', id: '20202020-a61d-4b78-b998-3fd88b4f73a1', - type: 'LINK', + type: 'LINKS', name: 'linkedinLink', label: 'Linkedin', description: 'The company Linkedin account', diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateManyRecords.ts index 7a8a4bf3a..d61772f83 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateManyRecords.ts @@ -7,8 +7,9 @@ export const query = gql` createPeople(data: $data, upsert: $upsert) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -21,8 +22,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl @@ -44,8 +46,9 @@ export const variables = { data }; export const responseData = { __typeName: '', xLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, createdAt: '', city: '', @@ -57,8 +60,9 @@ export const responseData = { }, phone: '', linkedinLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, updatedAt: '', avatarUrl: '', diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateOneRecord.ts index a4db064fa..7f32cfdf3 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useCreateOneRecord.ts @@ -5,8 +5,9 @@ export const query = gql` createPerson(data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -19,8 +20,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl @@ -34,8 +36,9 @@ export const responseData = { edges: [], }, xLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, pointOfContactForOpportunities: { edges: [], @@ -62,8 +65,9 @@ export const responseData = { }, phone: '', linkedinLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, updatedAt: '', avatarUrl: '', diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useExecuteQuickActionOnOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useExecuteQuickActionOnOneRecord.ts index 5806db21f..854b4fd2c 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useExecuteQuickActionOnOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useExecuteQuickActionOnOneRecord.ts @@ -7,8 +7,9 @@ export const query = gql` executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -21,8 +22,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts index fec1fb988..5eb6ecd8d 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindDuplicateRecords.ts @@ -10,8 +10,9 @@ export const query = gql` node { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -24,8 +25,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindManyRecords.ts index 22caeadc1..1ed7b456f 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindManyRecords.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindManyRecords.ts @@ -38,8 +38,8 @@ export const query = gql` } } xLink { - label - url + primaryLinkLabel + primaryLinkUrl } id pointOfContactForOpportunities { @@ -67,12 +67,12 @@ export const query = gql` __typename id xLink { - label - url + primaryLinkLabel + primaryLinkUrl } linkedinLink { - label - url + primaryLinkLabel + primaryLinkUrl } domainName annualRecurringRevenue { @@ -152,8 +152,8 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkLabel + primaryLinkUrl } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindOneRecord.ts index ade5c91ed..c96024d4e 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useFindOneRecord.ts @@ -7,8 +7,9 @@ export const query = gql` person(filter: { id: { eq: $objectRecordId } }) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -21,8 +22,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useUpdateOneRecord.ts b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useUpdateOneRecord.ts index 470c7773c..f7023f8aa 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useUpdateOneRecord.ts +++ b/packages/twenty-front/src/modules/object-record/hooks/__mocks__/useUpdateOneRecord.ts @@ -5,8 +5,9 @@ export const query = gql` updatePerson(id: $idToUpdate, data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -19,8 +20,9 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl @@ -32,8 +34,9 @@ export const query = gql` const basePerson = { id: '36abbb63-34ed-4a16-89f5-f549ac55d0f9', xLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, createdAt: '', city: '', @@ -45,8 +48,9 @@ const basePerson = { }, phone: '', linkedinLink: { - label: '', - url: '', + primaryLinkUrl: '', + primaryLinkLabel: '', + secondaryLinks: null, }, updatedAt: '', avatarUrl: '', diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecordsMutation.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecordsMutation.test.tsx index 9574e3b28..ff59df194 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecordsMutation.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecordsMutation.test.tsx @@ -9,8 +9,9 @@ const expectedQueryTemplate = ` createPeople(data: $data, upsert: $upsert) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -23,8 +24,9 @@ const expectedQueryTemplate = ` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateOneRecordMutation.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateOneRecordMutation.test.tsx index 621739449..056509fac 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateOneRecordMutation.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateOneRecordMutation.test.tsx @@ -9,8 +9,9 @@ const expectedQueryTemplate = ` createPerson(data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -23,8 +24,9 @@ const expectedQueryTemplate = ` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useExecuteQuickActionOnOneRecordMutation.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useExecuteQuickActionOnOneRecordMutation.test.tsx index 059bbb640..cf28b76c0 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useExecuteQuickActionOnOneRecordMutation.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useExecuteQuickActionOnOneRecordMutation.test.tsx @@ -9,8 +9,9 @@ const expectedQueryTemplate = ` executeQuickActionOnPerson(id: $idToExecuteQuickActionOn) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -23,8 +24,9 @@ const expectedQueryTemplate = ` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindDuplicateRecordsQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindDuplicateRecordsQuery.test.tsx index a32f1a6f2..10083ff17 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindDuplicateRecordsQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindDuplicateRecordsQuery.test.tsx @@ -11,8 +11,9 @@ const expectedQueryTemplate = ` node { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -25,8 +26,9 @@ const expectedQueryTemplate = ` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindManyRecordsQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindManyRecordsQuery.test.tsx index 1dcc82193..199e89b95 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindManyRecordsQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindManyRecordsQuery.test.tsx @@ -11,8 +11,9 @@ const expectedQueryTemplate = ` node { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -25,8 +26,9 @@ const expectedQueryTemplate = ` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindOneRecordQuery.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindOneRecordQuery.test.tsx index 3384299d8..1724d1663 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindOneRecordQuery.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useFindOneRecordQuery.test.tsx @@ -9,8 +9,9 @@ query FindOnePerson($objectRecordId: ID!) { person(filter: { id: { eq: $objectRecordId } }) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -23,8 +24,9 @@ query FindOnePerson($objectRecordId: ID!) { } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecordMutation.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecordMutation.test.tsx index 69b69856d..f0ee8b5a0 100644 --- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecordMutation.test.tsx +++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useUpdateOneRecordMutation.test.tsx @@ -9,8 +9,9 @@ mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) { updatePerson(id: $idToUpdate, data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -23,8 +24,9 @@ mutation UpdateOnePerson($idToUpdate: ID!, $input: PersonUpdateInput!) { } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts b/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts index 4be023caf..a439e13dc 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/__mocks__/fieldDefinitions.ts @@ -64,7 +64,7 @@ export const linkFieldDefinition: FieldDefinition = { label: 'LinkedIn URL', iconName: 'url', type: FieldMetadataType.Link, - defaultValue: { label: '', url: '' }, + defaultValue: { url: '', label: '' }, metadata: { fieldName: 'linkedInURL', placeHolder: 'https://linkedin.com/user', diff --git a/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/usePersistField.test.tsx b/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/usePersistField.test.tsx index 45dd03a21..bb4b307b1 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/usePersistField.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/usePersistField.test.tsx @@ -1,7 +1,7 @@ -import { ReactNode } from 'react'; import { gql } from '@apollo/client'; import { MockedProvider, MockedResponse } from '@apollo/client/testing'; import { act, renderHook, waitFor } from '@testing-library/react'; +import { ReactNode } from 'react'; import { RecoilRoot, useRecoilValue } from 'recoil'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -25,8 +25,9 @@ const query = gql` updatePerson(id: $idToUpdate, data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } id createdAt @@ -39,8 +40,9 @@ const query = gql` } phone linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/useToggleEditOnlyInput.test.tsx b/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/useToggleEditOnlyInput.test.tsx index 3000ca0eb..acc06e733 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/useToggleEditOnlyInput.test.tsx +++ b/packages/twenty-front/src/modules/object-record/record-field/hooks/__tests__/useToggleEditOnlyInput.test.tsx @@ -1,7 +1,7 @@ -import { ReactNode } from 'react'; import { gql } from '@apollo/client'; import { MockedProvider, MockedResponse } from '@apollo/client/testing'; import { act, renderHook, waitFor } from '@testing-library/react'; +import { ReactNode } from 'react'; import { RecoilRoot } from 'recoil'; import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular'; @@ -27,12 +27,14 @@ const mocks: MockedResponse[] = [ updateCompany(id: $idToUpdate, data: $input) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue { diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/relationFromManyFieldDisplayMock.ts b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/relationFromManyFieldDisplayMock.ts index 674d00fe9..30c07ab46 100644 --- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/relationFromManyFieldDisplayMock.ts +++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/display/components/__stories__/perf/relationFromManyFieldDisplayMock.ts @@ -6,8 +6,8 @@ export const fieldValue = [ domainName: 'google.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Google', annualRecurringRevenue: { @@ -25,8 +25,8 @@ export const fieldValue = [ updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, { @@ -34,8 +34,8 @@ export const fieldValue = [ domainName: 'airbnb.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Airbnb', annualRecurringRevenue: { @@ -53,8 +53,8 @@ export const fieldValue = [ updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, ]; @@ -72,8 +72,8 @@ export const otherPersonMock = { domainName: 'google.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Google', annualRecurringRevenue: { @@ -91,8 +91,8 @@ export const otherPersonMock = { updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, id: 'd3e70589-c449-4e64-8268-065640fdaff0', @@ -100,13 +100,13 @@ export const otherPersonMock = { phone: '+33744332211', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, tEst: '', position: 14, @@ -128,8 +128,8 @@ export const relationFromManyFieldDisplayMock = { domainName: 'google.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Google', annualRecurringRevenue: { @@ -147,8 +147,8 @@ export const relationFromManyFieldDisplayMock = { updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, id: '20202020-2d40-4e49-8df4-9c6a049191df', @@ -156,13 +156,13 @@ export const relationFromManyFieldDisplayMock = { phone: '+33788901235', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, tEst: '', position: 15, @@ -172,8 +172,8 @@ export const relationFromManyFieldDisplayMock = { domainName: 'microsoft.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Microsoft', annualRecurringRevenue: { @@ -191,13 +191,13 @@ export const relationFromManyFieldDisplayMock = { updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, fieldDefinition: { fieldMetadataId: '4e79f0b7-d100-4e89-a07b-315a710b8059', - label: 'Company', + primaryLinkLabel: 'Company', metadata: { fieldName: 'company', placeHolder: 'Company', diff --git a/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/mock.ts b/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/mock.ts index 925e8c70e..cc882ea44 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/mock.ts +++ b/packages/twenty-front/src/modules/object-record/record-table/components/__stories__/perf/mock.ts @@ -7,8 +7,8 @@ export const mockPerformance = { dataSourceId: '0fd9fd54-0e8d-4f78-911c-76b33436a768', nameSingular: 'person', namePlural: 'people', - labelSingular: 'Person', - labelPlural: 'People', + primaryLinkLabelSingular: 'Person', + primaryLinkLabelPlural: 'People', description: 'A person', icon: 'IconUser', isCustom: false, @@ -17,7 +17,7 @@ export const mockPerformance = { isSystem: false, createdAt: '2024-05-16T10:54:27.788Z', updatedAt: '2024-05-16T10:54:27.788Z', - labelIdentifierFieldMetadataId: null, + primaryLinkLabelIdentifierFieldMetadataId: null, imageIdentifierFieldMetadataId: null, fields: [ { @@ -25,7 +25,7 @@ export const mockPerformance = { id: '9058056e-36b3-4a3f-9037-f0bca9744296', type: 'RELATION', name: 'company', - label: 'Company', + primaryLinkLabel: 'Company', description: 'Contact’s company', icon: 'IconBuildingSkyscraper', isCustom: false, @@ -85,7 +85,7 @@ export const mockPerformance = { id: 'bd504d22-ecae-4228-8729-5c770a174336', type: 'TEXT', name: 'avatarUrl', - label: 'Avatar', + primaryLinkLabel: 'Avatar', description: 'Contact’s avatar', icon: 'IconFileUpload', isCustom: false, @@ -105,7 +105,7 @@ export const mockPerformance = { id: '21238919-5d92-402e-8124-367948ef86e6', type: 'TEXT', name: 'city', - label: 'City', + primaryLinkLabel: 'City', description: 'Contact’s city', icon: 'IconMap', isCustom: false, @@ -125,7 +125,7 @@ export const mockPerformance = { id: '78edf4bb-c6a6-449e-b9db-20a575b97d5e', type: 'RELATION', name: 'activityTargets', - label: 'Activities', + primaryLinkLabel: 'Activities', description: 'Activities tied to the contact', icon: 'IconCheckbox', isCustom: false, @@ -185,7 +185,7 @@ export const mockPerformance = { id: '4128b168-1439-441e-bb6a-223fa1276642', type: 'RELATION', name: 'pointOfContactForOpportunities', - label: 'POC for Opportunities', + primaryLinkLabel: 'POC for Opportunities', description: 'Point of Contact for Opportunities', icon: 'IconTargetArrow', isCustom: false, @@ -245,7 +245,7 @@ export const mockPerformance = { id: '3db3a6ac-a960-42bd-8375-59ab6c4837d6', type: 'RELATION', name: 'calendarEventParticipants', - label: 'Calendar Event Participants', + primaryLinkLabel: 'Calendar Event Participants', description: 'Calendar Event Participants', icon: 'IconCalendar', isCustom: false, @@ -305,7 +305,7 @@ export const mockPerformance = { id: 'f0a290ac-fa74-48da-a77f-db221cb0206a', type: 'DATE_TIME', name: 'createdAt', - label: 'Creation date', + primaryLinkLabel: 'Creation date', description: 'Creation date', icon: 'IconCalendar', isCustom: false, @@ -325,7 +325,7 @@ export const mockPerformance = { id: 'b96e0e45-278c-44b6-a601-30ba24592dd6', type: 'RELATION', name: 'favorites', - label: 'Favorites', + primaryLinkLabel: 'Favorites', description: 'Favorites linked to the contact', icon: 'IconHeart', isCustom: false, @@ -385,7 +385,7 @@ export const mockPerformance = { id: '430af81e-2a8c-4ce2-9969-c0f0e91818bb', type: 'LINK', name: 'linkedinLink', - label: 'Linkedin', + primaryLinkLabel: 'Linkedin', description: 'Contact’s Linkedin account', icon: 'IconBrandLinkedin', isCustom: false, @@ -397,8 +397,8 @@ export const mockPerformance = { fromRelationMetadata: null, toRelationMetadata: null, defaultValue: { - url: "''", - label: "''", + primaryLinkUrl: "''", + primaryLinkLabel: "''", }, options: null, relationDefinition: null, @@ -408,7 +408,7 @@ export const mockPerformance = { id: 'c885c3d9-63e2-4c0d-b7d6-ee9e867eb1f6', type: 'RELATION', name: 'attachments', - label: 'Attachments', + primaryLinkLabel: 'Attachments', description: 'Attachments linked to the contact.', icon: 'IconFileImport', isCustom: false, @@ -468,7 +468,7 @@ export const mockPerformance = { id: 'cc63e38f-56d6-495e-a545-edf101e400cf', type: 'TEXT', name: 'phone', - label: 'Phone', + primaryLinkLabel: 'Phone', description: 'Contact’s phone number', icon: 'IconPhone', isCustom: false, @@ -488,7 +488,7 @@ export const mockPerformance = { id: '0084a5f7-cb57-4cd5-8b14-93ab51c21f45', type: 'POSITION', name: 'position', - label: 'Position', + primaryLinkLabel: 'Position', description: 'Person record Position', icon: 'IconHierarchy2', isCustom: false, @@ -508,7 +508,7 @@ export const mockPerformance = { id: 'ca54aa1d-1ecb-486c-99ea-b8240871a0da', type: 'EMAIL', name: 'email', - label: 'Email', + primaryLinkLabel: 'Email', description: 'Contact’s Email', icon: 'IconMail', isCustom: false, @@ -528,7 +528,7 @@ export const mockPerformance = { id: '54561a8e-b918-471b-a363-5a77f49cd348', type: 'TEXT', name: 'jobTitle', - label: 'Job Title', + primaryLinkLabel: 'Job Title', description: 'Contact’s job title', icon: 'IconBriefcase', isCustom: false, @@ -548,7 +548,7 @@ export const mockPerformance = { id: '4e844d31-f117-443c-8754-8cb63e963ecc', type: 'DATE_TIME', name: 'updatedAt', - label: 'Update date', + primaryLinkLabel: 'Update date', description: 'Update date', icon: 'IconCalendar', isCustom: false, @@ -568,7 +568,7 @@ export const mockPerformance = { id: '4ddd38df-d9a3-4889-a39f-1e336cd8113c', type: 'UUID', name: 'companyId', - label: 'Company id (foreign key)', + primaryLinkLabel: 'Company id (foreign key)', description: 'Contact’s company id foreign key', icon: 'IconBuildingSkyscraper', isCustom: false, @@ -588,7 +588,7 @@ export const mockPerformance = { id: 'e6922ecb-7a3a-4520-b001-bbf95fc33197', type: 'RELATION', name: 'timelineActivities', - label: 'Events', + primaryLinkLabel: 'Events', description: 'Events linked to the company', icon: 'IconTimelineEvent', isCustom: false, @@ -648,7 +648,7 @@ export const mockPerformance = { id: '07a8a574-ed28-4015-b456-c01ff3050e2b', type: 'FULL_NAME', name: 'name', - label: 'Name', + primaryLinkLabel: 'Name', description: 'Contact’s name', icon: 'IconUser', isCustom: false, @@ -671,7 +671,7 @@ export const mockPerformance = { id: 'c470144b-6692-47cb-a28f-04610d9d641c', type: 'LINK', name: 'xLink', - label: 'X', + primaryLinkLabel: 'X', description: 'Contact’s X/Twitter account', icon: 'IconBrandX', isCustom: false, @@ -683,8 +683,8 @@ export const mockPerformance = { fromRelationMetadata: null, toRelationMetadata: null, defaultValue: { - url: "''", - label: "''", + primaryLinkUrl: "''", + primaryLinkLabel: "''", }, options: null, relationDefinition: null, @@ -694,7 +694,7 @@ export const mockPerformance = { id: 'c692aa2c-e88e-4aff-b77e-b9ebf26509e3', type: 'RELATION', name: 'messageParticipants', - label: 'Message Participants', + primaryLinkLabel: 'Message Participants', description: 'Message Participants', icon: 'IconUserCircle', isCustom: false, @@ -754,7 +754,7 @@ export const mockPerformance = { id: '66d33eae-71be-49fa-ad7a-3e10ac53dfba', type: 'UUID', name: 'id', - label: 'Id', + primaryLinkLabel: 'Id', description: 'Id', icon: 'Icon123', isCustom: false, @@ -789,8 +789,8 @@ export const mockPerformance = { domainName: 'google.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Google', annualRecurringRevenue: { @@ -810,8 +810,8 @@ export const mockPerformance = { updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, id: '20202020-2d40-4e49-8df4-9c6a049191df', @@ -819,13 +819,13 @@ export const mockPerformance = { phone: '+33788901235', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, tEst: '', position: 15, @@ -835,8 +835,8 @@ export const mockPerformance = { domainName: 'microsoft.com', xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, name: 'Microsoft', annualRecurringRevenue: { @@ -854,13 +854,13 @@ export const mockPerformance = { updatedAt: '2024-05-01T13:16:29.046Z', linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, fieldDefinition: { fieldMetadataId: '4e79f0b7-d100-4e89-a07b-315a710b8059', - label: 'Company', + primaryLinkLabel: 'Company', metadata: { fieldName: 'company', placeHolder: 'Company', @@ -885,7 +885,7 @@ export const mockPerformance = { visibleTableColumns: [ { fieldMetadataId: '07a8a574-ed28-4015-b456-c01ff3050e2b', - label: 'Name', + primaryLinkLabel: 'Name', metadata: { fieldName: 'name', placeHolder: 'Name', @@ -910,7 +910,7 @@ export const mockPerformance = { }, { fieldMetadataId: 'ca54aa1d-1ecb-486c-99ea-b8240871a0da', - label: 'Email', + primaryLinkLabel: 'Email', metadata: { fieldName: 'email', placeHolder: 'Email', @@ -932,7 +932,7 @@ export const mockPerformance = { }, { fieldMetadataId: '9058056e-36b3-4a3f-9037-f0bca9744296', - label: 'Company', + primaryLinkLabel: 'Company', metadata: { fieldName: 'company', placeHolder: 'Company', @@ -956,7 +956,7 @@ export const mockPerformance = { }, { fieldMetadataId: 'cc63e38f-56d6-495e-a545-edf101e400cf', - label: 'Phone', + primaryLinkLabel: 'Phone', metadata: { fieldName: 'phone', placeHolder: 'Phone', @@ -978,7 +978,7 @@ export const mockPerformance = { }, { fieldMetadataId: 'f0a290ac-fa74-48da-a77f-db221cb0206a', - label: 'Creation date', + primaryLinkLabel: 'Creation date', metadata: { fieldName: 'createdAt', placeHolder: 'Creation date', @@ -1000,7 +1000,7 @@ export const mockPerformance = { }, { fieldMetadataId: '21238919-5d92-402e-8124-367948ef86e6', - label: 'City', + primaryLinkLabel: 'City', metadata: { fieldName: 'city', placeHolder: 'City', @@ -1022,7 +1022,7 @@ export const mockPerformance = { }, { fieldMetadataId: '54561a8e-b918-471b-a363-5a77f49cd348', - label: 'Job Title', + primaryLinkLabel: 'Job Title', metadata: { fieldName: 'jobTitle', placeHolder: 'Job Title', @@ -1044,7 +1044,7 @@ export const mockPerformance = { }, { fieldMetadataId: '430af81e-2a8c-4ce2-9969-c0f0e91818bb', - label: 'Linkedin', + primaryLinkLabel: 'Linkedin', metadata: { fieldName: 'linkedinLink', placeHolder: 'Linkedin', @@ -1063,13 +1063,13 @@ export const mockPerformance = { isSortable: false, isFilterable: true, defaultValue: { - url: "''", - label: "''", + primaryLinkUrl: "''", + primaryLinkLabel: "''", }, }, { fieldMetadataId: 'c470144b-6692-47cb-a28f-04610d9d641c', - label: 'X', + primaryLinkLabel: 'X', metadata: { fieldName: 'xLink', placeHolder: 'X', @@ -1088,8 +1088,8 @@ export const mockPerformance = { isSortable: false, isFilterable: true, defaultValue: { - url: "''", - label: "''", + primaryLinkUrl: "''", + primaryLinkLabel: "''", }, }, ], diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/__tests__/useOpenObjectRecordsSpreasheetImportDialog.test.tsx b/packages/twenty-front/src/modules/object-record/spreadsheet-import/__tests__/useOpenObjectRecordsSpreasheetImportDialog.test.tsx index a5f5a78e7..712ad24aa 100644 --- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/__tests__/useOpenObjectRecordsSpreasheetImportDialog.test.tsx +++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/__tests__/useOpenObjectRecordsSpreasheetImportDialog.test.tsx @@ -27,12 +27,14 @@ const companyMocks = [ createCompanies(data: $data, upsert: $upsert) { __typename xLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } linkedinLink { - label - url + primaryLinkUrl + primaryLinkLabel + secondaryLinks } domainName annualRecurringRevenue { diff --git a/packages/twenty-front/src/modules/people/types/Person.ts b/packages/twenty-front/src/modules/people/types/Person.ts index eef68681e..9d9cee051 100644 --- a/packages/twenty-front/src/modules/people/types/Person.ts +++ b/packages/twenty-front/src/modules/people/types/Person.ts @@ -12,14 +12,14 @@ export type Person = { avatarUrl?: string; jobTitle: string; linkedinLink: { - __typename?: 'Link'; - url: string; - label: string; + __typename?: 'Links'; + primaryLinkUrl: string; + primaryLinkLabel: string; }; xLink: { - __typename?: 'Link'; - url: string; - label: string; + __typename?: 'Links'; + primaryLinkUrl: string; + primaryLinkLabel: string; }; city: string; email: string; @@ -30,11 +30,5 @@ export type Person = { __typename: 'Links'; primaryLinkUrl: string; primaryLinkLabel: ''; - secondaryLinks?: - | { - url: string; - label: string; - }[] - | null; }; }; diff --git a/packages/twenty-front/src/modules/search/hooks/__mocks__/useFilteredSearchEntityQuery.ts b/packages/twenty-front/src/modules/search/hooks/__mocks__/useFilteredSearchEntityQuery.ts index 34aaee597..28c49a9dd 100644 --- a/packages/twenty-front/src/modules/search/hooks/__mocks__/useFilteredSearchEntityQuery.ts +++ b/packages/twenty-front/src/modules/search/hooks/__mocks__/useFilteredSearchEntityQuery.ts @@ -36,8 +36,8 @@ export const query = gql` } } xLink { - label - url + primaryLinkLabel + primaryLinkUrl } id pointOfContactForOpportunities { @@ -63,12 +63,12 @@ export const query = gql` company { id xLink { - label - url + primaryLinkLabel + primaryLinkUrl } linkedinLink { - label - url + primaryLinkLabel + primaryLinkUrl } domainName annualRecurringRevenue { @@ -139,8 +139,8 @@ export const query = gql` } phone linkedinLink { - label - url + primaryLinkLabel + primaryLinkUrl } updatedAt avatarUrl diff --git a/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockCompanies.ts b/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockCompanies.ts index c1bd90732..c65dbadf8 100644 --- a/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockCompanies.ts +++ b/packages/twenty-front/src/modules/sign-in-background-mock/constants/SignInBackgroundMockCompanies.ts @@ -34,8 +34,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: 'zdf', xLink: { __typename: 'Link', - label: 'asd', - url: 'asd.com', + primaryLinkLabel: 'asd', + primaryLinkUrl: 'asd.com', }, name: { __typename: 'FullName', @@ -46,8 +46,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: 'asd', - url: 'asd.com', + primaryLinkLabel: 'asd', + primaryLinkUrl: 'asd.com', }, }, }, @@ -61,8 +61,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'qonto', - url: 'https://www.linkedin.com/company/qonto', + primaryLinkLabel: 'qonto', + primaryLinkUrl: 'https://www.linkedin.com/company/qonto', }, opportunities: { __typename: 'OpportunityConnection', @@ -71,8 +71,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -143,8 +143,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -155,8 +155,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -173,8 +173,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -185,8 +185,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -203,8 +203,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -215,8 +215,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -233,8 +233,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -245,8 +245,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -263,8 +263,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -275,8 +275,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -290,8 +290,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'google', - url: 'https://www.linkedin.com/company/google', + primaryLinkLabel: 'google', + primaryLinkUrl: 'https://www.linkedin.com/company/google', }, opportunities: { __typename: 'OpportunityConnection', @@ -300,8 +300,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -347,8 +347,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -359,8 +359,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -377,8 +377,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -389,8 +389,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -404,8 +404,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'facebook', - url: 'https://www.linkedin.com/company/facebook', + primaryLinkLabel: 'facebook', + primaryLinkUrl: 'https://www.linkedin.com/company/facebook', }, opportunities: { __typename: 'OpportunityConnection', @@ -434,8 +434,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -477,8 +477,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'netflix', - url: 'https://www.linkedin.com/company/netflix', + primaryLinkLabel: 'netflix', + primaryLinkUrl: 'https://www.linkedin.com/company/netflix', }, opportunities: { __typename: 'OpportunityConnection', @@ -487,8 +487,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -534,8 +534,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -546,8 +546,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -564,8 +564,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -576,8 +576,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -594,8 +594,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -606,8 +606,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -621,8 +621,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'microsoft', - url: 'https://www.linkedin.com/company/microsoft', + primaryLinkLabel: 'microsoft', + primaryLinkUrl: 'https://www.linkedin.com/company/microsoft', }, opportunities: { __typename: 'OpportunityConnection', @@ -670,8 +670,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -712,8 +712,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'libeo', - url: 'https://www.linkedin.com/company/libeo', + primaryLinkLabel: 'libeo', + primaryLinkUrl: 'https://www.linkedin.com/company/libeo', }, opportunities: { __typename: 'OpportunityConnection', @@ -722,8 +722,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -765,8 +765,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'airbnb', - url: 'https://www.linkedin.com/company/airbnb', + primaryLinkLabel: 'airbnb', + primaryLinkUrl: 'https://www.linkedin.com/company/airbnb', }, opportunities: { __typename: 'OpportunityConnection', @@ -775,8 +775,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -819,8 +819,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'claap', - url: 'https://www.linkedin.com/company/claap', + primaryLinkLabel: 'claap', + primaryLinkUrl: 'https://www.linkedin.com/company/claap', }, opportunities: { __typename: 'OpportunityConnection', @@ -829,8 +829,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -877,8 +877,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -889,8 +889,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -904,8 +904,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'algolia', - url: 'https://www.linkedin.com/company/algolia', + primaryLinkLabel: 'algolia', + primaryLinkUrl: 'https://www.linkedin.com/company/algolia', }, opportunities: { __typename: 'OpportunityConnection', @@ -914,8 +914,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -960,8 +960,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -972,8 +972,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -987,8 +987,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'samsung', - url: 'https://www.linkedin.com/company/samsung', + primaryLinkLabel: 'samsung', + primaryLinkUrl: 'https://www.linkedin.com/company/samsung', }, opportunities: { __typename: 'OpportunityConnection', @@ -997,8 +997,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -1041,8 +1041,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'hasura', - url: 'https://www.linkedin.com/company/hasura', + primaryLinkLabel: 'hasura', + primaryLinkUrl: 'https://www.linkedin.com/company/hasura', }, opportunities: { __typename: 'OpportunityConnection', @@ -1051,8 +1051,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -1092,8 +1092,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'wework', - url: 'https://www.linkedin.com/company/wework', + primaryLinkLabel: 'wework', + primaryLinkUrl: 'https://www.linkedin.com/company/wework', }, opportunities: { __typename: 'OpportunityConnection', @@ -1102,8 +1102,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', @@ -1150,8 +1150,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: '', xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -1162,8 +1162,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -1180,8 +1180,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ jobTitle: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, name: { __typename: 'FullName', @@ -1192,8 +1192,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ updatedAt: '2023-11-23T15:38:03.700Z', linkedinLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, }, }, @@ -1207,8 +1207,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ idealCustomerProfile: null, linkedinLink: { __typename: 'Link', - label: 'linkedin', - url: 'https://www.linkedin.com/company/linkedin', + primaryLinkLabel: 'linkedin', + primaryLinkUrl: 'https://www.linkedin.com/company/linkedin', }, opportunities: { __typename: 'OpportunityConnection', @@ -1237,8 +1237,8 @@ export const SIGN_IN_BACKGROUND_MOCK_COMPANIES = [ accountOwnerId: null, xLink: { __typename: 'Link', - label: null, - url: null, + primaryLinkLabel: null, + primaryLinkUrl: null, }, activityTargets: { __typename: 'ActivityTargetConnection', diff --git a/packages/twenty-front/src/testing/mock-data/companies.ts b/packages/twenty-front/src/testing/mock-data/companies.ts index 41e7751cc..8f9a08db7 100644 --- a/packages/twenty-front/src/testing/mock-data/companies.ts +++ b/packages/twenty-front/src/testing/mock-data/companies.ts @@ -57,13 +57,13 @@ export const companiesQueryResult = { idealCustomerProfile: true, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -98,8 +98,8 @@ export const companiesQueryResult = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -114,8 +114,8 @@ export const companiesQueryResult = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -130,8 +130,8 @@ export const companiesQueryResult = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -160,13 +160,13 @@ export const companiesQueryResult = { position: 2, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -194,13 +194,13 @@ export const companiesQueryResult = { position: 3, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -228,13 +228,13 @@ export const companiesQueryResult = { position: 4, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -262,13 +262,13 @@ export const companiesQueryResult = { position: 5, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -296,13 +296,13 @@ export const companiesQueryResult = { position: 6, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -330,13 +330,13 @@ export const companiesQueryResult = { position: 7, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -364,13 +364,13 @@ export const companiesQueryResult = { position: 8, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -398,13 +398,13 @@ export const companiesQueryResult = { position: 9, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -432,13 +432,13 @@ export const companiesQueryResult = { position: 10, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -466,13 +466,13 @@ export const companiesQueryResult = { position: 11, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -500,13 +500,13 @@ export const companiesQueryResult = { position: 12, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -534,13 +534,13 @@ export const companiesQueryResult = { position: 13, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, diff --git a/packages/twenty-front/src/testing/mock-data/people.ts b/packages/twenty-front/src/testing/mock-data/people.ts index 89bff03b0..64b24546d 100644 --- a/packages/twenty-front/src/testing/mock-data/people.ts +++ b/packages/twenty-front/src/testing/mock-data/people.ts @@ -65,8 +65,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -94,8 +94,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -110,8 +110,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: 'singlelink.com', + primaryLinkLabel: '', + primaryLinkUrl: 'singlelink.com', }, bestCompany: { __typename: 'Company', @@ -128,8 +128,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 13, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -138,8 +138,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, company: { @@ -157,8 +157,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 1, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -167,8 +167,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -200,8 +200,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -209,8 +209,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { primaryLinkLabel: '', secondaryLinks: [ { - url: 'https://paris.com', - label: '', + primaryLinkUrl: 'https://paris.com', + primaryLinkLabel: '', }, ], }, @@ -221,8 +221,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -237,8 +237,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -255,8 +255,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 1, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -265,8 +265,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -298,8 +298,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -314,8 +314,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -330,8 +330,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -348,8 +348,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 3, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -358,8 +358,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -391,8 +391,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -407,8 +407,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -423,8 +423,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -441,8 +441,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 3, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -451,8 +451,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -484,8 +484,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -500,8 +500,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -516,8 +516,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -534,8 +534,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 4, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -544,8 +544,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -577,8 +577,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -593,8 +593,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -609,8 +609,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -627,8 +627,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 4, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -637,8 +637,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -670,8 +670,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -686,8 +686,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -702,8 +702,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -720,8 +720,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 4, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -730,8 +730,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -763,8 +763,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -779,8 +779,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -795,8 +795,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -813,8 +813,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 5, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -823,8 +823,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -856,8 +856,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, testLinks: { __typename: 'Links', @@ -872,8 +872,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -888,8 +888,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -906,8 +906,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 5, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -916,8 +916,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -949,8 +949,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, testLinks: { __typename: 'Links', @@ -965,8 +965,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -981,8 +981,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -999,8 +999,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 5, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1009,8 +1009,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -1042,8 +1042,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -1058,8 +1058,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -1074,8 +1074,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -1092,8 +1092,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 6, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1102,8 +1102,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -1135,8 +1135,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, testLinks: { __typename: 'Links', @@ -1151,8 +1151,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -1167,8 +1167,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -1185,8 +1185,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 6, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1195,8 +1195,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -1228,8 +1228,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, testLinks: { __typename: 'Links', @@ -1244,8 +1244,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -1260,8 +1260,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -1278,8 +1278,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 6, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1288,8 +1288,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -1321,8 +1321,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: 'twitter.com', + primaryLinkLabel: '', + primaryLinkUrl: 'twitter.com', }, testLinks: { __typename: 'Links', @@ -1337,8 +1337,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -1353,8 +1353,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -1371,8 +1371,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 6, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1381,8 +1381,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, @@ -1414,8 +1414,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, testLinks: { __typename: 'Links', @@ -1430,8 +1430,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, linkedinLink: { __typename: 'Link', - label: '', - url: 'linkedin.com', + primaryLinkLabel: '', + primaryLinkUrl: 'linkedin.com', }, testAddress: { __typename: 'Address', @@ -1446,8 +1446,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, testLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, company: { __typename: 'Company', @@ -1464,8 +1464,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { position: 6, linkedinLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, annualRecurringRevenue: { __typename: 'Currency', @@ -1474,8 +1474,8 @@ export const peopleQueryResult: { people: RecordGqlConnection } = { }, xLink: { __typename: 'Link', - label: '', - url: '', + primaryLinkLabel: '', + primaryLinkUrl: '', }, }, }, diff --git a/packages/twenty-front/src/testing/mock-data/timeline-activities.ts b/packages/twenty-front/src/testing/mock-data/timeline-activities.ts index 88e272a39..5051ea807 100644 --- a/packages/twenty-front/src/testing/mock-data/timeline-activities.ts +++ b/packages/twenty-front/src/testing/mock-data/timeline-activities.ts @@ -110,7 +110,7 @@ export const mockedTimelineActivities: Array = [ }, { properties: - '{"after": {"id": "ce40eca0-8f4b-4bba-ba91-5cbd870c64d0", "name": "", "xLink": {"url": "", "label": ""}, "events": {"edges": [], "__typename": "eventConnection"}, "people": {"edges": [], "__typename": "personConnection"}, "address": "", "position": 0.5, "createdAt": "2024-03-24T21:33:45.765295", "employees": null, "favorites": {"edges": [], "__typename": "favoriteConnection"}, "updatedAt": "2024-03-24T21:33:45.765295", "__typename": "company", "domainName": "", "attachments": {"edges": [], "__typename": "attachmentConnection"}, "accountOwner": null, "linkedinLink": {"url": "", "label": ""}, "opportunities": {"edges": [], "__typename": "opportunityConnection"}, "accountOwnerId": null, "activityTargets": {"edges": [], "__typename": "activityTargetConnection"}, "idealCustomerProfile": false, "annualRecurringRevenue": {"amountMicros": null, "currencyCode": ""}}}', + '{"after": {"id": "ce40eca0-8f4b-4bba-ba91-5cbd870c64d0", "name": "", "xLink": {"primaryLinkUrl": "", "primaryLinkLabel": ""}, "events": {"edges": [], "__typename": "eventConnection"}, "people": {"edges": [], "__typename": "personConnection"}, "address": "", "position": 0.5, "createdAt": "2024-03-24T21:33:45.765295", "employees": null, "favorites": {"edges": [], "__typename": "favoriteConnection"}, "updatedAt": "2024-03-24T21:33:45.765295", "__typename": "company", "domainName": "", "attachments": {"edges": [], "__typename": "attachmentConnection"}, "accountOwner": null, "linkedinLink": {"url": "", "label": ""}, "opportunities": {"edges": [], "__typename": "opportunityConnection"}, "accountOwnerId": null, "activityTargets": {"edges": [], "__typename": "activityTargetConnection"}, "idealCustomerProfile": false, "annualRecurringRevenue": {"amountMicros": null, "currencyCode": ""}}}', updatedAt: '2023-05-26T10:12:42.33625+00:00', id: '1ad72a42-6ab4-4474-a62a-a57cae3c0298', name: 'company.created', diff --git a/packages/twenty-front/src/testing/mock-data/timeline-calendar-events.ts b/packages/twenty-front/src/testing/mock-data/timeline-calendar-events.ts index 978ccfd73..0eafecbe1 100644 --- a/packages/twenty-front/src/testing/mock-data/timeline-calendar-events.ts +++ b/packages/twenty-front/src/testing/mock-data/timeline-calendar-events.ts @@ -1,5 +1,5 @@ -import { CalendarChannelVisibility } from '~/generated/graphql'; import { TimelineCalendarEvent } from '~/generated-metadata/graphql'; +import { CalendarChannelVisibility } from '~/generated/graphql'; export const mockedTimelineCalendarEvents: TimelineCalendarEvent[] = [ {