Commit ac8eed6
committed
revert: roll back custom n8n build canvas (phases 1-3)
The custom React Flow canvas didn't hold up in real testing — generic
monogram tiles instead of real n8n node icons broke the immersion, and
the canvas → iframe handoff felt like a context switch rather than a
seamless reveal. Better to use the real n8n UI throughout, even if the
node-by-node build animation is harder to engineer.
Reverts:
- 6a6d27a feat(n8n-canvas): phase 3 — entry, edge-draw, and handoff animations
- 387bbf9 feat(n8n-canvas): phase 2 — render the canonical workflow on a custom canvas
- 87eac96 feat(n8n-canvas): phase 1 — emit workflowDraft and nodeExploring events
Removes: N8nBuildCanvas component + CSS, n8nBuildState in chat-context,
workflowDraft/nodeExploring event types, keepBuildCanvasMounted latch,
workflow.json detector in e2b_write_file, get_node interception in
n8nMcpToolsMiddleware, @xyflow/react dependency.
Preserves all unrelated fixes from prior commits (path normalization,
validate-loop break, summary filter, UUID requirement, token tracking,
cold-start gate).
Next step is a different approach: have the agent use n8n's REST API
to mutate an existing workflow live, so users see real n8n nodes
appearing one at a time in the actual n8n UI via its WebSocket-driven
canvas updates.1 parent 6a6d27a commit ac8eed6
9 files changed
Lines changed: 1 addition & 738 deletions
File tree
- src
- app/chat/[id]
- components
- contexts
- hooks
- lib
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | 306 | | |
328 | 307 | | |
329 | 308 | | |
| |||
869 | 848 | | |
870 | 849 | | |
871 | 850 | | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | 851 | | |
889 | 852 | | |
890 | 853 | | |
| |||
This file was deleted.
0 commit comments