Skip to content

Commit

Permalink
Show model deployments page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-phillips-18 committed Jan 22, 2025
1 parent 0e9989e commit 4a94791
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
8 changes: 2 additions & 6 deletions frontend/src/app/AppRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,9 @@ const AppRoutes: React.FC = () => {
element={<ComingSoonPage title="Model overview" objectType={ProjectObjectType.model} />}
/>
<Route path="/modelServing/*" element={<ModelServingRoutes />} />
<Route path="/modelRegistry" element={<ModelRegistryRoutes />} />
<Route path="/modelRegistry/*" element={<ModelRegistryRoutes />} />
<Route
path="/deployedModels"
element={
<ComingSoonPage title="Deployed models" objectType={ProjectObjectType.modelServer} />
}
/>
<Route path="/deployedModels" element={<ModelServingRoutes />} />

<Route path={globPipelinesAll} element={<GlobalPipelinesRoutes />} />
<Route path={globPipelineRunsAll} element={<GlobalPipelineRunsRoutes />} />
Expand Down
34 changes: 23 additions & 11 deletions frontend/src/utilities/NavData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,29 @@ const useDevelopAndTrainNav = (): NavDataItem[] => [
},
];

const useManageModelsNav = (): NavDataItem[] => [
{
id: 'manageModels',
group: { id: 'manageModels', label: 'Manage models', icon: <OutlinedAngryIcon /> },
children: [
{ id: 'modelOverview', label: 'Model overview', href: '/modelOverview' },
{ id: 'modelRegistry', label: 'Model registry', href: '/modelRegistry' },
{ id: 'modelDeployments', label: 'Model deployments', href: '/deployedModels' },
],
},
];
const useManageModelsNav = (): NavDataItem[] =>
useIsAreaAvailable(SupportedArea.MODEL_REGISTRY).status
? [
{
id: 'manageModels',
group: { id: 'manageModels', label: 'Manage models', icon: <OutlinedAngryIcon /> },
children: [
{ id: 'modelOverview', label: 'Model overview', href: '/modelOverview' },
{ id: 'modelRegistry', label: 'Model registry', href: '/modelRegistry' },
{ id: 'modelDeployments', label: 'Model deployments', href: '/deployedModels' },
],
},
]
: [
{
id: 'manageModels',
group: { id: 'manageModels', label: 'Manage models', icon: <OutlinedAngryIcon /> },
children: [
{ id: 'modelOverview', label: 'Model overview', href: '/modelOverview' },
{ id: 'modelDeployments', label: 'Model deployments', href: '/deployedModels' },
],
},
];

const useAutomateNav = (): NavDataItem[] => [
{
Expand Down

0 comments on commit 4a94791

Please sign in to comment.