fix(builder): show colors for all statuses (#7625)

This commit is contained in:
Nicholas Tindle
2024-07-29 14:04:48 -05:00
committed by GitHub
parent 01b6c2d4bf
commit 07811b2133
2 changed files with 9 additions and 1 deletions

View File

@@ -137,7 +137,7 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
};
return (
<div className={`custom-node dark-theme ${data.status === 'RUNNING' ? 'running' : data.status === 'COMPLETED' ? 'completed' : data.status === 'FAILED' ? 'failed' : ''}`}>
<div className={`custom-node dark-theme ${data.status?.toLowerCase() ?? ''}`}>
<div className="mb-2">
<div className="text-lg font-bold">{beautifyString(data.blockType?.replace(/Block$/, '') || data.title)}</div>
</div>

View File

@@ -175,6 +175,14 @@
border-color: #c0392b; /* Red border for failed nodes */
}
.incomplete {
border-color: #9f14ab; /* Pink border for incomplete nodes */
}
.queued {
border-color: #25e6e6; /* Cyanic border for failed nodes */
}
.custom-switch {
padding-left: 2px;
}