Add block description (#1502)
This commit is contained in:
@@ -26,6 +26,7 @@ export type WorkflowRunBlock = {
|
|||||||
parent_workflow_run_block_id: string | null;
|
parent_workflow_run_block_id: string | null;
|
||||||
block_type: WorkflowBlockType;
|
block_type: WorkflowBlockType;
|
||||||
label: string | null;
|
label: string | null;
|
||||||
|
description: string | null;
|
||||||
title: string | null;
|
title: string | null;
|
||||||
status: Status | null;
|
status: Status | null;
|
||||||
failure_reason: string | null;
|
failure_reason: string | null;
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ function WorkflowRunTimelineBlockItem({
|
|||||||
}}
|
}}
|
||||||
ref={refCallback}
|
ref={refCallback}
|
||||||
>
|
>
|
||||||
|
<div className="space-y-2">
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<div className="flex gap-3">
|
<div className="flex gap-3">
|
||||||
<WorkflowBlockIcon
|
<WorkflowBlockIcon
|
||||||
@@ -102,6 +103,11 @@ function WorkflowRunTimelineBlockItem({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{block.description ? (
|
||||||
|
<div className="text-xs text-slate-400">{block.description}</div>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
{actions.map((action, index) => {
|
{actions.map((action, index) => {
|
||||||
return (
|
return (
|
||||||
<ActionCard
|
<ActionCard
|
||||||
|
|||||||
Reference in New Issue
Block a user