feat(editor): Add workflow evaluation edit and list views (no-changelog) (#11719)

This commit is contained in:
oleg
2024-11-27 07:47:41 +01:00
committed by GitHub
parent a535e88f1a
commit 132aa0b9f1
32 changed files with 2490 additions and 12 deletions

View File

@@ -57,6 +57,10 @@ const SettingsExternalSecrets = async () => await import('./views/SettingsExtern
const WorkerView = async () => await import('./views/WorkerView.vue');
const WorkflowHistory = async () => await import('@/views/WorkflowHistory.vue');
const WorkflowOnboardingView = async () => await import('@/views/WorkflowOnboardingView.vue');
const TestDefinitionListView = async () =>
await import('./views/TestDefinition/TestDefinitionListView.vue');
const TestDefinitionEditView = async () =>
await import('./views/TestDefinition/TestDefinitionEditView.vue');
function getTemplatesRedirect(defaultRedirect: VIEWS[keyof VIEWS]): { name: string } | false {
const settingsStore = useSettingsStore();
@@ -249,6 +253,55 @@ export const routes: RouteRecordRaw[] = [
},
],
},
{
path: '/workflow/:name/evaluation',
name: VIEWS.TEST_DEFINITION,
meta: {
keepWorkflowAlive: true,
middleware: ['authenticated'],
},
children: [
{
path: '',
name: VIEWS.TEST_DEFINITION,
components: {
default: TestDefinitionListView,
header: MainHeader,
sidebar: MainSidebar,
},
meta: {
keepWorkflowAlive: true,
middleware: ['authenticated'],
},
},
{
path: 'new',
name: VIEWS.NEW_TEST_DEFINITION,
components: {
default: TestDefinitionEditView,
header: MainHeader,
sidebar: MainSidebar,
},
meta: {
keepWorkflowAlive: true,
middleware: ['authenticated'],
},
},
{
path: ':testId',
name: VIEWS.TEST_DEFINITION_EDIT,
components: {
default: TestDefinitionEditView,
header: MainHeader,
sidebar: MainSidebar,
},
meta: {
keepWorkflowAlive: true,
middleware: ['authenticated'],
},
},
],
},
{
path: '/workflow/:workflowId/history/:versionId?',
name: VIEWS.WORKFLOW_HISTORY,