[RUM Dashboard] Update rum title to be consistent with APM (#70460)
This commit is contained in:
parent
006670244a
commit
9ff68e4c8c
|
@ -27,7 +27,6 @@ import { ServiceOverview } from '../ServiceOverview';
|
|||
import { TraceOverview } from '../TraceOverview';
|
||||
import { RumOverview } from '../RumDashboard';
|
||||
import { RumOverviewLink } from '../../shared/Links/apm/RumOverviewLink';
|
||||
import { I18LABELS } from '../RumDashboard/translations';
|
||||
|
||||
function getHomeTabs({
|
||||
serviceMapEnabled = true,
|
||||
|
@ -109,11 +108,7 @@ export function Home({ tab }: Props) {
|
|||
<EuiFlexGroup alignItems="center">
|
||||
<EuiFlexItem grow={false}>
|
||||
<EuiTitle size="l">
|
||||
<h1>
|
||||
{selectedTab.name === 'rum-overview'
|
||||
? I18LABELS.endUserExperience
|
||||
: 'APM'}
|
||||
</h1>
|
||||
<h1>APM</h1>
|
||||
</EuiTitle>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem grow={false}>
|
||||
|
|
|
@ -16,25 +16,9 @@ import { ClientMetrics } from './ClientMetrics';
|
|||
import { PageViewsTrend } from './PageViewsTrend';
|
||||
import { PageLoadDistribution } from './PageLoadDistribution';
|
||||
import { I18LABELS } from './translations';
|
||||
import { useUrlParams } from '../../../hooks/useUrlParams';
|
||||
|
||||
export function RumDashboard() {
|
||||
const { urlParams } = useUrlParams();
|
||||
|
||||
const { environment } = urlParams;
|
||||
|
||||
let environmentLabel = environment || 'all environments';
|
||||
|
||||
if (environment === 'ENVIRONMENT_NOT_DEFINED') {
|
||||
environmentLabel = 'undefined environment';
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<EuiTitle>
|
||||
<h2>{I18LABELS.getWhatIsGoingOn(environmentLabel)}</h2>
|
||||
</EuiTitle>
|
||||
<EuiSpacer />
|
||||
<EuiFlexGroup direction="column" gutterSize="s">
|
||||
<EuiFlexItem>
|
||||
<EuiPanel>
|
||||
|
@ -60,6 +44,5 @@ export function RumDashboard() {
|
|||
</EuiPanel>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -7,14 +7,6 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
|
||||
export const I18LABELS = {
|
||||
endUserExperience: i18n.translate('xpack.apm.rum.dashboard.title', {
|
||||
defaultMessage: 'End User Experience',
|
||||
}),
|
||||
getWhatIsGoingOn: (environmentVal: string) =>
|
||||
i18n.translate('xpack.apm.rum.dashboard.environment.title', {
|
||||
defaultMessage: `What's going on in {environmentVal}?`,
|
||||
values: { environmentVal },
|
||||
}),
|
||||
backEnd: i18n.translate('xpack.apm.rum.dashboard.backend', {
|
||||
defaultMessage: 'Backend',
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue