Use the workflow run api updates to show workflow titles (#1732)
This commit is contained in:
@@ -225,6 +225,7 @@ export type WorkflowRunApiResponse = {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
modified_at: string;
|
modified_at: string;
|
||||||
failure_reason: string | null;
|
failure_reason: string | null;
|
||||||
|
workflow_title: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type WorkflowRunStatusApiResponse = {
|
export type WorkflowRunStatusApiResponse = {
|
||||||
@@ -244,6 +245,7 @@ export type WorkflowRunStatusApiResponse = {
|
|||||||
total_steps: number | null;
|
total_steps: number | null;
|
||||||
total_cost: number | null;
|
total_cost: number | null;
|
||||||
observer_task: ObserverTask | null;
|
observer_task: ObserverTask | null;
|
||||||
|
workflow_title: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TaskGenerationApiResponse = {
|
export type TaskGenerationApiResponse = {
|
||||||
|
|||||||
@@ -22,8 +22,7 @@ import { useRunsQuery } from "@/hooks/useRunsQuery";
|
|||||||
import { basicLocalTimeFormat, basicTimeFormat } from "@/util/timeFormat";
|
import { basicLocalTimeFormat, basicTimeFormat } from "@/util/timeFormat";
|
||||||
import { cn } from "@/util/utils";
|
import { cn } from "@/util/utils";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { useSearchParams, useNavigate } from "react-router-dom";
|
import { useNavigate, useSearchParams } from "react-router-dom";
|
||||||
import { WorkflowTitle } from "../workflows/WorkflowTitle";
|
|
||||||
|
|
||||||
function isTask(run: Task | WorkflowRunApiResponse): run is Task {
|
function isTask(run: Task | WorkflowRunApiResponse): run is Task {
|
||||||
return "task_id" in run;
|
return "task_id" in run;
|
||||||
@@ -120,11 +119,7 @@ function RunHistory() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TableCell>{run.workflow_run_id}</TableCell>
|
<TableCell>{run.workflow_run_id}</TableCell>
|
||||||
<TableCell>
|
<TableCell>{run.workflow_title ?? ""}</TableCell>
|
||||||
<WorkflowTitle
|
|
||||||
workflowPermanentId={run.workflow_permanent_id}
|
|
||||||
/>
|
|
||||||
</TableCell>
|
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<StatusBadge status={run.status} />
|
<StatusBadge status={run.status} />
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user