From 4a7aa579129aba5399984270ab217dd7ce2049ca Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Mon, 26 Aug 2024 20:21:47 -0700 Subject: [PATCH] make button group smaller and update test --- .../components/create_form/create_data_source_form.tsx | 2 +- .../__snapshots__/data_source_home_panel.test.tsx.snap | 3 --- .../data_source_home_panel/data_source_home_panel.tsx | 2 +- .../__snapshots__/data_source_table.test.tsx.snap | 9 +++++++++ ...age_direct_query_data_connections_table.test.tsx.snap | 3 --- .../manage_direct_query_data_connections_table.tsx | 1 - .../__snapshots__/query_permissions.test.tsx.snap | 6 ++++-- .../public/management_app/mount_management_section.tsx | 2 +- 8 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx b/src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx index fabb4a7a1a82..af3df033e310 100644 --- a/src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx +++ b/src/plugins/data_source_management/public/components/create_data_source_wizard/components/create_form/create_data_source_form.tsx @@ -773,7 +773,7 @@ export class CreateDataSourceForm extends React.Component< > diff --git a/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_home_panel.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_home_panel.test.tsx.snap index e4144646e0b0..cda3acc64031 100644 --- a/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_home_panel.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_home_panel/__snapshots__/data_source_home_panel.test.tsx.snap @@ -61,9 +61,6 @@ exports[`DataSourceHomePanel renders correctly 1`] = ` - = ({ renderComponent: ( = ({ )} - {selectedTabId === 'manageOpensearchDataSources' && featureFlagStatus && ( )} diff --git a/src/plugins/data_source_management/public/components/data_source_table/__snapshots__/data_source_table.test.tsx.snap b/src/plugins/data_source_management/public/components/data_source_table/__snapshots__/data_source_table.test.tsx.snap index 770b2ab00efa..9dc785b13b4e 100644 --- a/src/plugins/data_source_management/public/components/data_source_table/__snapshots__/data_source_table.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/data_source_table/__snapshots__/data_source_table.test.tsx.snap @@ -140,6 +140,7 @@ exports[`DataSourceTable should get datasources failed should render empty table > -
diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/manage_direct_query_data_connections_table.tsx b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/manage_direct_query_data_connections_table.tsx index 1df5b7b87bb8..9d38347f3dac 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/manage_direct_query_data_connections_table.tsx +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/manage_direct_query_data_connections_table.tsx @@ -331,7 +331,6 @@ export const ManageDirectQueryDataConnectionsTable: React.FC - {customSearchBar} diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/__snapshots__/query_permissions.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/__snapshots__/query_permissions.test.tsx.snap index 36b12e2b510c..33d440f38f39 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/__snapshots__/query_permissions.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_source_configuration/__snapshots__/query_permissions.test.tsx.snap @@ -34,9 +34,11 @@ exports[`QueryPermissionsConfiguration renders correctly 1`] = `
- +

Query permissions diff --git a/src/plugins/data_source_management/public/management_app/mount_management_section.tsx b/src/plugins/data_source_management/public/management_app/mount_management_section.tsx index 3eb095585df3..545a76ec2736 100644 --- a/src/plugins/data_source_management/public/management_app/mount_management_section.tsx +++ b/src/plugins/data_source_management/public/management_app/mount_management_section.tsx @@ -112,7 +112,7 @@ export async function mountManagementSection( {params.wrapInPage ? ( - + {content} ) : (