From 365ddbbea478b2b8b36ddb0cf53d71f9b3a647fd Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 24 Jul 2024 10:52:13 -0700 Subject: [PATCH] Compress data source selector on (#7329) (#7412) * management's data sources page * dev tools * home * query enhancements * saved object mgmt * time series (cherry picked from commit 3526f96f5889227fd79f3e671b3e3507a1a547d1) Signed-off-by: Miki Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: ZilongX <99905560+ZilongX@users.noreply.github.com> --- changelogs/fragments/7329.yml | 2 ++ ...query_data_connections_table.test.tsx.snap | 25 ++++++++++--------- ...ge_direct_query_data_connections_table.tsx | 1 + src/plugins/dev_tools/public/application.tsx | 2 +- .../components/tutorial_directory.js | 1 + .../components/connections_bar.tsx | 1 + .../__snapshots__/flyout.test.tsx.snap | 1 + .../objects_table/components/flyout.tsx | 1 + .../application/components/index_pattern.js | 1 + 9 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 changelogs/fragments/7329.yml diff --git a/changelogs/fragments/7329.yml b/changelogs/fragments/7329.yml new file mode 100644 index 00000000000..e30e73df593 --- /dev/null +++ b/changelogs/fragments/7329.yml @@ -0,0 +1,2 @@ +feat: +- Use compressed DataSourceSelector ([#7329](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7329)) diff --git a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/__snapshots__/manage_direct_query_data_connections_table.test.tsx.snap b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/__snapshots__/manage_direct_query_data_connections_table.test.tsx.snap index 0de4a45d747..83cfde5b9ef 100644 --- a/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/__snapshots__/manage_direct_query_data_connections_table.test.tsx.snap +++ b/src/plugins/data_source_management/public/components/direct_query_data_sources_components/direct_query_data_connection/__snapshots__/manage_direct_query_data_connections_table.test.tsx.snap @@ -107,6 +107,7 @@ exports[`ManageDirectQueryDataConnectionsTable renders correctly 1`] = ` } >
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 f4bc2974a9f..54d3fe2fa57 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 @@ -234,6 +234,7 @@ export const ManageDirectQueryDataConnectionsTable: React.FC )} diff --git a/src/plugins/dev_tools/public/application.tsx b/src/plugins/dev_tools/public/application.tsx index 6c4cae6e18c..38d44466585 100644 --- a/src/plugins/dev_tools/public/application.tsx +++ b/src/plugins/dev_tools/public/application.tsx @@ -124,7 +124,7 @@ function DevToolsWrapper({ onSelectedDataSource={onChange} disabled={!dataSourceEnabled} fullWidth={false} - compressed + compressed={true} />
); diff --git a/src/plugins/home/public/application/components/tutorial_directory.js b/src/plugins/home/public/application/components/tutorial_directory.js index 4d4cf4566d1..d9ddcc167e0 100644 --- a/src/plugins/home/public/application/components/tutorial_directory.js +++ b/src/plugins/home/public/application/components/tutorial_directory.js @@ -240,6 +240,7 @@ class TutorialDirectoryUi extends React.Component { disabled={!isDataSourceEnabled} hideLocalCluster={isLocalClusterHidden} uiSettings={getServices().uiSettings} + compressed={true} />
) : null; diff --git a/src/plugins/query_enhancements/public/data_source_connection/components/connections_bar.tsx b/src/plugins/query_enhancements/public/data_source_connection/components/connections_bar.tsx index d7590b27822..3fd592e50b3 100644 --- a/src/plugins/query_enhancements/public/data_source_connection/components/connections_bar.tsx +++ b/src/plugins/query_enhancements/public/data_source_connection/components/connections_bar.tsx @@ -81,6 +81,7 @@ export const ConnectionsBar: React.FC = ({ connectionsService, notifications={toasts} disabled={false} fullWidth={false} + compressed={true} removePrepend={true} isClearable={false} onSelectedDataSource={(dataSource) => diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap index 09471948281..4329f6164ff 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/__snapshots__/flyout.test.tsx.snap @@ -598,6 +598,7 @@ exports[`Flyout should render cluster selector and import options when datasourc } > { disabled={!this.props.dataSourceEnabled} fullWidth={true} isClearable={false} + compressed={true} /> diff --git a/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js b/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js index f39771de11d..60f709b41c0 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js +++ b/src/plugins/vis_type_timeseries/public/application/components/index_pattern.js @@ -189,6 +189,7 @@ export const IndexPattern = ({ fields, prefix, onChange, disabled, model: _model } disabled={false} fullWidth={false} + compressed={true} removePrepend={true} isClearable={false} />