From f30cfc1cd6ac57186b3d9cd4a7ca271b3a26183f Mon Sep 17 00:00:00 2001 From: Katerina Patticha Date: Wed, 20 Jul 2022 11:44:26 +0200 Subject: [PATCH] [APM] Adding tech preview on Alert Tab feature (#136615) * [APM] Adding tech preview on Alert Tab feature * Display the icon on the right side --- .../templates/apm_service_template/index.tsx | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx index e1a96816b8242..e8a4ccf0cce91 100644 --- a/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx +++ b/x-pack/plugins/apm/public/components/routing/templates/apm_service_template/index.tsx @@ -36,6 +36,7 @@ import { ServiceIcons } from '../../../shared/service_icons'; import { ApmMainTemplate } from '../apm_main_template'; import { AnalyzeDataButton } from './analyze_data_button'; import { getAlertingCapabilities } from '../../../alerting/get_alerting_capabilities'; +import { TechnicalPreviewBadge } from '../../../shared/technical_preview_badge'; type Tab = NonNullable[0] & { key: @@ -333,9 +334,18 @@ function useTabs({ selectedTab }: { selectedTab: Tab['key'] }) { path: { serviceName }, query, }), - label: i18n.translate('xpack.apm.home.alertsTabLabel', { - defaultMessage: 'Alerts', - }), + label: ( + + + {i18n.translate('xpack.apm.home.alertsTabLabel', { + defaultMessage: 'Alerts', + })} + + + + + + ), hidden: !(isAlertingAvailable && canReadAlerts), }, ];