Skip to content

Keep onboarding graph edges attached while moving steps #239

Description

@kiranfin

Description

When an onboarding step is moved in the graph, its connecting arrows move or reroute incorrectly.

Steps to Reproduce

  1. Open a member’s onboarding graph as a PM.
  2. Drag an existing step to a different position.
  3. Observe the incoming and outgoing arrows during and after the move.
  4. Repeat with a step that has multiple connections.

Expected Behavior

All edges remain attached to the correct handles and update smoothly while the node moves.

Actual Behavior

Edges shift into visually incorrect positions or follow unexpected routes.

Affected Component

Frontend

Environment

No response

Possible Cause

Not yet verified. Diagnose this on the branch or build used in the UX test — the tested graph editor was not found anywhere in the current main (see the companion issue on graph controls). For reference, the only related component in this repo, DiagramCanvas.tsx (a read-only competency diagram, built on React Flow), explicitly sets nodesDraggable={false} because its node positions are recomputed from a layout on every render; if the tested editor was built the same way, that same pattern — recalculating positions from a layout instead of tracking dragged coordinates — would be a plausible cause of edges rerouting incorrectly during a drag. Capture node coordinates, handle positions and edge state before and after dragging on the actual tested build to confirm.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions