← Back to Kontasks
Flow Graph UI Implemented
Added Mermaid.js graph visualization to flows page with table/graph toggle
Output
✅ Flow Graph Visualization Implemented
🎉 What's New
- ✓ Table/Graph Toggle on flows list page - click 📋/🔗 to switch views
- ✓ Overview Graph shows all flows with kontask counts
- ✓ Flow Detail Graph shows kontask timeline for each flow
- ✓ Clickable Nodes - click flow/kontask to navigate
- ✓ Saved Preference - view choice persisted to localStorage
📁 Files Changed
+349 -2 lines across 3 files NEW konui/src/views/gv-flow-graph.ts Mermaid diagram generators for flows MOD konui/src/views/gv-flows.ts Added graph view toggle + container MOD konui/src/router.ts Fetches kontasks for flow detail
🛠️ Technical Details
| Renderer | Mermaid.js v11 (already integrated) |
| Graph Type | TD (top-down) flowchart |
| Theme | Dark theme with status colors |
| Data Source | gvEdge store (kontask→flow links) |
Commit: 52c23c25 - Turn: Add flow graph visualization with Mermaid.js
Visit /gv/flows and click the 🔗 Graph button to see it in action!
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
flowsuigraphvisualization
Created
9 Jan 2026, 11:54 pm
Updated
9 Jan 2026, 11:54 pm
Created By
claude
📋 Claude's Context
Session
ses_a0f5cb6c...
🔗 Git Commit
52c23c25
Raw Data
{
"id": "f8e0c300-6283-4723-b808-40c57ccfb585",
"type": "general",
"status": "completed",
"title": "Flow Graph UI Implemented",
"description": "Added Mermaid.js graph visualization to flows page with table/graph toggle",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\">\n<h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">✅ Flow Graph Visualization Implemented</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#98c379;margin:0 0 12px 0;font-family:sans-serif;\">🎉 What's New</h3>\n<ul style=\"margin:0;padding-left:20px;line-height:1.8;\">\n<li><span style=\"color:#98c379;\">✓</span> <strong style=\"color:#61afef;\">Table/Graph Toggle</strong> on flows list page - click 📋/🔗 to switch views</li>\n<li><span style=\"color:#98c379;\">✓</span> <strong style=\"color:#61afef;\">Overview Graph</strong> shows all flows with kontask counts</li>\n<li><span style=\"color:#98c379;\">✓</span> <strong style=\"color:#61afef;\">Flow Detail Graph</strong> shows kontask timeline for each flow</li>\n<li><span style=\"color:#98c379;\">✓</span> <strong style=\"color:#61afef;\">Clickable Nodes</strong> - click flow/kontask to navigate</li>\n<li><span style=\"color:#98c379;\">✓</span> <strong style=\"color:#61afef;\">Saved Preference</strong> - view choice persisted to localStorage</li>\n</ul>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#56b6c2;margin:0 0 12px 0;font-family:sans-serif;\">📁 Files Changed</h3>\n<pre style=\"background:#1e1e1e;padding:12px;border-radius:4px;overflow-x:auto;line-height:1.6;\">\n<span style=\"color:#98c379;\">+349</span> <span style=\"color:#ef4444;\">-2</span> lines across 3 files\n\n<span style=\"color:#98c379;font-weight:bold;\">NEW</span> <span style=\"color:#e5c07b;\">konui/src/views/gv-flow-graph.ts</span>\n Mermaid diagram generators for flows\n\n<span style=\"color:#61afef;font-weight:bold;\">MOD</span> <span style=\"color:#e5c07b;\">konui/src/views/gv-flows.ts</span>\n Added graph view toggle + container\n\n<span style=\"color:#61afef;font-weight:bold;\">MOD</span> <span style=\"color:#e5c07b;\">konui/src/router.ts</span>\n Fetches kontasks for flow detail\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#c678dd;margin:0 0 12px 0;font-family:sans-serif;\">🛠️ Technical Details</h3>\n<table style=\"width:100%;border-collapse:collapse;\">\n<tr style=\"border-bottom:1px solid #3d3d3d;\"><td style=\"padding:8px;color:#7f848e;\">Renderer</td><td style=\"color:#e0e0e0;\">Mermaid.js v11 (already integrated)</td></tr>\n<tr style=\"border-bottom:1px solid #3d3d3d;\"><td style=\"padding:8px;color:#7f848e;\">Graph Type</td><td style=\"color:#e0e0e0;\">TD (top-down) flowchart</td></tr>\n<tr style=\"border-bottom:1px solid #3d3d3d;\"><td style=\"padding:8px;color:#7f848e;\">Theme</td><td style=\"color:#e0e0e0;\">Dark theme with status colors</td></tr>\n<tr><td style=\"padding:8px;color:#7f848e;\">Data Source</td><td style=\"color:#e0e0e0;\">gvEdge store (kontask→flow links)</td></tr>\n</table>\n</div>\n\n<div style=\"background:#1a2e1a;border:1px solid #22c55e;padding:12px 16px;border-radius:6px;margin-bottom:16px;\">\n<p style=\"margin:0;color:#98c379;\"><strong>Commit:</strong> <code style=\"background:#2d2d2d;padding:2px 6px;border-radius:3px;\">52c23c25</code> - Turn: Add flow graph visualization with Mermaid.js</p>\n</div>\n\n<p style=\"color:#7f848e;font-size:0.85em;margin-top:16px;\">Visit <a href=\"/gv/flows\" style=\"color:#60a5fa;\">/gv/flows</a> and click the 🔗 Graph button to see it in action!</p>\n</div>",
"requestedAt": "2026-01-09T13:50:00.000Z",
"requestId": "5c369ed3-bc25-4120-a65a-583f2e59d5aa",
"commitSha": "52c23c25",
"choices": [
{
"label": "View flows page",
"value": "Open the flows page to see the new graph visualization",
"primary": true
},
{
"label": "Add more features",
"value": "Add additional graph features like zoom, drag, or edge labels"
},
{
"label": "Test with data",
"value": "Create some test flows and kontasks to see how the graph looks with more data"
}
]
},
"createdBy": "claude",
"createdAt": "2026-01-09T13:54:05.953Z",
"updatedAt": "2026-01-09T13:54:06.223Z",
"requestId": "5c369ed3-bc25-4120-a65a-583f2e59d5aa",
"scope": "vibetools",
"tags": [
"flows",
"ui",
"graph",
"visualization"
],
"sessionId": "ses_a0f5cb6c-937",
"flowId": "flow_01KEHFNV42KC3ZT34N4MJJFWXB",
"flowLinks": [
{
"flowId": "flow_01KEHFNV42KC3ZT34N4MJJFWXB",
"edgeType": "evidence",
"createdAt": "2026-01-09T13:54:05.953Z"
}
],
"targetUser": "claude"
}