From 1d0b5841b3d91c89be060a9be42c9f6b517a4397 Mon Sep 17 00:00:00 2001 From: Lu Yu Date: Tue, 12 Mar 2024 22:39:07 +0000 Subject: [PATCH 1/4] add component to show selected data source in read only mode Signed-off-by: Lu Yu --- .../data_source_menu.test.tsx.snap | 20 +++- .../data_source_menu.test.tsx | 18 ++- .../data_source_menu/data_source_menu.tsx | 60 ++++++---- .../data_source_view.test.tsx.snap | 54 +++++++++ .../data_source_view.test.tsx | 19 +++ .../data_source_view/data_source_view.tsx | 109 ++++++++++++++++++ .../components/data_source_view/index.ts | 6 + 7 files changed, 260 insertions(+), 26 deletions(-) create mode 100644 src/plugins/data_source_management/public/components/data_source_view/__snapshots__/data_source_view.test.tsx.snap create mode 100644 src/plugins/data_source_management/public/components/data_source_view/data_source_view.test.tsx create mode 100644 src/plugins/data_source_management/public/components/data_source_view/data_source_view.tsx create mode 100644 src/plugins/data_source_management/public/components/data_source_view/index.ts diff --git a/src/plugins/data_source_management/public/components/data_source_menu/__snapshots__/data_source_menu.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_menu/__snapshots__/data_source_menu.test.tsx.snap index 19f1e1c660d2..a55591a5df26 100644 --- a/src/plugins/data_source_management/public/components/data_source_menu/__snapshots__/data_source_menu.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_menu/__snapshots__/data_source_menu.test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`DataSourceMenu should render normally with local cluster is hidden 1`] = ` +exports[`DataSourceMenu should render data source selectable only with local cluster is hidden 1`] = `