| def render_flow_svg(task, steps): | |
| y = 40 | |
| nodes = "" | |
| for step in steps: | |
| nodes += f""" | |
| <rect x="20" y="{y}" width="600" height="40" fill="#222" stroke="#00ffcc"/> | |
| <text x="30" y="{y+25}" fill="white">{step}</text> | |
| """ | |
| y += 60 | |
| return f""" | |
| <svg width="700" height="{y+20}"> | |
| <rect width="100%" height="100%" fill="#111"/> | |
| {nodes} | |
| </svg> | |
| """ |