Skip to content

Commit 2d37d02

Browse files
Merge pull request #836 from contentstack/feature/aem-final
Feature/aem final
2 parents c33a2b2 + b5823fa commit 2d37d02

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

ui/src/components/ContentMapper/index.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@
151151
}
152152
.Table {
153153
border-left: 0 none;
154-
// min-height: inherit;
154+
min-height: 26.25rem;
155+
// &__rowgroup {
156+
// display: flex;
157+
// flex: 1;
158+
// flex-direction: column;
159+
// }
155160
.Table__body__row {
156161
// height: auto!important;
157162
// min-height: 80px;

ui/src/components/ContentMapper/index.tsx

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
760760
}
761761

762762
setItemStatusMap(itemStatusMap);
763+
setLoading(true);
764+
765+
766+
// console.info('loading', loading);
763767

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

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

771775
setItemStatusMap({ ...itemStatusMap });
776+
setLoading(false);
772777

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

@@ -777,7 +782,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
777782
setSelectedEntries(validTableData ?? []);
778783
setTotalCounts(validTableData?.length);
779784
setInitialRowSelectedData(validTableData?.filter((item: FieldMapType) => !item?.isDeleted))
780-
setIsLoading(false);
785+
// setIsLoading(false);
781786
generateSourceGroupSchema(validTableData);
782787
} catch (error) {
783788
console.error('fetchData -> error', error);
@@ -800,7 +805,7 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
800805
}
801806

802807
setItemStatusMap({ ...itemStatusMapCopy });
803-
setLoading(true);
808+
// setLoading(true);
804809

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

@@ -2645,20 +2650,20 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
26452650
initialRowSelectedData={initialRowSelectedData}
26462651
initialSelectedRowIds={rowIds}
26472652
itemSize={80}
2648-
v2Features={{
2649-
isNewEmptyState: true
2650-
}}
2651-
customEmptyState={
2652-
<EmptyState
2653-
forPage="list"
2654-
heading={<div className="empty_search_heading">No Fields available</div>}
2655-
moduleIcon="NoSearchResult"
2656-
description="Try changing the search query to find what you are looking for."
2657-
version="v2"
2658-
testId="no-results-found-page"
2659-
className="custom-empty-state"
2660-
/>
2661-
}
2653+
// v2Features={{
2654+
// isNewEmptyState: true
2655+
// }}
2656+
// customEmptyState={
2657+
// <EmptyState
2658+
// forPage="list"
2659+
// heading={<div className="empty_search_heading">No Fields available</div>}
2660+
// moduleIcon="NoSearchResult"
2661+
// description="Try changing the search query to find what you are looking for."
2662+
// version="v2"
2663+
// testId="no-results-found-page"
2664+
// className="custom-empty-state"
2665+
// />
2666+
// }
26622667
withExportCta={{
26632668
component: (
26642669
<div className='d-flex align-items-center'>

0 commit comments

Comments
 (0)