Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions console/workspaces/core-ui/src/Route/Route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import {
LazyCreateMonitorComponent,
LazyViewMonitorComponent,
LazyEditMonitorComponent,
LazyCompareMonitorComponent,
} from "../pages";
import { LoadingFallback } from "../components/LoadingFallback";
import { relativeRouteMap } from "@agent-management-platform/types";
Expand Down Expand Up @@ -555,6 +556,10 @@ export function RootRouter() {
path={monitorBase + "/" + monitorRoutes.children.edit.path}
element={<LazyEditMonitorComponent />}
/>
<Route
path={monitorBase + "/" + monitorRoutes.children.compare.path}
element={<LazyCompareMonitorComponent />}
/>
<Route
path={monitorBase + "/" + monitorRoutes.children.view.path + "/*"}
element={<LazyViewMonitorComponent />}
Expand Down
2 changes: 2 additions & 0 deletions console/workspaces/core-ui/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export const LazyEditMonitorComponent =
evalMetadata.pages.organization.editMonitor.component as FC;
export const LazyViewMonitorComponent =
evalMetadata.pages.organization.viewMonitor.component as FC;
export const LazyCompareMonitorComponent =
evalMetadata.pages.organization.compareMonitor.component as FC;

// LLM Providers
export const LazyLLMProvidersOrg = llmProvidersMetadata.levels!.organization as FC;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ export const generatedRouteMap = {
"path": "/org/:orgId/project/:projectId/agents/:agentId/environment/:envId/evaluation/monitor/edit/:monitorId",
"wildPath": "/org/:orgId/project/:projectId/agents/:agentId/environment/:envId/evaluation/monitor/edit/:monitorId/*",
"children": {}
},
"compare": {
"path": "/org/:orgId/project/:projectId/agents/:agentId/environment/:envId/evaluation/monitor/compare/:monitorId",
"wildPath": "/org/:orgId/project/:projectId/agents/:agentId/environment/:envId/evaluation/monitor/compare/:monitorId/*",
"children": {}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions console/workspaces/libs/types/src/routes/routes.map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ export const rootRouteMap: AppRoute = {
path: 'edit/:monitorId',
index: true,
children: {},
},
compare: {
path: 'compare/:monitorId',
index: true,
children: {},
}
},
}
Expand Down
Loading