Skip to content

Commit

Permalink
[admin] Fix values list on tree attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
TdyP committed Jul 20, 2023
1 parent e6e8bb3 commit ace38ea
Show file tree
Hide file tree
Showing 39 changed files with 89 additions and 489 deletions.
4 changes: 3 additions & 1 deletion apps/admin/src/__mocks__/common/records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const mockRecord: RecordIdentity_whoAmI = {
medium: 'path/to/preview.png',
big: 'path/to/preview.png',
huge: 'path/to/preview.png',
pdf: 'path/to/file.pdf'
pdf: 'path/to/file.pdf',
file: null,
original: 'path/to/file.png'
}
};
8 changes: 5 additions & 3 deletions apps/admin/src/__mocks__/user.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
// Copyright LEAV Solutions 2017
// This file is released under LGPL V3
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
import {RecordIdentity, RecordIdentity_whoAmI_preview} from '_gqlTypes/RecordIdentity';
import {RecordIdentity} from '_gqlTypes/RecordIdentity';

export const mockPreviews: RecordIdentity_whoAmI_preview = {
export const mockPreviews: Preview = {
tiny: '/fake/url/tiny.jpg',
small: '/fake/url/small.jpg',
medium: '/fake/url/medium.jpg',
big: '/fake/url/big.jpg',
huge: '/fake/url/huge.jpg',
pdf: ''
pdf: '',
file: null,
original: '/fake/url/original.jpg'
};

export const mockModifier: RecordIdentity = {
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/APPLICATION_EVENTS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_lib
label: SystemTranslation | null;
}

export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI {
id: string;
library: APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_library;
label: string | null;
color: string | null;
preview: APPLICATION_EVENTS_applicationEvent_application_icon_whoAmI_preview | null;
preview: Preview | null;
}

export interface APPLICATION_EVENTS_applicationEvent_application_icon {
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/ApplicationDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface ApplicationDetails_icon_whoAmI_library {
label: SystemTranslation | null;
}

export interface ApplicationDetails_icon_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface ApplicationDetails_icon_whoAmI {
id: string;
library: ApplicationDetails_icon_whoAmI_library;
label: string | null;
color: string | null;
preview: ApplicationDetails_icon_whoAmI_preview | null;
preview: Preview | null;
}

export interface ApplicationDetails_icon {
Expand Down
34 changes: 4 additions & 30 deletions apps/admin/src/_gqlTypes/AttributeValuesListDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,12 @@ export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues
label: SystemTranslation | null;
}

export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI {
id: string;
library: AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_library;
label: string | null;
color: string | null;
preview: AttributeValuesListDetails_LinkAttribute_values_list_linkValues_whoAmI_preview | null;
preview: Preview | null;
}

export interface AttributeValuesListDetails_LinkAttribute_values_list_linkValues {
Expand All @@ -79,21 +70,12 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues
label: SystemTranslation | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI {
id: string;
library: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_library;
label: string | null;
color: string | null;
preview: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record_whoAmI_preview | null;
preview: Preview | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record {
Expand All @@ -105,21 +87,12 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues
label: SystemTranslation | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI {
id: string;
library: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_library;
label: string | null;
color: string | null;
preview: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview | null;
preview: Preview | null;
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors_record {
Expand All @@ -131,6 +104,7 @@ export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues
}

export interface AttributeValuesListDetails_TreeAttribute_values_list_treeValues {
id: string;
record: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_record | null;
ancestors: AttributeValuesListDetails_TreeAttribute_values_list_treeValues_ancestors[] | null;
}
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/CREATE_RECORD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,12 @@ export interface CREATE_RECORD_createRecord_whoAmI_library {
label: SystemTranslation | null;
}

export interface CREATE_RECORD_createRecord_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface CREATE_RECORD_createRecord_whoAmI {
id: string;
library: CREATE_RECORD_createRecord_whoAmI_library;
label: string | null;
color: string | null;
preview: CREATE_RECORD_createRecord_whoAmI_preview | null;
preview: Preview | null;
}

export interface CREATE_RECORD_createRecord {
Expand Down
33 changes: 3 additions & 30 deletions apps/admin/src/_gqlTypes/GET_API_KEYS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI_library {
label: SystemTranslation | null;
}

export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_API_KEYS_apiKeys_list_createdBy_whoAmI {
id: string;
library: GET_API_KEYS_apiKeys_list_createdBy_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_API_KEYS_apiKeys_list_createdBy_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_API_KEYS_apiKeys_list_createdBy {
Expand All @@ -43,21 +34,12 @@ export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_library {
label: SystemTranslation | null;
}

export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI {
id: string;
library: GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_API_KEYS_apiKeys_list_modifiedBy_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_API_KEYS_apiKeys_list_modifiedBy {
Expand All @@ -69,21 +51,12 @@ export interface GET_API_KEYS_apiKeys_list_user_whoAmI_library {
label: SystemTranslation | null;
}

export interface GET_API_KEYS_apiKeys_list_user_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_API_KEYS_apiKeys_list_user_whoAmI {
id: string;
library: GET_API_KEYS_apiKeys_list_user_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_API_KEYS_apiKeys_list_user_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_API_KEYS_apiKeys_list_user {
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/GET_APPLICATIONS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface GET_APPLICATIONS_applications_list_icon_whoAmI_library {
label: SystemTranslation | null;
}

export interface GET_APPLICATIONS_applications_list_icon_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_APPLICATIONS_applications_list_icon_whoAmI {
id: string;
library: GET_APPLICATIONS_applications_list_icon_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_APPLICATIONS_applications_list_icon_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_APPLICATIONS_applications_list_icon {
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ENDPOINT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_libra
label: SystemTranslation | null;
}

export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI {
id: string;
library: GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_APPLICATION_BY_ENDPOINT_applications_list_icon_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_APPLICATION_BY_ENDPOINT_applications_list_icon {
Expand Down
11 changes: 1 addition & 10 deletions apps/admin/src/_gqlTypes/GET_APPLICATION_BY_ID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,12 @@ export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_library {
label: SystemTranslation | null;
}

export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_APPLICATION_BY_ID_applications_list_icon_whoAmI {
id: string;
library: GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_APPLICATION_BY_ID_applications_list_icon_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_APPLICATION_BY_ID_applications_list_icon {
Expand Down
34 changes: 4 additions & 30 deletions apps/admin/src/_gqlTypes/GET_ATTRIBUTES_VALUES_LIST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values
label: SystemTranslation | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI {
id: string;
library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_LinkAttribute_values_list_linkValues {
Expand Down Expand Up @@ -95,21 +86,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values
label: SystemTranslation | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI {
id: string;
library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record {
Expand All @@ -121,21 +103,12 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values
label: SystemTranslation | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview {
tiny: string | null;
small: string | null;
medium: string | null;
big: string | null;
huge: string | null;
pdf: string | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI {
id: string;
library: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_library;
label: string | null;
color: string | null;
preview: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record_whoAmI_preview | null;
preview: Preview | null;
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors_record {
Expand All @@ -147,6 +120,7 @@ export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values
}

export interface GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues {
id: string;
record: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_record | null;
ancestors: GET_ATTRIBUTES_VALUES_LIST_attributes_list_TreeAttribute_values_list_treeValues_ancestors[] | null;
}
Expand Down
Loading

0 comments on commit ace38ea

Please sign in to comment.