feat(dashboard): Setup workflows in V2 routes (#6939)

This commit is contained in:
Kasper Fabricius Kristensen
2024-04-04 21:27:48 +02:00
committed by GitHub
parent 20e8df914e
commit 849010d875
33 changed files with 205 additions and 150 deletions
@@ -820,23 +820,6 @@ export const v1Routes: RouteObject[] = [
},
],
},
{
path: "executions",
element: <Outlet />,
handle: {
crumb: () => "Executions",
},
children: [
{
path: "",
lazy: () => import("../../routes/executions/execution-list"),
},
{
path: ":id",
lazy: () => import("../../routes/executions/execution-detail"),
},
],
},
...settingsExtensions,
],
},
@@ -300,6 +300,38 @@ export const v2Routes: RouteObject[] = [
},
],
},
{
path: "workflows",
element: <Outlet />,
handle: {
crumb: () => "Workflows",
},
children: [
{
path: "",
lazy: () =>
import(
"../../v2-routes/workflow-executions/workflow-execution-list"
),
},
{
path: ":id",
lazy: () =>
import(
"../../v2-routes/workflow-executions/workflow-execution-detail"
),
handle: {
crumb: (data: { workflow: any }) => {
if (!data) {
return ""
}
return data.workflow.name
},
},
},
],
},
],
},
],