From 5a5b8ad9a89ce39274bc241a47c8fc0692e229cc Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Mon, 15 Feb 2021 13:17:31 +0100 Subject: [PATCH] [Lens] Adjust new copy for 7.12 (#90413) --- .../__snapshots__/table_basic.test.tsx.snap | 24 +++++++++---------- .../components/columns.tsx | 4 ++-- .../workspace_panel/workspace_panel.tsx | 21 +--------------- .../calculations/moving_average.tsx | 11 ++++----- .../definitions/calculations/utils.ts | 2 +- .../operations/definitions/date_histogram.tsx | 6 ++--- .../definitions/ranges/range_editor.tsx | 8 +++---- .../xy_visualization/xy_config_panel.tsx | 2 +- .../translations/translations/ja-JP.json | 1 - .../translations/translations/zh-CN.json | 1 - .../test/functional/apps/lens/smokescreen.ts | 6 ++--- x-pack/test/functional/apps/lens/table.ts | 6 ++--- .../test/functional/page_objects/lens_page.ts | 2 +- 13 files changed, 34 insertions(+), 60 deletions(-) diff --git a/x-pack/plugins/lens/public/datatable_visualization/components/__snapshots__/table_basic.test.tsx.snap b/x-pack/plugins/lens/public/datatable_visualization/components/__snapshots__/table_basic.test.tsx.snap index d69af298018e74..158c7fa4aeec37 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/components/__snapshots__/table_basic.test.tsx.snap +++ b/x-pack/plugins/lens/public/datatable_visualization/components/__snapshots__/table_basic.test.tsx.snap @@ -107,10 +107,10 @@ exports[`DatatableComponent it renders actions column when there are row actions "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, @@ -144,10 +144,10 @@ exports[`DatatableComponent it renders actions column when there are row actions "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, @@ -181,10 +181,10 @@ exports[`DatatableComponent it renders actions column when there are row actions "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, @@ -329,10 +329,10 @@ exports[`DatatableComponent it renders the title and value 1`] = ` "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, @@ -366,10 +366,10 @@ exports[`DatatableComponent it renders the title and value 1`] = ` "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, @@ -403,10 +403,10 @@ exports[`DatatableComponent it renders the title and value 1`] = ` "showMoveLeft": false, "showMoveRight": false, "showSortAsc": Object { - "label": "Sort asc", + "label": "Sort ascending", }, "showSortDesc": Object { - "label": "Sort desc", + "label": "Sort descending", }, }, "cellActions": undefined, diff --git a/x-pack/plugins/lens/public/datatable_visualization/components/columns.tsx b/x-pack/plugins/lens/public/datatable_visualization/components/columns.tsx index 5ff1e84276ba77..fdb05599c38e99 100644 --- a/x-pack/plugins/lens/public/datatable_visualization/components/columns.tsx +++ b/x-pack/plugins/lens/public/datatable_visualization/components/columns.tsx @@ -152,14 +152,14 @@ export const createGridColumns = ( ? false : { label: i18n.translate('xpack.lens.table.sort.ascLabel', { - defaultMessage: 'Sort asc', + defaultMessage: 'Sort ascending', }), }, showSortDesc: isReadOnly ? false : { label: i18n.translate('xpack.lens.table.sort.descLabel', { - defaultMessage: 'Sort desc', + defaultMessage: 'Sort descending', }), }, additional: isReadOnly diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx index 219c0638f9b56c..83d2100a832cfd 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/workspace_panel/workspace_panel.tsx @@ -10,16 +10,7 @@ import classNames from 'classnames'; import { FormattedMessage } from '@kbn/i18n/react'; import { Ast } from '@kbn/interpreter/common'; import { i18n } from '@kbn/i18n'; -import { - EuiFlexGroup, - EuiFlexItem, - EuiIcon, - EuiText, - EuiTextColor, - EuiButtonEmpty, - EuiLink, - EuiTitle, -} from '@elastic/eui'; +import { EuiFlexGroup, EuiFlexItem, EuiIcon, EuiText, EuiButtonEmpty, EuiLink } from '@elastic/eui'; import { CoreStart, CoreSetup } from 'kibana/public'; import { DataPublicPluginStart, @@ -420,16 +411,6 @@ export const InnerVisualizationWrapper = ({ - - - - - - - {localState.configurationValidationError[0].longMessage} diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/calculations/moving_average.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/calculations/moving_average.tsx index 7fdc58b74e5093..bc361973bb62cf 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/calculations/moving_average.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/calculations/moving_average.tsx @@ -192,22 +192,21 @@ const MovingAveragePopup = () => {

@@ -227,7 +226,7 @@ const MovingAveragePopup = () => {