feat: simplify field preview logic in Settings (#5541)
Closes #5382 TODO: - [x] Test all field previews in app - [x] Fix tests - [x] Fix JSON preview
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { id } from 'date-fns/locale';
|
||||
import { CurrencyCode } from '@/object-record/record-field/types/CurrencyCode';
|
||||
import {
|
||||
FieldMetadataType,
|
||||
ObjectEdge,
|
||||
@ -3787,10 +3787,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
|
||||
isNullable: true,
|
||||
createdAt: '2024-04-08T12:48:49.538Z',
|
||||
updatedAt: '2024-04-08T12:48:49.538Z',
|
||||
defaultValue: {
|
||||
lastName: "''",
|
||||
firstName: "''",
|
||||
},
|
||||
defaultValue: null,
|
||||
relationDefinition: null,
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
@ -3876,10 +3873,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
|
||||
isNullable: true,
|
||||
createdAt: '2024-04-08T12:48:49.538Z',
|
||||
updatedAt: '2024-04-08T12:48:49.538Z',
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
},
|
||||
defaultValue: null,
|
||||
relationDefinition: null,
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
@ -10562,7 +10556,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
|
||||
updatedAt: '2024-04-08T12:48:49.538Z',
|
||||
defaultValue: {
|
||||
amountMicros: null,
|
||||
currencyCode: "''",
|
||||
currencyCode: `'${CurrencyCode.USD}'`,
|
||||
},
|
||||
relationDefinition: null,
|
||||
fromRelationMetadata: null,
|
||||
@ -10822,10 +10816,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
|
||||
isNullable: true,
|
||||
createdAt: '2024-04-08T12:48:49.538Z',
|
||||
updatedAt: '2024-04-08T12:48:49.538Z',
|
||||
defaultValue: {
|
||||
url: "''",
|
||||
label: "''",
|
||||
},
|
||||
defaultValue: null,
|
||||
relationDefinition: null,
|
||||
fromRelationMetadata: null,
|
||||
toRelationMetadata: null,
|
||||
@ -12259,7 +12250,7 @@ export const mockedStandardObjectMetadataQueryResult: ObjectMetadataItemsQuery =
|
||||
nameSingular: 'company',
|
||||
namePlural: 'companies',
|
||||
isSystem: false,
|
||||
isRemote: false,
|
||||
isRemote: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -12345,7 +12336,7 @@ isRemote: false,
|
||||
nameSingular: 'opportunity',
|
||||
namePlural: 'opportunities',
|
||||
isSystem: false,
|
||||
isRemote: false,
|
||||
isRemote: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -12408,7 +12399,7 @@ isRemote: false,
|
||||
nameSingular: 'listing',
|
||||
namePlural: 'listings',
|
||||
isSystem: false,
|
||||
isRemote: false,
|
||||
isRemote: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -13027,7 +13018,7 @@ isRemote: false,
|
||||
nameSingular: 'opportunity',
|
||||
namePlural: 'opportunities',
|
||||
isSystem: false,
|
||||
isRemote: false,
|
||||
isRemote: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -13218,7 +13209,7 @@ isRemote: false,
|
||||
nameSingular: 'company',
|
||||
namePlural: 'companies',
|
||||
isSystem: false,
|
||||
isRemote: false,
|
||||
isRemote: false,
|
||||
},
|
||||
},
|
||||
relationDefinition: {
|
||||
|
||||
Reference in New Issue
Block a user