Skip to content

Commit

Permalink
Update ECMA copy (#150197)
Browse files Browse the repository at this point in the history
Fixes: #149159
Fixes: #150244

This PR applies ECMA copy improvements

---------

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
claracruz and kibanamachine authored Feb 6, 2023
1 parent 87e0204 commit 60defc5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ describe('MoveData', () => {
const component = shallowWithIntl(<MoveData addBasePath={addBasePathMock} />);

const $button = component.find('EuiButton');
expect($button.props().href).toBe('/app/management/data/migrate_data');
expect($button.props().href).toBe('https://ela.st/cloud-migration');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import React, { FC, MouseEvent } from 'react';
import React, { FC } from 'react';
import {
EuiButton,
EuiFlexGroup,
Expand All @@ -19,18 +19,17 @@ import {
} from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { i18n } from '@kbn/i18n';
import { createAppNavigationHandler } from '../app_navigation_handler';

interface Props {
addBasePath: (path: string) => string;
}

export const MoveData: FC<Props> = ({ addBasePath }) => {
const migrateDataUrl = '/app/management/data/migrate_data';
const migrateDataUrl = 'https://ela.st/cloud-migration';
const buttonLabel = (
<FormattedMessage
id="home.addData.moveYourDataButtonLabel"
defaultMessage="Explore the benefits"
defaultMessage="Move to Elastic Cloud"
/>
);

Expand All @@ -50,26 +49,23 @@ export const MoveData: FC<Props> = ({ addBasePath }) => {
<h4>
<FormattedMessage
id="home.addData.moveYourDataTitle"
defaultMessage="Considering Elastic Cloud?"
defaultMessage="Try managed Elastic"
/>
</h4>
</EuiTitle>
<EuiSpacer size="s" />
<EuiText size="s">
<FormattedMessage
id="home.addData.moveYourDataToElasticCloud"
defaultMessage="Moving your data to Elastic Cloud is easy and can save you time and money."
defaultMessage="Deploy, scale, and upgrade your stack faster with Elastic Cloud. We’ll help you quickly move your data."
/>
</EuiText>
<EuiSpacer size="m" />
{/* eslint-disable-next-line @elastic/eui/href-or-on-click */}
<EuiButton
data-test-subj="migrate_data_to_cloud__migrate_data_docs_link"
color="primary"
href={addBasePath(migrateDataUrl)}
onClick={(event: MouseEvent) => {
createAppNavigationHandler(migrateDataUrl)(event);
}}
href={migrateDataUrl}
target="_blank"
>
{buttonLabel}
</EuiButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
<h1>
<FormattedMessage
id="xpack.cloudDataMigration.migrateToCloudTitle"
defaultMessage="Elastic Cloud helps your data work harder."
defaultMessage="Be faster and more efficient with Elastic Cloud"
/>
</h1>
</EuiTitle>
Expand All @@ -86,7 +86,7 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
<EuiText css={styles.listItemCss} size="s" color="subdued">
<FormattedMessage
id="xpack.cloudDataMigration.deployInSeconds.text"
defaultMessage="Deploy Elastic quickly and scale up to petabytes of data with a click."
defaultMessage="Deploy and scale a secure Elastic Stack in minutes"
/>
</EuiText>
}
Expand All @@ -97,8 +97,8 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
label={
<EuiText css={styles.listItemCss} size="s" color="subdued">
<FormattedMessage
id="xpack.cloudDataMigration.freeUpEngineering.text"
defaultMessage="Streamline your Elastic workflow and free up your team. Manage multiple deployments from a single view and centralize your monitoring data."
id="xpack.cloudDataMigration.monitorDeployments.text"
defaultMessage="Monitor and manage multiple deployments from a single place"
/>
</EuiText>
}
Expand All @@ -109,8 +109,8 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
label={
<EuiText css={styles.listItemCss} size="s" color="subdued">
<FormattedMessage
id="xpack.cloudDataMigration.getHelpFromCreators.text"
defaultMessage="Get support from the creators of Elastic to help you ingest all sorts of data and tune your performance."
id="xpack.cloudDataMigration.upgrade.text"
defaultMessage="Upgrade to newer versions much more easily"
/>
</EuiText>
}
Expand All @@ -121,8 +121,8 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
label={
<EuiText css={styles.listItemCss} size="s" color="subdued">
<FormattedMessage
id="xpack.cloudDataMigration.getInstantAccess.text"
defaultMessage="Access the latest version of Elastic with features you want, like anomaly detection, searchable snapshots, advanced security, and so much more."
id="xpack.cloudDataMigration.slaBackedSupport.text"
defaultMessage="Get all of your questions answered with SLA-backed support"
/>
</EuiText>
}
Expand All @@ -141,7 +141,7 @@ export const CloudDataMigrationApp = ({ http, breadcrumbService }: CloudDataMigr
>
<FormattedMessage
id="xpack.cloudDataMigration.readInstructionsButtonLabel"
defaultMessage="Help me move"
defaultMessage="Move to Elastic Cloud"
/>
</EuiButton>
</div>
Expand Down

0 comments on commit 60defc5

Please sign in to comment.