From e15f0e9dcea4da140e22430bb15f3d05e358c012 Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Fri, 15 Jan 2021 13:43:27 -0500 Subject: [PATCH 1/2] [Monitoring] Change cloud messaging on no data page (#88375) * WIP * Update tests * Update copy * Fix translations and update copy * Fix tests and update copy --- .../no_data/blurbs/cloud_deployment.js | 64 +++++++++---------- .../__snapshots__/exporters.test.js.snap | 35 ++++++---- .../public/components/no_data/no_data.js | 49 +++++++++++++- .../__snapshots__/reason_found.test.js.snap | 35 ++++++---- .../translations/translations/ja-JP.json | 2 - .../translations/translations/zh-CN.json | 2 - 6 files changed, 124 insertions(+), 63 deletions(-) diff --git a/x-pack/plugins/monitoring/public/components/no_data/blurbs/cloud_deployment.js b/x-pack/plugins/monitoring/public/components/no_data/blurbs/cloud_deployment.js index 073c84ee382aa..c01243fdeec47 100644 --- a/x-pack/plugins/monitoring/public/components/no_data/blurbs/cloud_deployment.js +++ b/x-pack/plugins/monitoring/public/components/no_data/blurbs/cloud_deployment.js @@ -4,45 +4,41 @@ * you may not use this file except in compliance with the Elastic License. */ -import React, { Fragment } from 'react'; -import { EuiTitle, EuiText, EuiTextColor, EuiLink, EuiSpacer } from '@elastic/eui'; +import React from 'react'; +import { EuiText, EuiTextColor, EuiLink } from '@elastic/eui'; import { FormattedMessage } from '@kbn/i18n/react'; export const CloudDeployment = () => { return ( - - -

+ + +

-

-
- - - -

- - - cloud dashboard. - {' '} - - - the documentation. - -

-
-
-
+ + Elasticsearch Service Console + {' '} + + + Logs and metrics + {' '} + + + the documentation page. + +

+ + ); }; diff --git a/x-pack/plugins/monitoring/public/components/no_data/explanations/exporters/__snapshots__/exporters.test.js.snap b/x-pack/plugins/monitoring/public/components/no_data/explanations/exporters/__snapshots__/exporters.test.js.snap index ed45933fa9471..99f5a979c812b 100644 --- a/x-pack/plugins/monitoring/public/components/no_data/explanations/exporters/__snapshots__/exporters.test.js.snap +++ b/x-pack/plugins/monitoring/public/components/no_data/explanations/exporters/__snapshots__/exporters.test.js.snap @@ -87,29 +87,40 @@ Array [ exports[`ExplainExportersCloud should explain about xpack.monitoring.exporters setting in a cloud environment 1`] = ` Array [ -

- Your monitoring data is not available here. -

, -

- Please return to your + Configure monitoring through + + Elasticsearch Service Console + + + (opens in a new tab or window) + + + Go to - cloud dashboard. + Logs and metrics - For more information on Monitoring in Elastic Cloud, please see + section for a deployment to configure monitoring. For more information visit - the documentation. + the documentation page. + +

+ +

+ + + + + + +

+ +

+
+ + +

+ +

+
+
+ + +
+
+ + ); + } + if (useInternalCollection) { return ( diff --git a/x-pack/plugins/monitoring/public/components/no_data/reasons/__snapshots__/reason_found.test.js.snap b/x-pack/plugins/monitoring/public/components/no_data/reasons/__snapshots__/reason_found.test.js.snap index 9e3b7c0e25d5d..e3d25f97c9f78 100644 --- a/x-pack/plugins/monitoring/public/components/no_data/reasons/__snapshots__/reason_found.test.js.snap +++ b/x-pack/plugins/monitoring/public/components/no_data/reasons/__snapshots__/reason_found.test.js.snap @@ -162,29 +162,40 @@ Array [ exports[`ReasonFound should load ExplainExportersCloud component 1`] = ` Array [ -

- Your monitoring data is not available here. -

, -