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

pull/7614/head^2
Nicholas Tindle 2024-07-29 14:04:48 -05:00 committed by GitHub
parent 01b6c2d4bf
commit 07811b2133
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -137,7 +137,7 @@ const CustomNode: FC<NodeProps<CustomNodeData>> = ({ data, id }) => {
}; };
return ( 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="mb-2">
<div className="text-lg font-bold">{beautifyString(data.blockType?.replace(/Block$/, '') || data.title)}</div> <div className="text-lg font-bold">{beautifyString(data.blockType?.replace(/Block$/, '') || data.title)}</div>
</div> </div>

View File

@ -175,6 +175,14 @@
border-color: #c0392b; /* Red border for failed nodes */ 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 { .custom-switch {
padding-left: 2px; padding-left: 2px;
} }