Skip to content

Commit 67ad6b9

Browse files
committed
OCPBUGS-63056: Add favourites to Metrics page
1 parent 1abce12 commit 67ad6b9

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

web/src/components/MetricsPage.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import {
2+
DocumentTitle,
3+
ListPageHeader,
24
PrometheusData,
35
PrometheusEndpoint,
46
PrometheusLabels,
@@ -60,7 +62,6 @@ import {
6062
import * as _ from 'lodash-es';
6163
import type { FC, Ref } from 'react';
6264
import { useMemo, useCallback, useEffect, useState } from 'react';
63-
import { Helmet } from 'react-helmet';
6465
import { useTranslation } from 'react-i18next';
6566
import { useDispatch, useSelector } from 'react-redux';
6667

@@ -1391,17 +1392,9 @@ const MetricsPage_: FC = () => {
13911392

13921393
return (
13931394
<>
1394-
<Helmet>
1395-
<title>{t('Metrics')}</title>
1396-
</Helmet>
1397-
<PageSection hasBodyWrapper={false}>
1395+
<DocumentTitle>{t('Metrics')}</DocumentTitle>
1396+
<ListPageHeader title={perspective === 'dev' ? undefined : t('Metrics')}>
13981397
<Split hasGutter>
1399-
{perspective !== 'dev' && (
1400-
<SplitItem>
1401-
<Title headingLevel="h1">{t('Metrics')}</Title>
1402-
</SplitItem>
1403-
)}
1404-
<SplitItem isFilled />
14051398
<SplitItem data-test={DataTestIDs.MetricGraphUnitsDropDown}>
14061399
<Tooltip content={<>{t('This dropdown only formats results.')}</>}>
14071400
<GraphUnitsDropDown />
@@ -1414,7 +1407,7 @@ const MetricsPage_: FC = () => {
14141407
<MetricsActionsMenu />
14151408
</SplitItem>
14161409
</Split>
1417-
</PageSection>
1410+
</ListPageHeader>
14181411
<PageSection hasBodyWrapper={false}>
14191412
<Stack hasGutter>
14201413
<StackItem>

0 commit comments

Comments
 (0)