feat(ui): improve workflow runs history

This commit is contained in:
Fu Diwei
2025-01-19 06:15:38 +08:00
parent 5b613bcf84
commit c0dc9b1882
3 changed files with 16 additions and 8 deletions

View File

@@ -6,8 +6,8 @@ export interface WorkflowRunModel extends BaseModel {
trigger: string;
startedAt: ISO8601String;
endedAt: ISO8601String;
logs: WorkflowRunLog[];
error: string;
logs?: WorkflowRunLog[];
error?: string;
expand?: {
workflowId?: WorkflowModel;
};
@@ -16,15 +16,15 @@ export interface WorkflowRunModel extends BaseModel {
export type WorkflowRunLog = {
nodeId: string;
nodeName: string;
outputs: WorkflowRunLogOutput[];
error: string;
outputs?: WorkflowRunLogOutput[];
error?: string;
};
export type WorkflowRunLogOutput = {
time: ISO8601String;
title: string;
content: string;
error: string;
error?: string;
};
export const WORKFLOW_RUN_STATUSES = Object.freeze({