Fix icons not showing in sign-in background (#6513)

This commit is contained in:
Marie 2024-08-02 14:34:33 +02:00 committed by GitHub
parent 281bf689fa
commit 489e8def9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,7 @@
import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
export const COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID = '39403bee-314b-4f14-bc91-70d500397517';
export const getObjectMetadataItemsMock = () => { export const getObjectMetadataItemsMock = () => {
const mockArray = [ const mockArray = [
{ {
@ -1657,7 +1659,7 @@ export const getObjectMetadataItemsMock = () => {
"isSystem": false, "isSystem": false,
"createdAt": "2024-07-31T10:44:41.328Z", "createdAt": "2024-07-31T10:44:41.328Z",
"updatedAt": "2024-07-31T10:44:41.328Z", "updatedAt": "2024-07-31T10:44:41.328Z",
"labelIdentifierFieldMetadataId": "39403bee-314b-4f14-bc91-70d500397517", "labelIdentifierFieldMetadataId": COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
"imageIdentifierFieldMetadataId": null, "imageIdentifierFieldMetadataId": null,
"fields": [ "fields": [
{ {
@ -2118,7 +2120,7 @@ export const getObjectMetadataItemsMock = () => {
}, },
{ {
"__typename": "field", "__typename": "field",
"id": "39403bee-314b-4f14-bc91-70d500397517", "id": COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
"type": "TEXT", "type": "TEXT",
"name": "name", "name": "name",
"label": "Name", "label": "Name",

View File

@ -1,3 +1,4 @@
import { COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID } from '@/object-metadata/utils/getObjectMetadataItemsMock';
import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata'; import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata';
import { ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition'; import { ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition';
import { filterAvailableTableColumns } from '@/object-record/utils/filterAvailableTableColumns'; import { filterAvailableTableColumns } from '@/object-record/utils/filterAvailableTableColumns';
@ -41,7 +42,7 @@ export const SIGN_IN_BACKGROUND_MOCK_COLUMN_DEFINITIONS = (
}, },
{ {
position: 2, position: 2,
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c', fieldMetadataId: COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
label: 'Name', label: 'Name',
size: 100, size: 100,
type: FieldMetadataType.Text, type: FieldMetadataType.Text,

View File

@ -1,3 +1,4 @@
import { COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID } from '@/object-metadata/utils/getObjectMetadataItemsMock';
import { FilterDefinition } from '@/object-record/object-filter-dropdown/types/FilterDefinition'; import { FilterDefinition } from '@/object-record/object-filter-dropdown/types/FilterDefinition';
export const SIGN_IN_BACKGROUND_MOCK_FILTER_DEFINITIONS = [ export const SIGN_IN_BACKGROUND_MOCK_FILTER_DEFINITIONS = [
@ -14,7 +15,7 @@ export const SIGN_IN_BACKGROUND_MOCK_FILTER_DEFINITIONS = [
type: 'NUMBER', type: 'NUMBER',
}, },
{ {
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c', fieldMetadataId: COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
label: 'Name', label: 'Name',
iconName: 'IconBuildingSkyscraper', iconName: 'IconBuildingSkyscraper',
type: 'TEXT', type: 'TEXT',

View File

@ -1,3 +1,4 @@
import { COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID } from '@/object-metadata/utils/getObjectMetadataItemsMock';
import { SortDefinition } from '@/object-record/object-sort-dropdown/types/SortDefinition'; import { SortDefinition } from '@/object-record/object-sort-dropdown/types/SortDefinition';
export const SIGN_IN_BACKGROUND_MOCK_SORT_DEFINITIONS = [ export const SIGN_IN_BACKGROUND_MOCK_SORT_DEFINITIONS = [
@ -12,7 +13,7 @@ export const SIGN_IN_BACKGROUND_MOCK_SORT_DEFINITIONS = [
iconName: 'IconUsers', iconName: 'IconUsers',
}, },
{ {
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c', fieldMetadataId: COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
label: 'Name', label: 'Name',
iconName: 'IconBuildingSkyscraper', iconName: 'IconBuildingSkyscraper',
}, },

View File

@ -1,3 +1,4 @@
import { COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID } from '@/object-metadata/utils/getObjectMetadataItemsMock';
import { ViewField } from '@/views/types/ViewField'; import { ViewField } from '@/views/types/ViewField';
export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
@ -59,7 +60,7 @@ export const SIGN_IN_BACKGROUND_MOCK_VIEW_FIELDS = [
{ {
__typename: 'ViewField', __typename: 'ViewField',
id: 'cafacdc8-cbfc-4545-8242-94787f144ace', id: 'cafacdc8-cbfc-4545-8242-94787f144ace',
fieldMetadataId: '20202020-6d30-4111-9f40-b4301906fd3c', fieldMetadataId: COMPANY_LABEL_IDENTIFIER_FIELD_METADATA_ID,
size: 180, size: 180,
createdAt: '2023-11-23T15:38:03.706Z', createdAt: '2023-11-23T15:38:03.706Z',
viewId: '20202020-2441-4424-8163-4002c523d415', viewId: '20202020-2441-4424-8163-4002c523d415',