-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace link under charts with CallOut above charts with link to Clie…
…nt Side Monitoring
- Loading branch information
Showing
4 changed files
with
50 additions
and
37 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
x-pack/plugins/apm/public/components/app/TransactionOverview/ClientSideMonitoringCallout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { EuiButton, EuiCallOut, EuiSpacer, EuiText } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { useApmPluginContext } from '../../../hooks/useApmPluginContext'; | ||
|
||
export function ClientSideMonitoringCallout() { | ||
const { core } = useApmPluginContext(); | ||
const clientSideMonitoringHref = core.http.basePath.prepend(`/app/csm`); | ||
|
||
return ( | ||
<EuiCallOut | ||
iconType="cheer" | ||
title={i18n.translate( | ||
'xpack.apm.transactionOverview.clientSideMonitoring.calloutTitle', | ||
{ defaultMessage: 'New app: Client Side Monitoring' } | ||
)} | ||
> | ||
<EuiText> | ||
{i18n.translate( | ||
'xpack.apm.transactionOverview.clientSideMonitoring.calloutText', | ||
{ | ||
defaultMessage: | ||
'We are introducing a new app which contains breakdown information around browser and location by page load.', | ||
} | ||
)} | ||
</EuiText> | ||
<EuiSpacer size="m" /> | ||
<EuiButton href={clientSideMonitoringHref}> | ||
{i18n.translate( | ||
'xpack.apm.transactionOverview.clientSideMonitoring.linkLabel', | ||
{ defaultMessage: 'Learn more' } | ||
)} | ||
</EuiButton> | ||
</EuiCallOut> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
x-pack/plugins/apm/public/components/shared/Links/ClientSideMonitoringLink.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters