Fix view seeds (#2638)
This commit is contained in:
@ -89,7 +89,7 @@ export const viewPrefillData = async (
|
|||||||
},
|
},
|
||||||
// Person
|
// Person
|
||||||
{
|
{
|
||||||
fieldMetadataId: objectMetadataMap['person'].fields['firstName'], // TODO: change to displayName once we have name field type
|
fieldMetadataId: objectMetadataMap['person'].fields['name'],
|
||||||
viewId: viewIdMap['All People'],
|
viewId: viewIdMap['All People'],
|
||||||
position: 0,
|
position: 0,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
@ -137,95 +137,32 @@ export const viewPrefillData = async (
|
|||||||
isVisible: true,
|
isVisible: true,
|
||||||
size: 150,
|
size: 150,
|
||||||
},
|
},
|
||||||
// Companies
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'name',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 0,
|
|
||||||
isVisible: true,
|
|
||||||
size: 180,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'domainName',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 1,
|
|
||||||
isVisible: true,
|
|
||||||
size: 100,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'accountOwner',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 2,
|
|
||||||
isVisible: true,
|
|
||||||
size: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'createdAt',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 3,
|
|
||||||
isVisible: true,
|
|
||||||
size: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'employees',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 4,
|
|
||||||
isVisible: true,
|
|
||||||
size: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'linkedin',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 5,
|
|
||||||
isVisible: true,
|
|
||||||
size: 170,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'address',
|
|
||||||
viewId: viewIdMap['All companies'],
|
|
||||||
position: 6,
|
|
||||||
isVisible: true,
|
|
||||||
size: 170,
|
|
||||||
},
|
|
||||||
// Opportunity
|
// Opportunity
|
||||||
{
|
{
|
||||||
fieldMetadataId: 'amount',
|
fieldMetadataId: objectMetadataMap['opportunity'].fields['amount'],
|
||||||
viewId: viewIdMap['All opportunities'],
|
viewId: viewIdMap['All Opportunities'],
|
||||||
position: 0,
|
position: 0,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
size: 180,
|
size: 180,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldMetadataId: 'probability',
|
fieldMetadataId: objectMetadataMap['opportunity'].fields['probability'],
|
||||||
viewId: viewIdMap['All opportunities'],
|
viewId: viewIdMap['All Opportunities'],
|
||||||
position: 1,
|
position: 1,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
size: 150,
|
size: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldMetadataId: 'closeDate',
|
fieldMetadataId: objectMetadataMap['opportunity'].fields['closeDate'],
|
||||||
viewId: viewIdMap['All opportunities'],
|
viewId: viewIdMap['All Opportunities'],
|
||||||
position: 2,
|
position: 2,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
size: 100,
|
size: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldMetadataId: 'company',
|
fieldMetadataId:
|
||||||
viewId: viewIdMap['All opportunities'],
|
objectMetadataMap['opportunity'].fields['pointOfContact'],
|
||||||
position: 3,
|
viewId: viewIdMap['All Opportunities'],
|
||||||
isVisible: true,
|
|
||||||
size: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'createdAt',
|
|
||||||
viewId: viewIdMap['All opportunities'],
|
|
||||||
position: 4,
|
|
||||||
isVisible: true,
|
|
||||||
size: 150,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
fieldMetadataId: 'pointOfContact',
|
|
||||||
viewId: viewIdMap['All opportunities'],
|
|
||||||
position: 5,
|
position: 5,
|
||||||
isVisible: true,
|
isVisible: true,
|
||||||
size: 150,
|
size: 150,
|
||||||
|
|||||||
Reference in New Issue
Block a user