feat(web): operator creates new flow from canvas (NF-UI-10) (#370) #371
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!371
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/370-nfui10-create-from-canvas"
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
/app/flows/newnow mountsFlowCanvasinmode="create"instead of the NF-UI-1 stub. The toolbar exposes a trigger picker (overTRIGGER_KINDS), an id input with^[a-z0-9-]+$format validation + inline 409 conflict surface, an optional description textarea, and a Discard button that confirms when dirty.flowsApi.createFlow(POST/flows). On 201 the route redirects to/app/flows/:newIdand subsequent saves drop back to the existing PATCH path.FlowCanvasEditingtests still pass alongside the new 12.Test plan
bun x turbo run typecheck— greenbun x vitest run src/features/flows/FlowCanvas.create.test.tsx— 12/12 passbun x vitest run src/features/flows/FlowCanvas.test.tsx src/features/flows/FlowCanvasEditing.test.tsx— 38/38 pass (no edit-mode regressions)bun run build— greenbun x biome check— clean on changed files/app/flows/new, pick a trigger, type an id, drop a node, save, land on/app/flows/:newId/app/flowsCloses #370
🤖 Generated with Claude Code
12812cba68cda672238b