Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/components/Navigation/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,20 @@
},
],
},
{
id: 'ai-recommendations',
title: 'AI Recommendations',
icon: 'ic-openai',
items: [
{
title: 'Overview',
dataTestId: 'ai-recommendations-overview',
id: 'ai-recommendations-overview',

Check failure on line 479 in src/components/Navigation/constants.ts

View workflow job for this annotation

GitHub Actions / ci

Type '"ai-recommendations-overview"' is not assignable to type 'NavigationItemID'.
icon: 'ic-speedometer',
href: COMMON_URLS.AI_RECOMMENDATIONS_OVERVIEW,

Check failure on line 481 in src/components/Navigation/constants.ts

View workflow job for this annotation

GitHub Actions / ci

Property 'AI_RECOMMENDATIONS_OVERVIEW' does not exist on type '{ readonly LOGIN: "/login"; readonly LOGIN_SSO: "/login/sso"; readonly PERMISSION_GROUPS: "/global-config/auth/groups"; readonly APP: "/app"; readonly APP_LIST: "list"; readonly CHARTS_DISCOVER: "/chart-store/discover"; ... 40 more ...; readonly APPLICATION_MANAGEMENT_OVERVIEW: "/application-management/overview"; }'.
},
],
},
{
id: 'global-configuration',
title: 'Global Configuration',
Expand Down
1 change: 1 addition & 0 deletions src/components/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type NavigationRootItemID =
| 'automation-and-enablement'
| 'backup-and-restore'
| 'global-configuration'
| 'ai-recommendations'

type CommonNavigationItemType = {
title: string
Expand Down
8 changes: 7 additions & 1 deletion src/components/common/navigation/NavigationRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,13 @@
</Route>
)}
{EnterpriseRouter && (
<Route path={[CommonURLS.APPLICATION_MANAGEMENT, CommonURLS.COST_VISIBILITY]}>
<Route
path={[
CommonURLS.APPLICATION_MANAGEMENT,
CommonURLS.COST_VISIBILITY,
CommonURLS.AI_RECOMMENDATIONS,

Check failure on line 635 in src/components/common/navigation/NavigationRoutes.tsx

View workflow job for this annotation

GitHub Actions / ci

Property 'AI_RECOMMENDATIONS' does not exist on type '{ readonly LOGIN: "/login"; readonly LOGIN_SSO: "/login/sso"; readonly PERMISSION_GROUPS: "/global-config/auth/groups"; readonly APP: "/app"; readonly APP_LIST: "list"; readonly CHARTS_DISCOVER: "/chart-store/discover"; ... 40 more ...; readonly APPLICATION_MANAGEMENT_OVERVIEW: "/application-management/overview"; }'.
]}
>
<EnterpriseRouter />
</Route>
)}
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@Components/*": ["./src/components/*"],
"@Config/*": ["./src/config/*"],
"@Pages/*": ["./src/Pages/*"],
"@PagesDevtron2.0/*": ["./src/Pages-Devtron-2.0/*"],
"@Services/*": ["./src/services/*"]
},
"target": "ES2020",
Expand Down
Loading