From a97fe8fb3c42a3bc35c71d89d1c7780486757c23 Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 10 Jul 2024 17:22:32 -0700 Subject: [PATCH 01/13] Use EuiSmallButton Signed-off-by: Miki --- public/components/filter_bar/filter_editor.tsx | 6 +++--- public/components/layer_config/layer_config_panel.tsx | 10 +++++----- public/components/maps_list/maps_list.tsx | 6 +++--- public/components/show_error_modal.tsx | 5 +++-- public/components/vector_upload_options.tsx | 6 +++--- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/public/components/filter_bar/filter_editor.tsx b/public/components/filter_bar/filter_editor.tsx index 35b6d854..46ae6d15 100644 --- a/public/components/filter_bar/filter_editor.tsx +++ b/public/components/filter_bar/filter_editor.tsx @@ -4,7 +4,7 @@ */ import { - EuiButton, + EuiSmallButton, EuiButtonEmpty, EuiCodeEditor, EuiFieldText, @@ -84,14 +84,14 @@ export const FilterEditor = ({ content, label, onSubmit, onCancel }: Props) => { - onSubmit(filterContent, filterLabel)} isDisabled={!isFilterValid(filterContent)} data-test-subj="saveFilter" > {'Save'} - + diff --git a/public/components/layer_config/layer_config_panel.tsx b/public/components/layer_config/layer_config_panel.tsx index 75161450..0f3c9607 100644 --- a/public/components/layer_config/layer_config_panel.tsx +++ b/public/components/layer_config/layer_config_panel.tsx @@ -7,7 +7,7 @@ import React, { useEffect, useState } from 'react'; import { cloneDeep, isEqual } from 'lodash'; import { - EuiButton, + EuiSmallButton, EuiFlyout, EuiFlyoutBody, EuiFlyoutFooter, @@ -161,7 +161,7 @@ export const LayerConfigPanel = ({ - Update - + @@ -183,9 +183,9 @@ export const LayerConfigPanel = ({ Cancel - + Discard - + )} diff --git a/public/components/maps_list/maps_list.tsx b/public/components/maps_list/maps_list.tsx index 7cc57d06..29a9c20f 100644 --- a/public/components/maps_list/maps_list.tsx +++ b/public/components/maps_list/maps_list.tsx @@ -11,7 +11,7 @@ import { EuiPageBody, EuiPageContentBody, EuiLink, - EuiButton, + EuiSmallButton, EuiPageHeader, } from '@elastic/eui'; import { @@ -110,9 +110,9 @@ export const MapsList = () => { pageTitle="Create your first map" description="There is no map to display, let's create your first map." rightSideItems={[ - + Create map - , + , ]} /> ); diff --git a/public/components/show_error_modal.tsx b/public/components/show_error_modal.tsx index 885f177e..f656b6c2 100644 --- a/public/components/show_error_modal.tsx +++ b/public/components/show_error_modal.tsx @@ -5,6 +5,7 @@ import React, { useState } from 'react'; import { + EuiSmallButton, EuiButton, EuiModal, EuiModalBody, @@ -42,7 +43,7 @@ const ShowErrorModal = (props: ShowErrorModalProps) => { - { fill > Close - + ); diff --git a/public/components/vector_upload_options.tsx b/public/components/vector_upload_options.tsx index 4eb903f3..9eab5327 100644 --- a/public/components/vector_upload_options.tsx +++ b/public/components/vector_upload_options.tsx @@ -7,7 +7,7 @@ import './vector_upload_options.scss'; import React, { useState } from 'react'; import path from 'path'; import { - EuiButton, + EuiSmallButton, EuiFilePicker, EuiFlexItem, EuiFlexGroup, @@ -391,7 +391,7 @@ const VectorUploadOptions = (props: RegionMapOptionsProps) => {
- { aria-label="import-file-button" > Import file - +
From c2f192dba8f404918cc35750ab94ea941fbd393e Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 10 Jul 2024 23:06:00 -0700 Subject: [PATCH 02/13] Use EuiSmallButtonIcon Signed-off-by: Miki --- public/components/filter_bar/filter_options.tsx | 4 ++-- public/components/tooltip/tooltipHeaderContent.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/components/filter_bar/filter_options.tsx b/public/components/filter_bar/filter_options.tsx index ce6239f3..c6563b36 100644 --- a/public/components/filter_bar/filter_options.tsx +++ b/public/components/filter_bar/filter_options.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiButtonIcon, EuiContextMenu, EuiPopover, EuiPopoverTitle } from '@elastic/eui'; +import { EuiSmallButtonIcon, EuiContextMenu, EuiPopover, EuiPopoverTitle } from '@elastic/eui'; import React, { useState } from 'react'; import { i18n } from '@osd/i18n'; @@ -99,7 +99,7 @@ export const FilterOptions = ({ isOpen={isPopoverOpen} closePopover={closePopover} button={ - { {props.showCloseButton && ( - { return props.onClose(); }} From 8c3ba121356fb89a837b0fb2db84c6694b610fb1 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 11 Jul 2024 08:11:54 -0700 Subject: [PATCH 03/13] Use EuiSmallButtonEmpty Signed-off-by: Miki --- public/components/filter_bar/filter_editor.tsx | 6 +++--- public/components/layer_config/layer_config_panel.tsx | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/components/filter_bar/filter_editor.tsx b/public/components/filter_bar/filter_editor.tsx index 46ae6d15..482510a7 100644 --- a/public/components/filter_bar/filter_editor.tsx +++ b/public/components/filter_bar/filter_editor.tsx @@ -5,7 +5,7 @@ import { EuiSmallButton, - EuiButtonEmpty, + EuiSmallButtonEmpty, EuiCodeEditor, EuiFieldText, EuiFlexGroup, @@ -94,9 +94,9 @@ export const FilterEditor = ({ content, label, onSubmit, onCancel }: Props) => { - + {'Cancel'} - + diff --git a/public/components/layer_config/layer_config_panel.tsx b/public/components/layer_config/layer_config_panel.tsx index 0f3c9607..f8638d8b 100644 --- a/public/components/layer_config/layer_config_panel.tsx +++ b/public/components/layer_config/layer_config_panel.tsx @@ -13,7 +13,7 @@ import { EuiFlyoutFooter, EuiFlyoutHeader, EuiFlexItem, - EuiButtonEmpty, + EuiSmallButtonEmpty, EuiFlexGroup, EuiModal, EuiModalBody, @@ -156,9 +156,9 @@ export const LayerConfigPanel = ({ - + Discard - + Do you want to discard the changes?

- Cancel + Cancel Discard From 76b6ea7c5c1f99a5e491b6859931470783a94b05 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 11 Jul 2024 08:48:31 -0700 Subject: [PATCH 04/13] Use EuiCompressedFormRow Signed-off-by: Miki --- .../components/filter_bar/filter_editor.tsx | 10 ++-- .../custom_map_config/custom_map_source.tsx | 46 +++++++++---------- .../document_layer_source.tsx | 18 ++++---- .../documents_config/style/color_picker.tsx | 6 +-- .../style/document_layer_style.tsx | 6 +-- .../documents_config/style/label_config.tsx | 18 ++++---- .../layer_config/layer_basic_settings.tsx | 18 ++++---- public/components/vector_upload_options.tsx | 6 +-- 8 files changed, 64 insertions(+), 64 deletions(-) diff --git a/public/components/filter_bar/filter_editor.tsx b/public/components/filter_bar/filter_editor.tsx index 482510a7..4d06ed28 100644 --- a/public/components/filter_bar/filter_editor.tsx +++ b/public/components/filter_bar/filter_editor.tsx @@ -11,7 +11,7 @@ import { EuiFlexGroup, EuiFlexItem, EuiForm, - EuiFormRow, + EuiCompressedFormRow, EuiPopoverTitle, EuiSpacer, } from '@elastic/eui'; @@ -39,7 +39,7 @@ export const FilterEditor = ({ content, label, onSubmit, onCancel }: Props) => { const renderEditor = () => { return ( - { width="100%" height="250px" /> - + ); }; return ( @@ -68,7 +68,7 @@ export const FilterEditor = ({ content, label, onSubmit, onCancel }: Props) => { {renderEditor()}
- { value={filterLabel} onChange={(event) => setFilterLabel(event.target.value)} /> - +
diff --git a/public/components/layer_config/custom_map_config/custom_map_source.tsx b/public/components/layer_config/custom_map_config/custom_map_source.tsx index 1dfd3fc3..b7472774 100644 --- a/public/components/layer_config/custom_map_config/custom_map_source.tsx +++ b/public/components/layer_config/custom_map_config/custom_map_source.tsx @@ -4,7 +4,7 @@ */ import React, { useEffect, useState } from 'react'; -import { EuiSpacer, EuiPanel, EuiForm, EuiFieldText, EuiSelect, EuiFormRow } from '@elastic/eui'; +import { EuiSpacer, EuiPanel, EuiForm, EuiFieldText, EuiSelect, EuiCompressedFormRow } from '@elastic/eui'; import { CustomLayerSpecification } from '../../../model/mapLayerType'; interface Props { @@ -179,19 +179,19 @@ export const CustomMapSource = ({
- + - + {selectedLayerConfig.source.customType === 'tms' && ( - - + - - + )} {selectedLayerConfig.source.customType === 'wms' && ( - - + - - + - + - + - - + - - + - - + - - + - - + )} diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index 69f9ab46..921dc383 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -17,7 +17,7 @@ import { EuiForm, EuiSwitch, EuiCheckbox, - EuiFormRow, + EuiCompressedFormRow, } from '@elastic/eui'; import { i18n } from '@osd/i18n'; import { FormattedMessage } from '@osd/i18n/react'; @@ -263,7 +263,7 @@ export const DocumentLayerSource = ({ - - + - - + Number of documents @@ -352,7 +352,7 @@ export const DocumentLayerSource = ({ onFiltersUpdated={onFiltersUpdated} /> - + - - + + - + diff --git a/public/components/layer_config/documents_config/style/color_picker.tsx b/public/components/layer_config/documents_config/style/color_picker.tsx index a91f88dc..66b106c0 100644 --- a/public/components/layer_config/documents_config/style/color_picker.tsx +++ b/public/components/layer_config/documents_config/style/color_picker.tsx @@ -4,7 +4,7 @@ */ import React, { memo, useEffect } from 'react'; -import { EuiColorPicker, EuiFormRow, useColorPickerState } from '@elastic/eui'; +import { EuiColorPicker, EuiCompressedFormRow, useColorPickerState } from '@elastic/eui'; export interface ColorPickerProps { originColor: string; @@ -38,7 +38,7 @@ export const ColorPicker = memo( }, [selectedLayerConfigId]); return ( - + - + ); } ); diff --git a/public/components/layer_config/documents_config/style/document_layer_style.tsx b/public/components/layer_config/documents_config/style/document_layer_style.tsx index 48ff038e..cf68f167 100644 --- a/public/components/layer_config/documents_config/style/document_layer_style.tsx +++ b/public/components/layer_config/documents_config/style/document_layer_style.tsx @@ -10,7 +10,7 @@ import { EuiSpacer, EuiButtonGroup, EuiPanel, - EuiFormRow, + EuiCompressedFormRow, EuiForm, EuiCollapsibleNavGroup, } from '@elastic/eui'; @@ -123,7 +123,7 @@ export const DocumentLayerStyle = ({ max, }: WidthSelectorProps) => { return ( - - + ); }; diff --git a/public/components/layer_config/documents_config/style/label_config.tsx b/public/components/layer_config/documents_config/style/label_config.tsx index 4745aa31..72db9d29 100644 --- a/public/components/layer_config/documents_config/style/label_config.tsx +++ b/public/components/layer_config/documents_config/style/label_config.tsx @@ -5,7 +5,7 @@ import React, { useEffect, useMemo, ChangeEventHandler, ChangeEvent } from 'react'; import { - EuiFormRow, + EuiCompressedFormRow, EuiFieldText, EuiFlexItem, EuiCheckbox, @@ -170,17 +170,17 @@ export const LabelConfig = ({ return ( <> - + - + {label?.enabled && ( <> - - - + - + - - + )} diff --git a/public/components/layer_config/layer_basic_settings.tsx b/public/components/layer_config/layer_basic_settings.tsx index 1ea5b5c3..260af400 100644 --- a/public/components/layer_config/layer_basic_settings.tsx +++ b/public/components/layer_config/layer_basic_settings.tsx @@ -8,7 +8,7 @@ import { EuiDualRange, EuiFieldText, EuiForm, - EuiFormRow, + EuiCompressedFormRow, EuiTitle, EuiSpacer, EuiRange, @@ -106,7 +106,7 @@ export const LayerBasicSettings = ({ - + - + - + - + - + - - + + %} fullWidth={true} /> - + ); diff --git a/public/components/vector_upload_options.tsx b/public/components/vector_upload_options.tsx index 9eab5327..da0b3984 100644 --- a/public/components/vector_upload_options.tsx +++ b/public/components/vector_upload_options.tsx @@ -16,7 +16,7 @@ import { EuiCard, EuiFieldText, EuiTextColor, - EuiFormRow, + EuiCompressedFormRow, EuiCodeBlock, } from '@elastic/eui'; import { getIndex, postGeojson } from '../services'; @@ -323,7 +323,7 @@ const VectorUploadOptions = (props: RegionMapOptionsProps) => { - + { required={true} aria-label="geojson-file-picker" /> - + From 4b20820e00165bd27f92ae4551b7cbc06796b2a1 Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 11 Jul 2024 10:50:50 -0700 Subject: [PATCH 05/13] Use EuiCompressedField* Signed-off-by: Miki --- .../components/filter_bar/filter_editor.tsx | 4 ++-- .../custom_map_config/custom_map_source.tsx | 22 +++++++++---------- .../document_layer_source.tsx | 4 ++-- .../style/document_layer_style.tsx | 4 ++-- .../documents_config/style/label_config.tsx | 8 +++---- .../layer_config/layer_basic_settings.tsx | 4 ++-- .../spatial_filter/filter_input_panel.tsx | 4 ++-- public/components/vector_upload_options.tsx | 4 ++-- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/public/components/filter_bar/filter_editor.tsx b/public/components/filter_bar/filter_editor.tsx index 4d06ed28..320ffb71 100644 --- a/public/components/filter_bar/filter_editor.tsx +++ b/public/components/filter_bar/filter_editor.tsx @@ -7,7 +7,7 @@ import { EuiSmallButton, EuiSmallButtonEmpty, EuiCodeEditor, - EuiFieldText, + EuiCompressedFieldText, EuiFlexGroup, EuiFlexItem, EuiForm, @@ -74,7 +74,7 @@ export const FilterEditor = ({ content, label, onSubmit, onCancel }: Props) => { defaultMessage: 'Custom label', })} > - setFilterLabel(event.target.value)} diff --git a/public/components/layer_config/custom_map_config/custom_map_source.tsx b/public/components/layer_config/custom_map_config/custom_map_source.tsx index b7472774..f20db427 100644 --- a/public/components/layer_config/custom_map_config/custom_map_source.tsx +++ b/public/components/layer_config/custom_map_config/custom_map_source.tsx @@ -4,7 +4,7 @@ */ import React, { useEffect, useState } from 'react'; -import { EuiSpacer, EuiPanel, EuiForm, EuiFieldText, EuiSelect, EuiCompressedFormRow } from '@elastic/eui'; +import { EuiSpacer, EuiPanel, EuiForm, EuiCompressedFieldText, EuiSelect, EuiCompressedFormRow } from '@elastic/eui'; import { CustomLayerSpecification } from '../../../model/mapLayerType'; interface Props { @@ -198,7 +198,7 @@ export const CustomMapSource = ({ error={isInvalidURL(customMapURL) ? 'Invalid URL' : undefined} fullWidth={true} > - - - - + - + - + - - + - - + )} diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index 921dc383..24a6a324 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -9,7 +9,7 @@ import { EuiFlexItem, EuiFormLabel, EuiFlexGrid, - EuiFieldNumber, + EuiCompressedFieldNumber, EuiFormErrorText, EuiCollapsibleNavGroup, EuiSpacer, @@ -315,7 +315,7 @@ export const DocumentLayerSource = ({ Number of documents - - {label?.textType === DOCUMENTS_LABEL_TEXT_TYPE.FIXED && ( - - - - { diff --git a/public/components/vector_upload_options.tsx b/public/components/vector_upload_options.tsx index da0b3984..3b1da6d3 100644 --- a/public/components/vector_upload_options.tsx +++ b/public/components/vector_upload_options.tsx @@ -14,7 +14,7 @@ import { EuiText, EuiSpacer, EuiCard, - EuiFieldText, + EuiCompressedFieldText, EuiTextColor, EuiCompressedFormRow, EuiCodeBlock, @@ -356,7 +356,7 @@ const VectorUploadOptions = (props: RegionMapOptionsProps) => { - Date: Thu, 11 Jul 2024 13:25:35 -0700 Subject: [PATCH 06/13] Use EuiCompressedSelect and EuiCompressedSuperSelect Signed-off-by: Miki --- .../layer_config/custom_map_config/custom_map_source.tsx | 4 ++-- .../layer_config/documents_config/style/label_config.tsx | 6 +++--- .../toolbar/spatial_filter/filter_input_panel.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/components/layer_config/custom_map_config/custom_map_source.tsx b/public/components/layer_config/custom_map_config/custom_map_source.tsx index f20db427..2c680b91 100644 --- a/public/components/layer_config/custom_map_config/custom_map_source.tsx +++ b/public/components/layer_config/custom_map_config/custom_map_source.tsx @@ -4,7 +4,7 @@ */ import React, { useEffect, useState } from 'react'; -import { EuiSpacer, EuiPanel, EuiForm, EuiCompressedFieldText, EuiSelect, EuiCompressedFormRow } from '@elastic/eui'; +import { EuiSpacer, EuiPanel, EuiForm, EuiCompressedFieldText, EuiCompressedSelect, EuiCompressedFormRow } from '@elastic/eui'; import { CustomLayerSpecification } from '../../../model/mapLayerType'; interface Props { @@ -180,7 +180,7 @@ export const CustomMapSource = ({ - - - - { From 99a52089b71cf04f9abf18a047cd6f26f92abeed Mon Sep 17 00:00:00 2001 From: Miki Date: Thu, 11 Jul 2024 13:57:27 -0700 Subject: [PATCH 07/13] Use EuiCompressedCheckbox and EuiCompressedCheckboxGroup Signed-off-by: Miki --- .../layer_config/documents_config/document_layer_source.tsx | 3 ++- .../layer_config/documents_config/style/label_config.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index 24a6a324..e39de8b1 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -16,6 +16,7 @@ import { EuiPanel, EuiForm, EuiSwitch, + EuiCompressedCheckbox, EuiCheckbox, EuiCompressedFormRow, } from '@elastic/eui'; @@ -384,7 +385,7 @@ export const DocumentLayerSource = ({ > - - Date: Thu, 11 Jul 2024 14:01:23 -0700 Subject: [PATCH 08/13] Use EuiCompressedDualRange Signed-off-by: Miki --- public/components/layer_config/layer_basic_settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/layer_config/layer_basic_settings.tsx b/public/components/layer_config/layer_basic_settings.tsx index 9dd6320e..1cf3488d 100644 --- a/public/components/layer_config/layer_basic_settings.tsx +++ b/public/components/layer_config/layer_basic_settings.tsx @@ -5,7 +5,7 @@ import React, { useState, useEffect } from 'react'; import { - EuiDualRange, + EuiCompressedDualRange, EuiCompressedFieldText, EuiForm, EuiCompressedFormRow, @@ -126,7 +126,7 @@ export const LayerBasicSettings = ({ - Date: Thu, 11 Jul 2024 14:04:06 -0700 Subject: [PATCH 09/13] Use EuiCompressedFilePicker Signed-off-by: Miki --- public/components/vector_upload_options.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/vector_upload_options.tsx b/public/components/vector_upload_options.tsx index 3b1da6d3..1ab87510 100644 --- a/public/components/vector_upload_options.tsx +++ b/public/components/vector_upload_options.tsx @@ -8,7 +8,7 @@ import React, { useState } from 'react'; import path from 'path'; import { EuiSmallButton, - EuiFilePicker, + EuiCompressedFilePicker, EuiFlexItem, EuiFlexGroup, EuiText, @@ -324,7 +324,7 @@ const VectorUploadOptions = (props: RegionMapOptionsProps) => { - Date: Thu, 11 Jul 2024 14:24:11 -0700 Subject: [PATCH 10/13] Use EuiCompressedSwitch Signed-off-by: Miki --- .../layer_config/documents_config/document_layer_source.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index e39de8b1..320fda00 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -15,7 +15,7 @@ import { EuiSpacer, EuiPanel, EuiForm, - EuiSwitch, + EuiCompressedSwitch, EuiCompressedCheckbox, EuiCheckbox, EuiCompressedFormRow, @@ -415,7 +415,7 @@ export const DocumentLayerSource = ({ /> - Date: Thu, 11 Jul 2024 14:31:41 -0700 Subject: [PATCH 11/13] Use EuiCompressedEuiTextArea Signed-off-by: Miki --- public/components/layer_config/layer_basic_settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/components/layer_config/layer_basic_settings.tsx b/public/components/layer_config/layer_basic_settings.tsx index 1cf3488d..58016ff0 100644 --- a/public/components/layer_config/layer_basic_settings.tsx +++ b/public/components/layer_config/layer_basic_settings.tsx @@ -14,7 +14,7 @@ import { EuiRange, EuiPanel, EuiFormLabel, - EuiTextArea, + EuiCompressedTextArea, } from '@elastic/eui'; import { MapLayerSpecification } from '../../model/mapLayerType'; import { @@ -117,7 +117,7 @@ export const LayerBasicSettings = ({ - Date: Thu, 11 Jul 2024 16:56:03 -0700 Subject: [PATCH 12/13] Use EuiCompressedComboBox Signed-off-by: Miki --- .../layer_config/documents_config/document_layer_source.tsx | 6 +++--- .../layer_config/documents_config/style/label_config.tsx | 4 ++-- public/components/tooltip/tooltipTable.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/components/layer_config/documents_config/document_layer_source.tsx b/public/components/layer_config/documents_config/document_layer_source.tsx index 320fda00..e1bd1588 100644 --- a/public/components/layer_config/documents_config/document_layer_source.tsx +++ b/public/components/layer_config/documents_config/document_layer_source.tsx @@ -5,7 +5,7 @@ import React, { useMemo, useCallback, useEffect, useRef, useState } from 'react'; import { - EuiComboBox, + EuiCompressedComboBox, EuiFlexItem, EuiFormLabel, EuiFlexGrid, @@ -295,7 +295,7 @@ export const DocumentLayerSource = ({ data-test-subj={'geoFieldSelect'} fullWidth={true} > - Tooltip fields - )} {(!label?.textType || label?.textType === DOCUMENTS_LABEL_TEXT_TYPE.BY_FIELD) && ( - {showLayerSelection && options?.length > 1 && ( - + placeholder="Select a layer" selectedOptions={selectedLayers} singleSelection={{ asPlainText: true }} From 591880f3a18335837b35699fc98fd48b7e501ba6 Mon Sep 17 00:00:00 2001 From: Miki Date: Fri, 2 Aug 2024 14:24:46 -0700 Subject: [PATCH 13/13] Update snapshots and tests Signed-off-by: Miki --- .../vector_upload_options.test.tsx.snap | 20 +++++------ .../__snapshots__/filter_editor.test.tsx.snap | 22 ++++++------ .../style/label_config.test.tsx | 34 ++++++++++++------- .../layer_basic_settings.test.tsx | 32 ++++++++++------- public/components/vector_upload_options.tsx | 1 + 5 files changed, 62 insertions(+), 47 deletions(-) diff --git a/public/components/__snapshots__/vector_upload_options.test.tsx.snap b/public/components/__snapshots__/vector_upload_options.test.tsx.snap index b2cfd5f8..1bd63af1 100644 --- a/public/components/__snapshots__/vector_upload_options.test.tsx.snap +++ b/public/components/__snapshots__/vector_upload_options.test.tsx.snap @@ -39,14 +39,14 @@ Object { />