diff --git a/public/components/Main/__snapshots__/main.test.tsx.snap b/public/components/Main/__snapshots__/main.test.tsx.snap
index dd8d4cd..3002e16 100644
--- a/public/components/Main/__snapshots__/main.test.tsx.snap
+++ b/public/components/Main/__snapshots__/main.test.tsx.snap
@@ -246,51 +246,14 @@ exports[` spec click clear button 1`] = `
- Failed to load the tree
-
-
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -821,51 +784,14 @@ exports[` spec click run button, and response causes an error 1`] = `
-
- Failed to load the tree
+
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -1392,51 +1318,14 @@ exports[` spec click run button, and response is not ok 1`] = `
-
- Failed to load the tree
+
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -1963,51 +1852,14 @@ exports[` spec click run button, and response is ok 1`] = `
- Failed to load the tree
-
-
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -2534,51 +2386,14 @@ exports[` spec click run button, response fills null and missing values
- Failed to load the tree
-
-
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -3109,51 +2924,14 @@ exports[` spec click translation button, and response is ok 1`] = `
- Failed to load the tree
-
-
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -3683,50 +3461,14 @@ exports[` spec renders the component 1`] = `
-
- Failed to load the tree
+
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -4253,51 +3995,14 @@ exports[` spec renders the component and checks if Opensearch is selecte
- Failed to load the tree
-
-
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -6988,51 +6693,14 @@ exports[` spec renders the component and toggles ppl 1`] = `
-
- Failed to load the tree
+
-
-
-
-
-
- Fetching associated objects ...
-
-
-
-
-
+ Loading indices
@@ -7615,7 +7283,7 @@ exports[` spec renders the component for s3 glue and check sample query
- Loading tree data
+ Loading databases
-
Loading tree data
-
-
-
-
- Loading may take over 30 seconds
-
-
-
-
- Status: {isTreeLoading.status}
-
-
-
-
+
Loading indices
);
- const treeStateRenderer =
- isTreeLoading.message === '' ? (
+ const treeViewRenderer =
+ treeData.length === 0 ? (
+
+
+
+
+
+ No indices found
+
+ ) : (
+ );
+
+ const treeStateRenderer =
+ isTreeLoading.message === '' ? (
+ treeViewRenderer
) : (
- Failed to load the tree
+ Failed to load indices
diff --git a/public/components/SQLPage/sql_catalog_tree/s3_tree.tsx b/public/components/SQLPage/sql_catalog_tree/s3_tree.tsx
index 1f449b2..aac963f 100644
--- a/public/components/SQLPage/sql_catalog_tree/s3_tree.tsx
+++ b/public/components/SQLPage/sql_catalog_tree/s3_tree.tsx
@@ -288,7 +288,7 @@ export const S3Tree = ({ dataSource, updateSQLQueries, refreshTree }: S3TreeProp
- Loading tree data
+ Loading databases
@@ -306,20 +306,33 @@ export const S3Tree = ({ dataSource, updateSQLQueries, refreshTree }: S3TreeProp
);
- const treeStateRenderer =
- isTreeLoading.message === '' ? (
+ const treeViewRenderer =
+ treeData.length === 0 ? (
+
+
+
+
+
+ No databases found
+
+ ) : (
+ );
+
+ const treeStateRenderer =
+ isTreeLoading.message === '' ? (
+ treeViewRenderer
) : (
- Failed to load the tree
+ Failed to load databases