NF-UI-2: Canvas shell + default-flow read-only view #332

Closed
opened 2026-04-24 11:29:52 +00:00 by code-lead · 0 comments
Collaborator

As an operator, I want to open a flow at /app/flows/:id and see its graph rendered as a React Flow canvas (pan/zoom/minimap) so that I can inspect the default graph before any edits are possible.

Acceptance criteria

Canvas

  • /app/flows/:id loads flow JSON via GET /flows/:id.
  • React Flow v11 canvas: pan, zoom, minimap.
  • One generic node component: header (icon + label + category strip) + left-side input handles + right-side output handles.
  • Port handles colored by the type palette (Tokyo-Night derived, per spec).
  • Edges colored by source-port type.

Layout

  • dagre autolayout on load; deterministic (same seed per identical graph).

Read-only

  • Toolbar shows "Read only — NF-UI-3 adds editing" placeholder.
  • No mutation endpoints hit.

Default flow

  • Loads legibly with zero manual layout needed.

Out of scope

  • Editing — NF-UI-3.
  • Inspector widgets — NF-UI-4.

References

As an operator, I want to open a flow at `/app/flows/:id` and see its graph rendered as a React Flow canvas (pan/zoom/minimap) so that I can inspect the default graph before any edits are possible. ## Acceptance criteria ### Canvas - [ ] `/app/flows/:id` loads flow JSON via `GET /flows/:id`. - [ ] React Flow v11 canvas: pan, zoom, minimap. - [ ] One generic node component: header (icon + label + category strip) + left-side input handles + right-side output handles. - [ ] Port handles colored by the type palette (Tokyo-Night derived, per spec). - [ ] Edges colored by source-port type. ### Layout - [ ] dagre autolayout on load; deterministic (same seed per identical graph). ### Read-only - [ ] Toolbar shows "Read only — NF-UI-3 adds editing" placeholder. - [ ] No mutation endpoints hit. ### Default flow - [ ] Loads legibly with zero manual layout needed. ## Out of scope - Editing — NF-UI-3. - Inspector widgets — NF-UI-4. ## References - Spec: [`specs/node-flows-ui.md`](../src/branch/main/specs/node-flows-ui.md) § Stories § NF-UI-2. - Depends on NF-4 (#325) + NF-UI-1 (#331).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/claude-hooks#332
No description provided.