Skip to content

fix: include edgeId in SELECT_EDGE event payload#111

Merged
willeastcott merged 1 commit intomainfrom
fix/select-edge-edgeid
Mar 7, 2026
Merged

fix: include edgeId in SELECT_EDGE event payload#111
willeastcott merged 1 commit intomainfrom
fix/select-edge-edgeid

Conversation

@willeastcott
Copy link
Copy Markdown
Contributor

@willeastcott willeastcott commented Mar 7, 2026

Summary

  • Includes edgeId in the SELECT_EDGE event payload dispatched from createEdge
  • Previously, clicking an edge fired { edge, prevItem } without the edgeId, so consumers using passiveUIEvents could not identify which specific edge was selected
  • This fixes keyboard-driven edge deletion in the PlayCanvas Editor's AnimStateGraph view

Test plan

  • Click an edge in a graph using passiveUIEvents: true
  • Verify the SELECT_EDGE event payload includes edgeId

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the graph’s UI event payload so external consumers (especially when passiveUIEvents: true) can identify the specific selected edge by id.

Changes:

  • Add edgeId to the GRAPH_ACTIONS.SELECT_EDGE CustomEvent payload dispatched from createEdge.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/index.js
Comment thread src/index.js
@willeastcott willeastcott force-pushed the fix/select-edge-edgeid branch 3 times, most recently from 18cfc81 to f08920f Compare March 7, 2026 08:36
The SELECT_EDGE event was missing the edgeId, which meant consumers
using passiveUIEvents could not identify which specific edge was
selected (e.g. for keyboard-driven delete).

Made-with: Cursor
@willeastcott willeastcott force-pushed the fix/select-edge-edgeid branch from f08920f to 435143d Compare March 7, 2026 08:38
@willeastcott willeastcott merged commit f5493f7 into main Mar 7, 2026
2 checks passed
@willeastcott willeastcott deleted the fix/select-edge-edgeid branch March 7, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants