AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(builder): show colors for all statuses (#7625)
Nicholas Tindle07811b21330f
diff --git a/rnd/autogpt_builder/src/components/CustomNode.tsx b/rnd/autogpt_builder/src/components/CustomNode.tsxindex 8280d41e5f..e06c274840 100644--- a/rnd/autogpt_builder/src/components/CustomNode.tsx+++ b/rnd/autogpt_builder/src/components/CustomNode.tsx@@ -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>diff --git a/rnd/autogpt_builder/src/components/customnode.css b/rnd/autogpt_builder/src/components/customnode.cssindex daabf05731..0784974d8b 100644--- a/rnd/autogpt_builder/src/components/customnode.css+++ b/rnd/autogpt_builder/src/components/customnode.css@@ -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;}