From ccee1fbe1add1aaa5c3016d1c9607b1947006944 Mon Sep 17 00:00:00 2001 From: Eric Duong Date: Wed, 27 Mar 2024 16:11:29 -0400 Subject: [PATCH] fix(data-warehouse): data warehouse scene ui updates (#21189) * add loading indicator for data warehouse tables * typing * add refresh time on external table info * typing * add height limit --- .../DatabaseTableTree/DatabaseTableTree.tsx | 8 +++- .../components/DatabaseTableTree/TreeRow.tsx | 11 ++++- .../external/DataWarehouseTables.tsx | 42 +++++++++++++++---- .../external/dataWarehouseSceneLogic.ts | 27 ++++++++++-- frontend/src/scenes/data-warehouse/types.ts | 4 +- 5 files changed, 76 insertions(+), 16 deletions(-) diff --git a/frontend/src/lib/components/DatabaseTableTree/DatabaseTableTree.tsx b/frontend/src/lib/components/DatabaseTableTree/DatabaseTableTree.tsx index 2d7bfb893150e..8f42f841a8457 100644 --- a/frontend/src/lib/components/DatabaseTableTree/DatabaseTableTree.tsx +++ b/frontend/src/lib/components/DatabaseTableTree/DatabaseTableTree.tsx @@ -15,8 +15,9 @@ export type TreeItem = TreeItemFolder | TreeItemLeaf export interface TreeItemFolder { name: string - items: TreeItemLeaf[] + items: TreeItem[] emptyLabel?: JSX.Element + isLoading?: boolean } export interface TreeItemLeaf { @@ -33,7 +34,10 @@ export function DatabaseTableTree({ ...props }: TreeProps): JSX.Element { return ( -