Fix favorite seeds and prefill

This commit is contained in:
Charles Bochet
2023-11-17 16:44:26 +01:00
parent baf1260443
commit f58e4263bc
7 changed files with 60 additions and 26 deletions

View File

@ -103,7 +103,7 @@ export const viewPrefillData = async (
size: 150,
},
{
fieldMetadataId: objectMetadataMap['companyV2'].fields['linkedinUrl'],
fieldMetadataId: objectMetadataMap['companyV2'].fields['linkedinLink'],
viewId: viewIdMap['All Companies (V2)'],
position: 5,
isVisible: true,
@ -167,14 +167,14 @@ export const viewPrefillData = async (
size: 150,
},
{
fieldMetadataId: objectMetadataMap['personV2'].fields['linkedinUrl'],
fieldMetadataId: objectMetadataMap['personV2'].fields['linkedinLink'],
viewId: viewIdMap['All People (V2)'],
position: 7,
isVisible: true,
size: 150,
},
{
fieldMetadataId: objectMetadataMap['personV2'].fields['xUrl'],
fieldMetadataId: objectMetadataMap['personV2'].fields['xLink'],
viewId: viewIdMap['All People (V2)'],
position: 8,
isVisible: true,

View File

@ -31,12 +31,10 @@ const favoriteMetadata = {
type: FieldMetadataType.RELATION,
name: 'workspaceMember',
label: 'Workspace Member',
targetColumnMap: {
value: 'workspaceMemberId',
},
targetColumnMap: {},
description: 'Favorite workspace member',
icon: 'IconCircleUser',
isNullable: false,
isNullable: true,
},
{
isCustom: false,
@ -44,12 +42,10 @@ const favoriteMetadata = {
type: FieldMetadataType.RELATION,
name: 'person',
label: 'Person',
targetColumnMap: {
value: 'personId',
},
targetColumnMap: {},
description: 'Favorite person',
icon: 'IconUser',
isNullable: false,
isNullable: true,
},
{
isCustom: false,
@ -57,12 +53,49 @@ const favoriteMetadata = {
type: FieldMetadataType.RELATION,
name: 'company',
label: 'Company',
targetColumnMap: {
value: 'companyId',
},
targetColumnMap: {},
description: 'Favorite company',
icon: 'IconBuildingSkyscraper',
isNullable: true,
},
{
isCustom: false,
isActive: true,
type: FieldMetadataType.UUID,
name: 'workspaceMemberId',
label: 'Workspace Member ID (foreign key)',
targetColumnMap: {},
description: 'Foreign key for workspace member',
icon: undefined,
isNullable: false,
isSystem: true,
defaultValue: undefined,
},
{
isCustom: false,
isActive: true,
type: FieldMetadataType.UUID,
name: 'personId',
label: 'Person ID (foreign key)',
targetColumnMap: {},
description: 'Foreign key for person',
icon: undefined,
isNullable: true,
isSystem: true,
defaultValue: undefined,
},
{
isCustom: false,
isActive: true,
type: FieldMetadataType.UUID,
name: 'companyId',
label: 'Company ID (foreign key)',
targetColumnMap: {},
description: 'Foreign key for company',
icon: undefined,
isNullable: true,
isSystem: true,
defaultValue: undefined,
},
],
};

View File

@ -54,10 +54,11 @@ const personMetadata = {
isCustom: false,
isActive: true,
type: FieldMetadataType.LINK,
name: 'linkedinUrl',
name: 'linkedinLink',
label: 'Linkedin',
targetColumnMap: {
value: 'linkedinUrl',
label: 'linkedinLinkLabel',
url: 'linkedinLinkUrl',
},
description: 'Contacts Linkedin account',
icon: 'IconBrandLinkedin',
@ -67,10 +68,11 @@ const personMetadata = {
isCustom: false,
isActive: true,
type: FieldMetadataType.LINK,
name: 'xUrl',
name: 'xLink',
label: 'X',
targetColumnMap: {
value: 'xUrl',
label: 'xLinkLabel',
url: 'xLinkUrl',
},
description: 'Contacts X/Twitter account',
icon: 'IconUser',