feat(ui): new WorkflowRuns using antd

This commit is contained in:
Fu Diwei
2024-12-24 22:00:17 +08:00
parent 4e5373de73
commit 401fa3dcdd
21 changed files with 340 additions and 458 deletions

View File

@@ -4,6 +4,9 @@ import { nanoid } from "nanoid";
import i18n from "@/i18n";
import { deployTargets } from "./domain";
/**
* @deprecated
*/
export type WorkflowRunLog = {
id: string;
workflow: string;
@@ -14,6 +17,9 @@ export type WorkflowRunLog = {
updated: string;
};
/**
* @deprecated
*/
export type WorkflowRunLogItem = {
nodeName: string;
error: string;

View File

@@ -0,0 +1,14 @@
import { type WorkflowOutput } from "./workflow";
export interface WorkflowRunModel extends BaseModel {
workflow: string;
log: WorkflowRunLog[];
error: string;
succeed: boolean;
}
export type WorkflowRunLog = {
nodeName: string;
error: string;
outputs: WorkflowOutput[];
};