From ea4e3b4319fa76f2d6a2507fce6acf0f5e46f830 Mon Sep 17 00:00:00 2001 From: darth-coder00 <86726556+darth-coder00@users.noreply.github.com> Date: Wed, 3 Nov 2021 19:02:28 +0530 Subject: [PATCH] UI: Improved Add tag UX and added services search-bar back Also fixed services loader issue (#1043) * UI: Improved Add tag UX and added services search-bar back Also fixed services loader issue * Addressing comments --- .../components/EntityTable/EntityTable.component.tsx | 10 +++------- .../src/main/resources/ui/src/pages/services/index.tsx | 8 ++++++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/catalog-rest-service/src/main/resources/ui/src/components/EntityTable/EntityTable.component.tsx b/catalog-rest-service/src/main/resources/ui/src/components/EntityTable/EntityTable.component.tsx index 3b48110b931..fe1c8f38ebd 100644 --- a/catalog-rest-service/src/main/resources/ui/src/components/EntityTable/EntityTable.component.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/components/EntityTable/EntityTable.component.tsx @@ -516,12 +516,8 @@ const EntityTable = ({ /> ) : ( - - + + ) ) : null} @@ -567,7 +563,7 @@ const EntityTable = ({ {checkIfJoinsAvailable(row.original.name) && (
- + Frequently joined columns: diff --git a/catalog-rest-service/src/main/resources/ui/src/pages/services/index.tsx b/catalog-rest-service/src/main/resources/ui/src/pages/services/index.tsx index da106e9872e..badd774cd0b 100644 --- a/catalog-rest-service/src/main/resources/ui/src/pages/services/index.tsx +++ b/catalog-rest-service/src/main/resources/ui/src/pages/services/index.tsx @@ -394,7 +394,11 @@ const ServicesPage = () => { value: service.collection.name, }; }); - setIsLoading(false); + // Removed "setIsLoading(false)" from here, + // If there are service categories available + // Loader should wait for each category to fetch list of services + // Then only it should stop Loading and show available data or No data template + // This is handled in "updateServiceList" method } else { setIsLoading(false); } @@ -423,7 +427,7 @@ const ServicesPage = () => {
- {searchText || serviceList.length > 10 ? ( + {searchText || serviceList.length > 0 ? (