feat(ui): new WorkflowRuns using antd
This commit is contained in:
@@ -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;
|
||||
|
||||
14
ui/src/domain/workflowRun.ts
Normal file
14
ui/src/domain/workflowRun.ts
Normal 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[];
|
||||
};
|
||||
Reference in New Issue
Block a user