From e2cbbf48a2d3e52026b7d3dc55f1b8c9ceedadad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 25 Mar 2024 18:55:08 +0000 Subject: [PATCH] [Multiple Datasource] Add component to show single selected data source in read only mode (#6125) * add component to show selected data source in read only mode Signed-off-by: Lu Yu * add change log Signed-off-by: Lu Yu * fix typo and remove unused fields Signed-off-by: Lu Yu * fix snapshot Signed-off-by: Lu Yu --------- Signed-off-by: Lu Yu (cherry picked from commit df6de4e23c89b99e07bc6faae4f1f67a81568e14) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md --- .../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 | 98 +++++++++++++++++++ .../components/data_source_view/index.ts | 6 ++ 7 files changed, 249 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`] = `