From f3b678d8ccda8c3cf180c890e8191ed7d8b64de3 Mon Sep 17 00:00:00 2001 From: Miki Date: Mon, 19 Aug 2024 09:31:09 -0700 Subject: [PATCH] Use smaller and compressed varients of buttons and form components (#370) * Use EuiSmallButton Signed-off-by: Miki * Use EuiSmallButtonIcon Signed-off-by: Miki * Use EuiSmallButtonEmpty Signed-off-by: Miki * Use EuiCompressedFormRow Signed-off-by: Miki * Use EuiCompressedField* Signed-off-by: Miki * Use EuiCompressedSelect and EuiCompressedSuperSelect Signed-off-by: Miki * Use EuiCompressedRadio and EuiCompressedRadioGroup Signed-off-by: Miki * Use EuiCompressedComboBox Signed-off-by: Miki * Undo unnecessary EuiSmallButton* uses Signed-off-by: Miki * Update snapshots and tests Signed-off-by: Miki * Fix pre-existing linting errors Signed-off-by: Miki --------- Signed-off-by: Miki --- common/utils/toast_helper.tsx | 3 +- .../Main/__snapshots__/main.test.tsx.snap | 72 ++++---- public/components/Main/main.tsx | 6 +- public/components/PPLPage/PPLPage.tsx | 31 ++-- .../__snapshots__/PPLPage.test.tsx.snap | 30 ++-- .../components/QueryResults/QueryResults.tsx | 4 +- .../QueryResults/QueryResultsBody.tsx | 11 +- .../__snapshots__/QueryResults.test.tsx.snap | 64 +++---- .../QueryResultsBody.test.tsx.snap | 76 ++++----- .../QueryResults/async_query_body.tsx | 10 +- public/components/SQLPage/CreateButton.tsx | 6 +- public/components/SQLPage/DataSelect.tsx | 6 +- public/components/SQLPage/SQLPage.tsx | 26 +-- .../__snapshots__/SQLPage.test.tsx.snap | 12 +- .../__snapshots__/CreateButton.test.tsx.snap | 4 +- .../acceleration_index_flyout.test.tsx.snap | 12 +- .../SQLPage/acceleration_index_flyout.tsx | 6 +- .../create_acceleration.test.tsx.snap | 160 +++++++++--------- .../create/create_acceleration.tsx | 12 +- .../define_index_options.test.tsx.snap | 18 +- .../index_setting_options.test.tsx.snap | 108 ++++++------ .../index_type_selector.test.tsx.snap | 20 +-- .../source_selector.test.tsx.snap | 60 +++---- .../selectors/define_index_options.tsx | 16 +- .../selectors/index_setting_options.tsx | 50 +++--- .../selectors/index_type_selector.tsx | 10 +- .../selectors/source_selector.tsx | 20 +-- .../query_visual_editor.test.tsx.snap | 24 +-- .../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 +- .../skipping_index_builder.test.tsx.snap | 24 +-- .../skipping_index/add_fields_modal.tsx | 8 +- .../skipping_index/delete_fields_modal.tsx | 8 +- .../skipping_index/skipping_index_builder.tsx | 18 +- 39 files changed, 528 insertions(+), 525 deletions(-) diff --git a/common/utils/toast_helper.tsx b/common/utils/toast_helper.tsx index d1209a92..4499bbc5 100644 --- a/common/utils/toast_helper.tsx +++ b/common/utils/toast_helper.tsx @@ -4,6 +4,7 @@ */ import { + EuiSmallButton, EuiButton, EuiCodeBlock, EuiModal, @@ -61,7 +62,7 @@ const loadErrorModal = (errorDetailsMessage: string) => { - modal.close()}>Close + modal.close()}>Close ) diff --git a/public/components/Main/__snapshots__/main.test.tsx.snap b/public/components/Main/__snapshots__/main.test.tsx.snap index a0635e7c..6217ec1d 100644 --- a/public/components/Main/__snapshots__/main.test.tsx.snap +++ b/public/components/Main/__snapshots__/main.test.tsx.snap @@ -142,7 +142,7 @@ exports[`
spec click clear button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click clear button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" >