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" > @@ -333,7 +333,7 @@ exports[` spec click clear button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -352,7 +352,7 @@ exports[` spec click clear button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response causes an error 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response causes an error 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -773,7 +773,7 @@ exports[` spec click run button, and response causes an error 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -792,7 +792,7 @@ exports[` spec click run button, and response causes an error 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response is not ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response is not ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -1213,7 +1213,7 @@ exports[` spec click run button, and response is not ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -1232,7 +1232,7 @@ exports[` spec click run button, and response is not ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -1653,7 +1653,7 @@ exports[` spec click run button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -1672,7 +1672,7 @@ exports[` spec click run button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, response fills null and missing values class="euiFlexItem euiFlexItem--flexGrowZero" > spec click run button, response fills null and missing values class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2093,7 +2093,7 @@ exports[` spec click run button, response fills null and missing values class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2112,7 +2112,7 @@ exports[` spec click run button, response fills null and missing values class="euiFlexItem euiFlexItem--flexGrowZero" > spec click translation button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec click translation button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2533,7 +2533,7 @@ exports[` spec click translation button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2552,7 +2552,7 @@ exports[` spec click translation button, and response is ok 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2973,7 +2973,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -2992,7 +2992,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component and checks if side tree is loaded 1 class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component and checks if side tree is loaded 1 class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -4441,7 +4441,7 @@ exports[` spec renders the component and checks if side tree is loaded 1 class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -4460,7 +4460,7 @@ exports[` spec renders the component and checks if side tree is loaded 1 class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component and toggles ppl 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec renders the component and toggles ppl 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -4881,7 +4881,7 @@ exports[` spec renders the component and toggles ppl 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -4900,7 +4900,7 @@ exports[` spec renders the component and toggles ppl 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > { - + {linkTitle} - + diff --git a/public/components/PPLPage/PPLPage.tsx b/public/components/PPLPage/PPLPage.tsx index 1915e6c4..4b9d066a 100644 --- a/public/components/PPLPage/PPLPage.tsx +++ b/public/components/PPLPage/PPLPage.tsx @@ -4,7 +4,7 @@ */ import { - EuiButton, + EuiSmallButton, EuiCodeBlock, EuiCodeEditor, EuiComboBoxOptionOption, @@ -91,9 +91,9 @@ export class PPLPage extends React.Component { - + Close - + @@ -125,11 +125,8 @@ export class PPLPage extends React.Component { /> - - + { onClick={() => this.props.onRun(this.props.pplQuery)} > {this.props.asyncLoading ? 'Running' : 'Run'} - + { this.props.onClear(); }} > - + Clear - + {this.props.selectedDatasource && this.props.selectedDatasource[0].label === 'OpenSearch' ? ( this.props.onTranslate(this.props.pplQuery)}> - Explain - + ) : ( this.props.updatePPLQueries(SAMPLE_PPL_QUERY)}> - + Sample Query - + )} diff --git a/public/components/PPLPage/__snapshots__/PPLPage.test.tsx.snap b/public/components/PPLPage/__snapshots__/PPLPage.test.tsx.snap index 4e863c46..fd842883 100644 --- a/public/components/PPLPage/__snapshots__/PPLPage.test.tsx.snap +++ b/public/components/PPLPage/__snapshots__/PPLPage.test.tsx.snap @@ -138,7 +138,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero sql-editor-buttons" > @@ -157,7 +157,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -176,7 +176,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec tests the Sample query button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero sql-editor-buttons" > @@ -352,7 +352,7 @@ exports[` spec tests the Sample query button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -371,7 +371,7 @@ exports[` spec tests the Sample query button 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec tests the Sample query button 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero sql-editor-buttons" > @@ -547,7 +547,7 @@ exports[` spec tests the Sample query button 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -566,7 +566,7 @@ exports[` spec tests the Sample query button 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero sql-editor-buttons" > @@ -742,7 +742,7 @@ exports[` spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -761,7 +761,7 @@ exports[` spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec tests the action buttons 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero sql-editor-buttons" > @@ -940,7 +940,7 @@ exports[` spec tests the action buttons 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -959,7 +959,7 @@ exports[` spec tests the action buttons 2`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > {this.props.queryResults.length > 0 && (this.props.isResultFullScreen ? ( - - + Close - + @@ -404,7 +405,7 @@ class QueryResultsBody extends React.Component this.toggleNodeData(node, expandedRowMap)} aria-label={ @@ -426,7 +427,7 @@ class QueryResultsBody extends React.Component this.updateExpandedRowMap(node, expandedRowMap)} aria-label={ expandedRowMap[node.parent!.nodeId] && diff --git a/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap b/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap index f484174e..04116e3f 100644 --- a/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap +++ b/public/components/QueryResults/__snapshots__/QueryResults.test.tsx.snap @@ -97,7 +97,7 @@ exports[` spec renders async query failure component 1`] = The query failed to execute and the operation could not be complete. spec renders async query loading component 1`] = running spec renders the component with mock quer > @@ -1331,7 +1331,7 @@ exports[` spec renders the component with mock quer > @@ -1713,7 +1713,7 @@ exports[` spec renders the component with mock quer > @@ -2095,7 +2095,7 @@ exports[` spec renders the component with mock quer > @@ -2477,7 +2477,7 @@ exports[` spec renders the component with mock quer > @@ -2859,7 +2859,7 @@ exports[` spec renders the component with mock quer > @@ -3241,7 +3241,7 @@ exports[` spec renders the component with mock quer > @@ -3623,7 +3623,7 @@ exports[` spec renders the component with mock quer > @@ -4005,7 +4005,7 @@ exports[` spec renders the component with mock quer > @@ -4387,7 +4387,7 @@ exports[` spec renders the component with mock quer > @@ -5740,7 +5740,7 @@ exports[` spec renders the component with mock query re > @@ -6121,7 +6121,7 @@ exports[` spec renders the component with mock query re > @@ -6502,7 +6502,7 @@ exports[` spec renders the component with mock query re > @@ -6883,7 +6883,7 @@ exports[` spec renders the component with mock query re > @@ -7264,7 +7264,7 @@ exports[` spec renders the component with mock query re > @@ -7645,7 +7645,7 @@ exports[` spec renders the component with mock query re > @@ -8026,7 +8026,7 @@ exports[` spec renders the component with mock query re > @@ -8407,7 +8407,7 @@ exports[` spec renders the component with mock query re > @@ -8788,7 +8788,7 @@ exports[` spec renders the component with mock query re > @@ -9169,7 +9169,7 @@ exports[` spec renders the component with mock query re > @@ -10521,7 +10521,7 @@ exports[` spec renders the component with mock query re > @@ -10903,7 +10903,7 @@ exports[` spec renders the component with mock query re > @@ -11285,7 +11285,7 @@ exports[` spec renders the component with mock query re > @@ -11667,7 +11667,7 @@ exports[` spec renders the component with mock query re > @@ -12049,7 +12049,7 @@ exports[` spec renders the component with mock query re > @@ -12431,7 +12431,7 @@ exports[` spec renders the component with mock query re > @@ -12813,7 +12813,7 @@ exports[` spec renders the component with mock query re > @@ -13195,7 +13195,7 @@ exports[` spec renders the component with mock query re > @@ -13577,7 +13577,7 @@ exports[` spec renders the component with mock query re > @@ -13959,7 +13959,7 @@ exports[` spec renders the component with mock query re > diff --git a/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap b/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap index d75233d4..549623ad 100644 --- a/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap +++ b/public/components/QueryResults/__snapshots__/QueryResultsBody.test.tsx.snap @@ -438,7 +438,7 @@ exports[` spec renders component with mock > @@ -820,7 +820,7 @@ exports[` spec renders component with mock > @@ -1202,7 +1202,7 @@ exports[` spec renders component with mock > @@ -1584,7 +1584,7 @@ exports[` spec renders component with mock > @@ -1966,7 +1966,7 @@ exports[` spec renders component with mock > @@ -2348,7 +2348,7 @@ exports[` spec renders component with mock > @@ -2730,7 +2730,7 @@ exports[` spec renders component with mock > @@ -3112,7 +3112,7 @@ exports[` spec renders component with mock > @@ -3494,7 +3494,7 @@ exports[` spec renders component with mock > @@ -3876,7 +3876,7 @@ exports[` spec renders component with mock > @@ -4258,7 +4258,7 @@ exports[` spec renders component with mock > @@ -5441,7 +5441,7 @@ exports[` spec renders component with mock > @@ -5822,7 +5822,7 @@ exports[` spec renders component with mock > @@ -6203,7 +6203,7 @@ exports[` spec renders component with mock > @@ -6584,7 +6584,7 @@ exports[` spec renders component with mock > @@ -6965,7 +6965,7 @@ exports[` spec renders component with mock > @@ -7346,7 +7346,7 @@ exports[` spec renders component with mock > @@ -7727,7 +7727,7 @@ exports[` spec renders component with mock > @@ -8108,7 +8108,7 @@ exports[` spec renders component with mock > @@ -8489,7 +8489,7 @@ exports[` spec renders component with mock > @@ -8870,7 +8870,7 @@ exports[` spec renders component with mock > @@ -9251,7 +9251,7 @@ exports[` spec renders component with mock > @@ -10307,7 +10307,7 @@ exports[` spec renders component with mock > @@ -10718,7 +10718,7 @@ exports[` spec renders component with mock > spec renders component with mock > spec renders component with mock > spec renders component with mock > spec renders component with mock > spec renders component with mock > @@ -11383,7 +11383,7 @@ exports[` spec renders component with mock > @@ -11764,7 +11764,7 @@ exports[` spec renders component with mock > @@ -12145,7 +12145,7 @@ exports[` spec renders component with mock > @@ -12526,7 +12526,7 @@ exports[` spec renders component with mock > @@ -12907,7 +12907,7 @@ exports[` spec renders component with mock > @@ -13288,7 +13288,7 @@ exports[` spec renders component with mock > @@ -13669,7 +13669,7 @@ exports[` spec renders component with mock > @@ -14050,7 +14050,7 @@ exports[` spec renders component with mock > @@ -14431,7 +14431,7 @@ exports[` spec renders component with mock > diff --git a/public/components/QueryResults/async_query_body.tsx b/public/components/QueryResults/async_query_body.tsx index 7c326bca..490860fd 100644 --- a/public/components/QueryResults/async_query_body.tsx +++ b/public/components/QueryResults/async_query_body.tsx @@ -4,7 +4,7 @@ */ import { - EuiButton, + EuiSmallButton, EuiFlexGroup, EuiIcon, EuiLoadingSpinner, @@ -41,9 +41,9 @@ export function AsyncQueryBody(props: AsyncQueryBodyProps) { {asyncQueryError} - + Close - + ); @@ -58,7 +58,7 @@ export function AsyncQueryBody(props: AsyncQueryBodyProps) { Query failed The query failed to execute and the operation could not be complete. - showModal()}>View error details + showModal()}>View error details {modal} > ) : ( @@ -69,7 +69,7 @@ export function AsyncQueryBody(props: AsyncQueryBodyProps) { Status: {asyncLoadingStatus} {asyncLoadingStatus !== AsyncQueryStatus.Scheduled && ( - Cancel + Cancel )} > )} diff --git a/public/components/SQLPage/CreateButton.tsx b/public/components/SQLPage/CreateButton.tsx index 2120b926..37c4e013 100644 --- a/public/components/SQLPage/CreateButton.tsx +++ b/public/components/SQLPage/CreateButton.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiButton, EuiComboBoxOptionOption, EuiContextMenu, EuiPopover } from '@elastic/eui'; +import { EuiSmallButton, EuiComboBoxOptionOption, EuiContextMenu, EuiPopover } from '@elastic/eui'; import React, { useState } from 'react'; import { COVERING_INDEX_QUERY, @@ -66,9 +66,9 @@ export const CreateButton = ({ updateSQLQueries, selectedDatasource }: CreateBut ]; const button = ( - togglePopover(null)}> + togglePopover(null)}> Create - + ); return ( diff --git a/public/components/SQLPage/DataSelect.tsx b/public/components/SQLPage/DataSelect.tsx index 8af7be70..484c74c1 100644 --- a/public/components/SQLPage/DataSelect.tsx +++ b/public/components/SQLPage/DataSelect.tsx @@ -3,7 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { EuiComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; +import { EuiCompressedComboBox, EuiComboBoxOptionOption } from '@elastic/eui'; import React, { useEffect, useState } from 'react'; import { CoreStart } from '../../../../../src/core/public'; import { fetchDataSources } from '../../../common/utils/fetch_datasources'; @@ -38,10 +38,10 @@ export const DataSelect = ({ http, onSelect, urlDataSource, asyncLoading, dataSo onSelect(selectedItems); } }; - + return ( options.length > 0 && ( - { - + Close - + @@ -160,7 +160,7 @@ export class SQLPage extends React.Component { - { onClick={() => this.props.onRun(this.props.sqlQuery)} > {this.props.asyncLoading ? 'Running' : 'Run'} - + { this.props.onClear(); }} > - Clear - + {this.props.selectedDatasource && this.props.selectedDatasource[0].label === 'OpenSearch' ? ( @@ -191,22 +191,22 @@ export class SQLPage extends React.Component { grow={false} onClick={() => this.props.onTranslate(this.props.sqlQuery)} > - Explain - + ) : ( this.props.updateSQLQueries(SAMPLE_SQL_QUERY)} > - + Sample Query - + )} @@ -214,7 +214,7 @@ export class SQLPage extends React.Component { {this.props.selectedDatasource && this.props.selectedDatasource[0].label !== 'OpenSearch' && ( - this.renderCreateAccelerationFlyout({ @@ -225,7 +225,7 @@ export class SQLPage extends React.Component { isDisabled={this.props.asyncLoading} > Accelerate Table - + )} diff --git a/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap b/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap index a08c41d7..734c0c5b 100644 --- a/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap +++ b/public/components/SQLPage/__snapshots__/SQLPage.test.tsx.snap @@ -136,7 +136,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -155,7 +155,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -174,7 +174,7 @@ exports[` spec renders the component 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -350,7 +350,7 @@ exports[` spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > @@ -369,7 +369,7 @@ exports[` spec tests the action buttons 1`] = ` class="euiFlexItem euiFlexItem--flexGrowZero" > - + Close - + diff --git a/public/components/acceleration/create/__tests__/__snapshots__/create_acceleration.test.tsx.snap b/public/components/acceleration/create/__tests__/__snapshots__/create_acceleration.test.tsx.snap index 55866b92..20ad56df 100644 --- a/public/components/acceleration/create/__tests__/__snapshots__/create_acceleration.test.tsx.snap +++ b/public/components/acceleration/create/__tests__/__snapshots__/create_acceleration.test.tsx.snap @@ -147,7 +147,7 @@ Array [ class="euiSpacer euiSpacer--s" /> @@ -215,7 +215,7 @@ Array [ > @@ -309,7 +309,7 @@ Array [ > @@ -403,7 +403,7 @@ Array [ > @@ -544,7 +544,7 @@ Array [ > , , , , , , , , , - + Close - + - + Copy Query to Editor - + diff --git a/public/components/acceleration/selectors/__tests__/__snapshots__/define_index_options.test.tsx.snap b/public/components/acceleration/selectors/__tests__/__snapshots__/define_index_options.test.tsx.snap index 15915e36..514f7ada 100644 --- a/public/components/acceleration/selectors/__tests__/__snapshots__/define_index_options.test.tsx.snap +++ b/public/components/acceleration/selectors/__tests__/__snapshots__/define_index_options.test.tsx.snap @@ -14,7 +14,7 @@ Array [ className="euiSpacer euiSpacer--s" />, , , , , , , , , , ,