feat(web): flow canvas read-only view (NF-UI-2) #347
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!347
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/332-nfui2-canvas-readonly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/flows/:flowIdstub with a React Flow canvas that renders the flow's DAG with deterministicdagreleft-to-right autolayout, pan/zoom/minimap.specs/node-flows-ui.md—stringblue,numbergreen,booleanred,string[]purple,forgeamber,triggercyan,anygray). Edges colored by source-port type.nodesDraggable=false,nodesConnectable=false, attribution hidden, toolbar carries aRead only — NF-UI-3 adds editingbadge.getFlow(id)onflowsApijoins the summary fromfixtures/flows.jsonwith a body from newfixtures/flow-graphs.json(5 seeded graphs, one perflows.jsonentry). Swap toGET /flows/:idwhen NF-7 lands.@xyflow/reactto a trivial stub and assert on the props (nodes/edges arrays, layout positions, edge stroke colors) — sidesteps happy-dom's SVG measurement gaps.Test plan
bun x turbo run typecheckclean across all 4 workspacesbun x biome checkclean on touched filesvitest run FlowCanvas.test.tsx— 8/8 pass (loading, toolbar, error+retry, nodes/edges forwarding, dagre LR ranking, edge colors)vitest run flows.test.tsx— 8/8 pass (NF-UI-1 regressions)/app/flows/default.issue-assignedand confirm the 5-node graph lays out left-to-right, minimap + controls visible, read-only badge in toolbar.Out of scope
argsediting — NF-UI-4 (#334).Closes #332
Generated with Claude Code