Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 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 @@ -56,6 +56,7 @@ import {
LazyCreateMonitorComponent,
LazyViewMonitorComponent,
LazyEditMonitorComponent,
LazyCompareMonitorComponent,
} from "../pages";
import { LoadingFallback } from "../components/LoadingFallback";
import { relativeRouteMap } from "@agent-management-platform/types";
Expand Down Expand Up @@ -548,6 +549,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 @@ -85,6 +85,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 @@ -304,6 +304,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 @@ -323,6 +323,11 @@ export const rootRouteMap: AppRoute = {
path: 'edit/:monitorId',
index: true,
children: {},
},
compare: {
path: 'compare/:monitorId',
index: true,
children: {},
}
},
}
Expand Down
Loading