diff --git a/x-pack/plugins/apm/public/application/uxApp.tsx b/x-pack/plugins/apm/public/application/uxApp.tsx index 1b36008e5c353..e66a8f2551fe9 100644 --- a/x-pack/plugins/apm/public/application/uxApp.tsx +++ b/x-pack/plugins/apm/public/application/uxApp.tsx @@ -22,7 +22,10 @@ import { } from '../../../../../src/plugins/kibana_react/public'; import { APMRouteDefinition } from '../application/routes'; import { ScrollToTopOnPathChange } from '../components/app/Main/ScrollToTopOnPathChange'; -import { RumHome, UX_LABEL } from '../components/app/RumDashboard/RumHome'; +import { + RumHome, + DASHBOARD_LABEL, +} from '../components/app/RumDashboard/RumHome'; import { ApmPluginContext } from '../context/apm_plugin/apm_plugin_context'; import { UrlParamsProvider } from '../context/url_params_context/url_params_context'; import { ConfigSchema } from '../index'; @@ -40,7 +43,7 @@ export const uxRoutes: APMRouteDefinition[] = [ exact: true, path: '/', render: redirectTo('/ux'), - breadcrumb: UX_LABEL, + breadcrumb: DASHBOARD_LABEL, }, ]; diff --git a/x-pack/plugins/apm/public/components/app/RumDashboard/RumHome.tsx b/x-pack/plugins/apm/public/components/app/RumDashboard/RumHome.tsx index 7b3f9c8a911ae..a7db73d71facf 100644 --- a/x-pack/plugins/apm/public/components/app/RumDashboard/RumHome.tsx +++ b/x-pack/plugins/apm/public/components/app/RumDashboard/RumHome.tsx @@ -17,7 +17,7 @@ import { EnvironmentFilter } from '../../shared/EnvironmentFilter'; import { UserPercentile } from './UserPercentile'; import { useBreakpoints } from '../../../hooks/use_breakpoints'; -export const UX_LABEL = i18n.translate('xpack.apm.ux.title', { +export const DASHBOARD_LABEL = i18n.translate('xpack.apm.ux.title', { defaultMessage: 'Dashboard', }); @@ -25,31 +25,9 @@ export function RumHome() { const { observability } = useApmPluginContext(); const PageTemplateComponent = observability.navigation.PageTemplate; - const { isSmall, isXXL } = useBreakpoints(); - - const envStyle = isSmall ? {} : { maxWidth: 500 }; - return ( - , -
- -
, - , - , - ], - } - : { children: } - } - > + }}>
@@ -57,33 +35,31 @@ export function RumHome() { } function PageHeader() { - const { isSmall } = useBreakpoints(); + const sizes = useBreakpoints(); - const envStyle = isSmall ? {} : { maxWidth: 400 }; + const datePickerStyle = sizes.isMedium ? {} : { maxWidth: '70%' }; return (
-

{UX_LABEL}

+

{DASHBOARD_LABEL}

- +
- + - + - -
- -
+ +
diff --git a/x-pack/plugins/apm/public/components/app/RumDashboard/URLFilter/ServiceNameFilter/index.tsx b/x-pack/plugins/apm/public/components/app/RumDashboard/URLFilter/ServiceNameFilter/index.tsx index 9d17f980d16d4..5750dd9cf441e 100644 --- a/x-pack/plugins/apm/public/components/app/RumDashboard/URLFilter/ServiceNameFilter/index.tsx +++ b/x-pack/plugins/apm/public/components/app/RumDashboard/URLFilter/ServiceNameFilter/index.tsx @@ -65,23 +65,22 @@ function ServiceNameFilter({ loading, serviceNames }: Props) { }, [serviceNames, selectedServiceName, updateServiceName, loading]); return ( - <> - { - updateServiceName(event.target.value); - }} - /> - + { + updateServiceName(event.target.value); + }} + /> ); } diff --git a/x-pack/plugins/apm/public/components/app/RumDashboard/UserPercentile/index.tsx b/x-pack/plugins/apm/public/components/app/RumDashboard/UserPercentile/index.tsx index df5e7d6682b3f..0a5669095c2e5 100644 --- a/x-pack/plugins/apm/public/components/app/RumDashboard/UserPercentile/index.tsx +++ b/x-pack/plugins/apm/public/components/app/RumDashboard/UserPercentile/index.tsx @@ -80,9 +80,9 @@ export function UserPercentile() { return ( onChange(evt.target.value)} /> diff --git a/x-pack/plugins/apm/public/components/shared/EnvironmentFilter/index.tsx b/x-pack/plugins/apm/public/components/shared/EnvironmentFilter/index.tsx index 084b8d1ce6840..3524ce65f2c57 100644 --- a/x-pack/plugins/apm/public/components/shared/EnvironmentFilter/index.tsx +++ b/x-pack/plugins/apm/public/components/shared/EnvironmentFilter/index.tsx @@ -85,6 +85,7 @@ export function EnvironmentFilter() { return (