Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ function itemToX(item: components["schemas"]["WorkflowJobMetric"]) {
return item.tool_id;
} else if (groupBy.value === "step_id") {
// Handle both int (top-level) and string (subworkflow) step indices
const stepDisplay = typeof item.step_index === "number" ? item.step_index + 1 : item.step_index;
// API returns 0-based indices, display as 1-based
const stepDisplay =
typeof item.step_index === "number"
? item.step_index + 1
: item.step_index
.split(".")
.map((part) => String(parseInt(part) + 1))
.join(".");
return `${stepDisplay}: ${item.step_label || item.tool_id}`;
} else {
throw Error("Cannot happen");
Expand Down
Loading