Skip to content

Commit d0c2d1d

Browse files
committed
refactor: update navigation constants and types for data protection management
1 parent dd602c3 commit d0c2d1d

File tree

3 files changed

+15
-34
lines changed

3 files changed

+15
-34
lines changed

src/components/Navigation/constants.ts

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -414,58 +414,38 @@ export const NAVIGATION_LIST: NavigationGroupType[] = [
414414
],
415415
},
416416
{
417-
title: 'Backup & Restore',
418-
id: 'backup-and-restore',
417+
title: 'Data Protection Management',
418+
id: 'data-protection-management',
419419
icon: 'ic-database-backup',
420-
disabled: true,
421420
items: [
422421
{
423422
title: 'Overview',
424-
dataTestId: 'backup-and-restore-overview',
425-
id: 'backup-and-restore-overview',
423+
dataTestId: 'data-protection-overview',
424+
id: 'data-protection-overview',
426425
icon: 'ic-speedometer',
427426
disabled: true,
428-
href: COMMON_URLS.BACKUP_AND_RESTORE_OVERVIEW,
427+
href: COMMON_URLS.DATA_PROTECTION_OVERVIEW,
429428
},
430429
{
431430
title: 'Backup & Schedule',
432-
dataTestId: 'backup-and-restore-backup-and-schedule',
433-
id: 'backup-and-restore-backup-and-schedule',
431+
dataTestId: 'data-protection-backup-and-schedule',
432+
id: 'data-protection-backup-and-schedule',
434433
icon: 'ic-floppy-disk',
435-
href: '/dummy-url',
436-
disabled: true,
434+
href: COMMON_URLS.DATA_PROTECTION_BACKUP_AND_SCHEDULE,
437435
},
438436
{
439437
title: 'Restores',
440-
dataTestId: 'backup-and-restore-restores',
441-
id: 'backup-and-restore-restores',
438+
dataTestId: 'data-protection-restores',
439+
id: 'data-protection-restores',
442440
icon: 'ic-clock-counterclockwise',
443-
href: '/dummy-url',
444-
disabled: true,
445-
},
446-
{
447-
title: 'Backup Repositories',
448-
dataTestId: 'backup-repositories',
449-
id: 'backup-and-restore-backup-repositories',
450-
icon: 'ic-folder',
451-
href: '/dummy-url',
452-
disabled: true,
441+
href: COMMON_URLS.DATA_PROTECTION_RESTORES,
453442
},
454443
{
455444
title: 'Backup Locations',
456445
dataTestId: 'backup-locations',
457-
id: 'backup-and-restore-backup-locations',
446+
id: 'data-protection-backup-locations',
458447
icon: 'ic-storage',
459-
href: '/dummy-url',
460-
disabled: true,
461-
},
462-
{
463-
title: 'History & Logs',
464-
dataTestId: 'history-and-logs',
465-
id: 'backup-and-restore-history-and-logs',
466-
icon: 'ic-clipboard',
467-
href: '/dummy-url',
468-
disabled: true,
448+
href: COMMON_URLS.DATA_PROTECTION_BACKUP_LOCATIONS,
469449
},
470450
],
471451
},

src/components/Navigation/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type NavigationRootItemID =
1919
| 'cost-visibility'
2020
| 'security-center'
2121
| 'automation-and-enablement'
22-
| 'backup-and-restore'
22+
| 'data-protection-management'
2323
| 'global-configuration'
2424
| 'ai-recommendations'
2525

src/components/common/navigation/NavigationRoutes.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ const NavigationRoutes = ({ reloadVersionConfig }: Readonly<NavigationRoutesType
655655
CommonURLS.APPLICATION_MANAGEMENT,
656656
CommonURLS.COST_VISIBILITY,
657657
CommonURLS.AI_RECOMMENDATIONS,
658+
CommonURLS.DATA_PROTECTION,
658659
]}
659660
>
660661
<EnterpriseRouter

0 commit comments

Comments
 (0)