diff --git a/ui/src/components/phase-node.tsx b/ui/src/components/phase-node.tsx index 1f2c5f1..b278415 100644 --- a/ui/src/components/phase-node.tsx +++ b/ui/src/components/phase-node.tsx @@ -45,6 +45,20 @@ const PhaseNode = ({ data: phase }: NodeProps) => { ))} + {phase.status && Object.keys(phase.status).length > 0 && ( +
+
+ status: +
+ {Object.entries(phase.status).map(([key, value]) => ( +
+ {key}: + {value} +
+ ))} +
+ )} + ); diff --git a/ui/src/components/phase-panel.tsx b/ui/src/components/phase-panel.tsx index 297457f..8aea303 100644 --- a/ui/src/components/phase-panel.tsx +++ b/ui/src/components/phase-panel.tsx @@ -13,7 +13,7 @@ interface PhasePanelProps { } export function PhasePanel({ node, isExpanded, onToggle }: PhasePanelProps) { - const descriptor = node.data.descriptor; + const { descriptor, status } = node.data; const Icon = getSourceIcon(descriptor.source); return ( @@ -30,7 +30,7 @@ export function PhasePanel({ node, isExpanded, onToggle }: PhasePanelProps) {
@@ -44,7 +44,7 @@ export function PhasePanel({ node, isExpanded, onToggle }: PhasePanelProps) {
-
+
{descriptor.metadata.labels && Object.keys(descriptor.metadata.labels).length > 0 && ( <>

Labels

@@ -58,6 +58,28 @@ export function PhasePanel({ node, isExpanded, onToggle }: PhasePanelProps) { )}
+ +
+ {status && Object.keys(status).length > 0 && ( + <> +

Status

+ +
+
+ {Object.entries(status).map(([key, value]) => ( +
+ {key}: + + {value} + +
+ ))} +
+
+
+ + )} +
); diff --git a/ui/src/components/pipeline.tsx b/ui/src/components/pipeline.tsx index 58b7ccf..8aa0e89 100644 --- a/ui/src/components/pipeline.tsx +++ b/ui/src/components/pipeline.tsx @@ -158,7 +158,8 @@ function getElements(pipeline: PipelineType): FlowPipeline { type: 'phase', position: { x: 0, y: 0 }, data: { - descriptor: phase.descriptor + descriptor: phase.descriptor, + status: phase.status }, extent: 'parent' };