Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ui/src/components/ContentMapper/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,12 @@
}
.Table {
border-left: 0 none;
// min-height: inherit;
min-height: 26.25rem;
// &__rowgroup {
// display: flex;
// flex: 1;
// flex-direction: column;
// }
.Table__body__row {
// height: auto!important;
// min-height: 80px;
Expand Down
37 changes: 21 additions & 16 deletions ui/src/components/ContentMapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
}

setItemStatusMap(itemStatusMap);
setLoading(true);


// console.info('loading', loading);

const { data } = await getFieldMapping(contentTypeId || '', 0, 1000, searchText || '', projectId);

Expand All @@ -769,6 +773,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
}

setItemStatusMap({ ...itemStatusMap });
setLoading(false);

const validTableData = data?.fieldMapping?.filter((field: FieldMapType) => field?.otherCmsType !== undefined);

Expand All @@ -777,7 +782,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
setSelectedEntries(validTableData ?? []);
setTotalCounts(validTableData?.length);
setInitialRowSelectedData(validTableData?.filter((item: FieldMapType) => !item?.isDeleted))
setIsLoading(false);
// setIsLoading(false);
generateSourceGroupSchema(validTableData);
} catch (error) {
console.error('fetchData -> error', error);
Expand All @@ -800,7 +805,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
}

setItemStatusMap({ ...itemStatusMapCopy });
setLoading(true);
// setLoading(true);

const { data } = await getFieldMapping(contentTypeUid || '', skip, limit, searchText || '', projectId);

Expand Down Expand Up @@ -2645,20 +2650,20 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
initialRowSelectedData={initialRowSelectedData}
initialSelectedRowIds={rowIds}
itemSize={80}
v2Features={{
isNewEmptyState: true
}}
customEmptyState={
<EmptyState
forPage="list"
heading={<div className="empty_search_heading">No Fields available</div>}
moduleIcon="NoSearchResult"
description="Try changing the search query to find what you are looking for."
version="v2"
testId="no-results-found-page"
className="custom-empty-state"
/>
}
// v2Features={{
// isNewEmptyState: true
// }}
// customEmptyState={
// <EmptyState
// forPage="list"
// heading={<div className="empty_search_heading">No Fields available</div>}
// moduleIcon="NoSearchResult"
// description="Try changing the search query to find what you are looking for."
// version="v2"
// testId="no-results-found-page"
// className="custom-empty-state"
// />
// }
withExportCta={{
component: (
<div className='d-flex align-items-center'>
Expand Down