Skip to content

Commit a89ed65

Browse files
committed
refactor: update breadcrumb labels and remove redundant management entries across dashboard components
1 parent e4dbac6 commit a89ed65

File tree

16 files changed

+58
-75
lines changed

16 files changed

+58
-75
lines changed

src/pages/dashboard/api-tokens/ui/components/api-tokens.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function ApiTokensPageComponent(props: IProps) {
2020
<PageHeader
2121
breadcrumbs={[
2222
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
23-
{ label: t('constants.management') },
23+
2424
{
2525
label: t('constants.api-tokens'),
2626
href: ROUTES.DASHBOARD.MANAGEMENT.API_TOKENS

src/pages/dashboard/config-profiles/components/config-profile-by-uuid.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const ConfigProfileByUuidPageComponent = (props: Props) => {
2323
<PageHeader
2424
breadcrumbs={[
2525
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
26-
{ label: t('constants.management') },
26+
2727
{
2828
label: t('constants.config-profiles'),
2929
href: ROUTES.DASHBOARD.MANAGEMENT.CONFIG_PROFILES

src/pages/dashboard/config-profiles/components/config-profiles.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ConfigPageComponent = (props: Props) => {
1919
<PageHeader
2020
breadcrumbs={[
2121
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
22-
{ label: t('constants.management') },
22+
2323
{
2424
label: t('constants.config-profiles'),
2525
href: ROUTES.DASHBOARD.MANAGEMENT.CONFIG_PROFILES

src/pages/dashboard/crm/infra-billing/components/infra-billing.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const InfraBillingPageComponent = () => {
2727
<PageHeader
2828
breadcrumbs={[
2929
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
30-
{ label: t('constants.management') },
30+
3131
{
3232
label: t('constants.nodes'),
3333
href: ROUTES.DASHBOARD.MANAGEMENT.NODES

src/pages/dashboard/home/components/home.page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'
55
import { MetricWithIcon } from '@widgets/dashboard/home/metric-with-icons'
66
import { LoadingScreen, PageHeader } from '@shared/ui'
77
import { MetricWithTrend } from '@shared/ui/metrics'
8+
import { ROUTES } from '@shared/constants'
89
import { Page } from '@shared/ui/page'
910

1011
import {
@@ -103,8 +104,7 @@ export const HomePage = (props: IProps) => {
103104
<Page title={t('constants.home')}>
104105
<PageHeader
105106
breadcrumbs={[
106-
{ label: t('constants.dashboard'), href: '/' },
107-
{ label: t('constants.overview'), href: '/' },
107+
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
108108
{ label: t('constants.home') }
109109
]}
110110
title={t('home.page.short-stats')}

src/pages/dashboard/hosts/ui/components/hosts.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function HostsPageComponent(props: IProps) {
2323
<PageHeader
2424
breadcrumbs={[
2525
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
26-
{ label: t('constants.management') },
26+
2727
{ label: t('constants.hosts') }
2828
]}
2929
title={t('constants.hosts')}

src/pages/dashboard/internal-squads/components/internal-squads.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const InternalSquadsPageComponent = (props: Props) => {
1919
<PageHeader
2020
breadcrumbs={[
2121
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
22-
{ label: t('constants.management') },
22+
2323
{
2424
label: t('constants.internal-squads'),
2525
href: ROUTES.DASHBOARD.MANAGEMENT.INTERNAL_SQUADS

src/pages/dashboard/nodes-bandwidth-table/ui/components/nodes-bandwidth-table.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function NodesBandwidthTablePageComponent(props: IProps) {
1818
<PageHeader
1919
breadcrumbs={[
2020
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
21-
{ label: t('constants.management') },
21+
2222
{ label: t('constants.nodes'), href: ROUTES.DASHBOARD.MANAGEMENT.NODES },
2323
{ label: t('constants.nodes-bandwidth-table') }
2424
]}

src/pages/dashboard/nodes-metrics/ui/components/nodes-metrics.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function NodesMetricsPageComponent(props: IProps) {
1717
<PageHeader
1818
breadcrumbs={[
1919
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
20-
{ label: t('constants.management') },
20+
2121
{ label: t('constants.nodes'), href: ROUTES.DASHBOARD.MANAGEMENT.NODES },
2222
{ label: t('constants.nodes-metrics') }
2323
]}

src/pages/dashboard/nodes/ui/components/nodes.page.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function NodesPageComponent(props: IProps) {
2121
<PageHeader
2222
breadcrumbs={[
2323
{ label: t('constants.dashboard'), href: ROUTES.DASHBOARD.HOME },
24-
{ label: t('constants.management') },
24+
2525
{ label: t('constants.nodes') }
2626
]}
2727
title={t('constants.nodes')}

0 commit comments

Comments
 (0)