Skip to content

Commit acfff01

Browse files
cristipufuclaude
andcommitted
fix: highlight root node green on successful run completion
When a run completes successfully and the root node hasn't been highlighted by state events, mark it as completed (green) as a fallback. Also bumps version to 0.0.45. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d3de2ce commit acfff01

5 files changed

Lines changed: 45 additions & 34 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-dev"
3-
version = "0.0.44"
3+
version = "0.0.45"
44
description = "UiPath Developer Console"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/dev/server/frontend/src/components/graph/GraphPanel.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,11 +713,22 @@ export default function GraphPanel({ entrypoint, runId, breakpointNode, breakpoi
713713
failedRootId = nds.find((n) => !n.parentNode && n.type !== "startNode" && n.type !== "endNode" && n.type !== "groupNode")?.id;
714714
}
715715

716+
// When run completed and root node is not already highlighted, mark it as completed
717+
let completedRootId: string | undefined;
718+
if (runStatus === "completed") {
719+
const rootId = nds.find((n) => !n.parentNode && n.type !== "startNode" && n.type !== "endNode" && n.type !== "groupNode")?.id;
720+
if (rootId && !completedIds.has(rootId)) {
721+
completedRootId = rootId;
722+
}
723+
}
724+
716725
return nds.map((n) => {
717726
let status: string | undefined;
718727

719728
if (n.id === failedRootId) {
720729
status = "failed";
730+
} else if (n.id === completedRootId) {
731+
status = "completed";
721732
} else if (completedIds.has(n.id)) {
722733
status = "completed";
723734
} else if (n.type === "startNode") {

0 commit comments

Comments
 (0)