Skip to content

✨ Enable link drop anywhere on node area for flexible connections - #410

Merged
MFA-X-AI merged 1 commit into
XpressAI:masterfrom
rabea-al:allow-link-drop-anywhere-on-node
Jun 19, 2025
Merged

MFA-X-AI merged 1 commit into
XpressAI:masterfrom
rabea-al:allow-link-drop-anywhere-on-node

Conversation

@rabea-al

Copy link
Copy Markdown
Contributor

Description

This PR enhances the user experience by allowing link creation when dropping the connection anywhere within the node’s boundaries, not just directly on a specific port.

Key improvements:

  • Support linking to the in-0 port when the cursor is dropped inside the node.
  • Enable visual highlight for the in-0 port when hovering over the entire node, even without hovering directly over the port.
  • Prevent duplicate highlights when hovering over another port within the same node.

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

  1. Drag a link from a source port.
  2. Drop it inside a node (not directly over the port).
  3. Ensure it connects to in-0 if valid.
  4. Observe visual highlight behavior:
    in-0 should be highlighted when hovering over the node,
    but the highlight should disappear if hovering over a different port within the same node.

Tested on? Specify Version.

  • Windows
  • Linux Fedora
  • Mac
  • Others (State here -> xxx )

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch rabea-al/xircuits/allow-link-drop-anywhere-on-node

@MFA-X-AI
MFA-X-AI merged commit dee8ccd into XpressAI:master Jun 19, 2025
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