From d54345816b88266d2ba25d242872c4efeadd018d Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 21 Aug 2024 15:25:49 -0700 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#2068) (#2080) * Use EuiSmallButton * Use EuiSmallButtonIcon * Use EuiSmallButtonEmpty * Use EuiCompressedFormRow * Use EuiCompressedField* * Use EuiCompressedSelect and EuiCompressedSuperSelect * Use EuiCompressedFilePicker * Use EuiCompressedRadio and EuiCompressedRadioGroup * Use EuiCompressedSwitch * Use EuiCompressedEuiTextArea * Use EuiCompressedComboBox * Use EuiSmallFilterButton * Undo unnecessary EuiSmallButton* uses * Use EuiCompressedSuperDatePicker * Fix tests and snapshots * Fix tests and snapshots --------- cherry-picked 69d12cee1b0e43869d078e30cc996e9d685e44a9 Signed-off-by: Miki --- .../__snapshots__/create.test.tsx.snap | 800 ++++---- .../__snapshots__/log_config.test.tsx.snap | 214 +- .../service_config.test.tsx.snap | 112 +- .../__snapshots__/trace_config.test.tsx.snap | 68 +- .../components/app_table.tsx | 16 +- .../config_components/log_config.tsx | 6 +- .../config_components/service_config.tsx | 10 +- .../config_components/trace_config.tsx | 10 +- .../components/configuration.tsx | 10 +- .../components/create.tsx | 30 +- .../availability_info_flyout.tsx | 4 +- .../common/helpers/delete_modal.tsx | 20 +- .../common/helpers/ppl_reference_flyout.tsx | 8 +- .../live_tail_button.test.tsx.snap | 349 ++-- .../common/live_tail/live_tail_button.tsx | 10 +- .../__snapshots__/search.test.tsx.snap | 460 +++-- .../components/common/search/autocomplete.tsx | 4 +- .../components/common/search/date_picker.tsx | 4 +- .../common/search/direct_search.tsx | 13 +- public/components/common/search/search.tsx | 17 +- .../components/common/search/searchindex.tsx | 4 +- .../custom_panel_table.test.tsx.snap | 28 +- .../custom_panel_view.test.tsx.snap | 1352 ++++++------ .../custom_panel_view_so.test.tsx.snap | 54 +- .../custom_panels/custom_panel_table.tsx | 22 +- .../custom_panels/custom_panel_view.tsx | 26 +- .../custom_panels/custom_panel_view_so.tsx | 26 +- .../custom_input_model.test.tsx.snap | 32 +- .../modal_container.test.tsx.snap | 16 +- .../helpers/add_visualization_popover.tsx | 6 +- .../helpers/custom_input_modal.tsx | 24 +- .../helpers/modal_containers.tsx | 19 +- .../__snapshots__/empty_panel.test.tsx.snap | 238 ++- .../visualization_container.tsx | 13 +- .../visualization_flyout.test.tsx.snap | 310 +-- .../visualization_flyout_so.test.tsx.snap | 310 +-- .../visualization_flyout.tsx | 36 +- .../visualization_flyout_so.tsx | 36 +- .../associated_objects_tab.test.tsx.snap | 475 +++-- .../data_connection.test.tsx.snap | 2 +- .../inactive_data_connection.test.tsx.snap | 2 +- ...installed_integrations_table.test.tsx.snap | 147 +- ...data_connections_description.test.tsx.snap | 113 +- ...anage_data_connections_table.test.tsx.snap | 2 +- .../__snapshots__/no_access.test.tsx.snap | 68 +- .../acceleration_action_overlay.tsx | 8 +- .../acceleration_details_flyout.tsx | 18 +- .../accelerations/acceleration_table.tsx | 6 +- .../create_acceleration.test.tsx.snap | 168 +- .../create_acceleration_button.test.tsx.snap | 2 +- .../create/create_acceleration.tsx | 6 +- .../create/create_acceleration_button.tsx | 6 +- .../define_index_options.test.tsx.snap | 18 +- .../index_advanced_settings.test.tsx.snap | 30 +- .../index_setting_options.test.tsx.snap | 78 +- .../index_type_selector.test.tsx.snap | 16 +- .../preview_sql_defintion.test.tsx.snap | 8 +- .../source_selector.test.tsx.snap | 20 +- .../selectors/define_index_options.tsx | 16 +- .../selectors/index_advanced_settings.tsx | 14 +- .../selectors/index_setting_options.tsx | 38 +- .../selectors/index_type_selector.tsx | 14 +- .../selectors/preview_sql_defintion.tsx | 14 +- .../selectors/source_selector.tsx | 16 +- .../query_visual_editor.test.tsx.snap | 28 +- .../covering_index/covering_index_builder.tsx | 4 +- .../column_expression.test.tsx.snap | 4 +- .../materialized_view/add_column_popover.tsx | 24 +- .../materialized_view/column_expression.tsx | 28 +- .../group_by_tumble_expression.tsx | 26 +- .../add_fields_modal.test.tsx.snap | 16 +- .../delete_fields_modal.test.tsx.snap | 16 +- .../generate_fields.test.tsx.snap | 2 +- .../skipping_index_builder.test.tsx.snap | 28 +- .../skipping_index/add_fields_modal.tsx | 8 +- .../skipping_index/delete_fields_modal.tsx | 8 +- .../skipping_index/generate_fields.tsx | 6 +- .../skipping_index/skipping_index_builder.tsx | 18 +- .../utils/acceleration_utils.tsx | 6 +- .../components/manage/access_control_tab.tsx | 6 +- .../associated_objects_details_flyout.tsx | 6 +- .../associated_objects_refresh_button.tsx | 6 +- .../utils/associated_objects_tab_empty.tsx | 6 +- .../manage/inactive_data_connection.tsx | 6 +- .../installed_integrations_table.tsx | 10 +- .../manage_data_connections_description.tsx | 6 +- .../components/new/auth_details.tsx | 32 +- .../new/configure_prometheus_datasource.tsx | 27 +- .../new/configure_s3_datasource.tsx | 38 +- .../datasources/components/new/name_row.tsx | 8 +- .../components/new/query_permissions.tsx | 14 +- ...ew_prometheus_datasource_configuration.tsx | 4 +- .../review_s3_datasource_configuration.tsx | 4 +- .../datasources/components/no_access.tsx | 6 +- .../explorer/direct_query_running.tsx | 6 +- .../__snapshots__/flyout_button.test.tsx.snap | 67 +- .../detail_table/table_row_btn_collapse.tsx | 6 +- .../explorer/events_views/docViewRow.tsx | 6 +- .../explorer/events_views/doc_flyout.tsx | 6 +- .../events_views/surrounding_flyout.tsx | 27 +- .../patterns_header.test.tsx.snap | 139 +- .../explorer/log_patterns/patterns_header.tsx | 14 +- .../explorer/query_assist/input.tsx | 10 +- .../__snapshots__/save_panel.test.tsx.snap | 109 +- .../explorer/save_panel/save_panel.tsx | 17 +- .../__snapshots__/field.test.tsx.snap | 70 +- .../__snapshots__/sidebar.test.tsx.snap | 1822 ++++++++++------- .../explorer/sidebar/field.tsx | 5 +- .../__snapshots__/config_panel.test.tsx.snap | 315 +-- .../config_panel/config_panel.tsx | 4 +- .../config_controls/config_availability.tsx | 38 +- .../config_color_palette_picker.tsx | 10 +- .../config_controls/config_color_theme.tsx | 22 +- .../config_controls/config_number_input.tsx | 4 +- .../config_controls/config_panel_item.tsx | 4 +- .../config_panel_option_gauge.tsx | 8 +- .../config_controls/config_panel_options.tsx | 14 +- .../config_single_color_picker.tsx | 6 +- .../config_controls/config_switch.tsx | 6 +- .../config_controls/config_switch_button.tsx | 4 +- .../config_controls/config_text_input.tsx | 4 +- .../config_controls/config_thresholds.tsx | 30 +- .../config_treemap_parents.tsx | 6 +- .../config_controls/config_yaxis_side.tsx | 24 +- .../data_config_panel_fields.tsx | 12 +- .../data_configurations_panel.tsx | 40 +- .../logs_view_config_panel_item.tsx | 15 +- .../treemap_config_panel_item.tsx | 18 +- .../config_panes/default_vis_editor.tsx | 10 +- .../plotly_viz_editor/plotly_actions.tsx | 4 +- .../saved_query_table.test.tsx.snap | 1 + .../components/event_analytics/home/home.tsx | 18 +- .../added_integration.test.tsx.snap | 70 +- .../added_integration_flyout.test.tsx.snap | 468 +++-- .../added_integration_table.test.tsx.snap | 1 + ...ilable_integration_card_view.test.tsx.snap | 22 +- .../integration_header.test.tsx.snap | 118 +- .../setup_integration.test.tsx.snap | 499 +++-- .../setup_integration_inputs.test.tsx.snap | 762 ++++--- .../__snapshots__/upload_flyout.test.tsx.snap | 18 +- .../components/add_integration_flyout.tsx | 30 +- .../components/added_integration.tsx | 4 +- .../available_integration_card_view.tsx | 4 +- .../available_integration_overview_page.tsx | 6 +- .../components/integration_header.tsx | 6 +- .../components/setup_integration.tsx | 12 +- .../components/setup_integration_inputs.tsx | 60 +- .../integrations/components/upload_flyout.tsx | 18 +- .../__snapshots__/sidebar.test.tsx.snap | 4 +- .../metrics/sidebar/data_source_picker.tsx | 5 +- .../metrics/sidebar/index_picker.tsx | 4 +- .../metrics_export_panel.test.tsx.snap | 164 +- .../__snapshots__/top_menu.test.tsx.snap | 418 ++-- .../metrics/top_menu/metrics_export_panel.tsx | 18 +- .../components/metrics/top_menu/top_menu.tsx | 14 +- .../__snapshots__/note_table.test.tsx.snap | 18 +- .../__snapshots__/notebook.test.tsx.snap | 16 +- .../modal_containers.test.tsx.snap | 32 +- .../custom_input_modal.test.tsx.snap | 32 +- .../custom_modals/custom_input_modal.tsx | 20 +- .../custom_modals/reporting_loading_modal.tsx | 32 +- .../components/helpers/modal_containers.tsx | 20 +- .../notebooks/components/note_table.tsx | 22 +- .../notebooks/components/notebook.tsx | 38 +- .../__snapshots__/para_input.test.tsx.snap | 16 +- .../__snapshots__/paragraphs.test.tsx.snap | 8 +- .../paragraph_components/para_input.tsx | 32 +- .../paragraph_components/paragraphs.tsx | 18 +- .../helper_functions.test.tsx.snap | 4 +- .../__snapshots__/search_bar.test.tsx.snap | 207 +- .../filter_edit_popover.test.tsx.snap | 180 +- .../filter_helpers.test.tsx.snap | 73 +- .../__snapshots__/filters.test.tsx.snap | 70 +- .../common/filters/filter_edit_popover.tsx | 28 +- .../common/filters/filter_helpers.tsx | 22 +- .../components/common/filters/filters.tsx | 4 +- .../components/common/helper_functions.tsx | 6 +- .../__snapshots__/service_map.test.tsx.snap | 4 +- .../components/common/plots/service_map.tsx | 4 +- .../common/plots/service_map_node_details.tsx | 14 +- .../components/common/search_bar.tsx | 10 +- .../__snapshots__/dashboard.test.tsx.snap | 334 +-- .../__snapshots__/mode_picker.test.tsx.snap | 220 +- .../dashboard/__tests__/mode_picker.test.tsx | 2 +- .../dashboard/latency_trend_cell.tsx | 12 +- .../components/dashboard/mode_picker.tsx | 6 +- .../__snapshots__/services.test.tsx.snap | 1003 ++++----- .../services/service_trends_plots.tsx | 4 +- .../components/services/service_view.tsx | 6 +- .../__snapshots__/traces.test.tsx.snap | 959 +++++---- .../__snapshots__/traces_table.test.tsx.snap | 263 +-- .../components/traces/flyout_list_item.tsx | 4 +- .../components/traces/span_detail_flyout.tsx | 14 +- .../components/traces/trace_view.tsx | 6 +- .../components/traces/traces_table.tsx | 10 +- .../charts/data_table/data_table_header.tsx | 18 +- 196 files changed, 8672 insertions(+), 7188 deletions(-) diff --git a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap index c93045750..83a0140a8 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap @@ -59,7 +59,7 @@ Object { class="euiForm" >
@@ -77,13 +77,13 @@ Object { class="euiFormRow__fieldWrapper" >
@@ -112,13 +112,13 @@ Object { class="euiFormRow__fieldWrapper" >