This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Conversation
…ng and optimize port rendering
…ponents, and portUtils utility function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the Canvas node management and rendering logic by removing the AgentXgen-specific output update functionality and introducing a unified approach for filtering node ports based on parameter dependencies. The changes enhance maintainability and flexibility by centralizing port dependency logic and ensuring only relevant ports are rendered for each node type.
Removal of AgentXgen-specific output update logic
onOutputsUpdateprop and related handling fromCanvasNodes, as well as theupdateNodeOutputsfunction fromuseNodeManagementand its usage throughout the Canvas component hierarchy. This eliminates special-case code for AgentXgen nodes, streamlining node output management. [1] [2] [3] [4] [5] [6] [7] [8]Port dependency filtering for node rendering
portUtils.tswith functions to filter ports based on their dependencies and node parameters, ensuring only ports with satisfied dependencies are rendered.NodePorts,NodePortsCollapsed, andRouterNodePortscomponents to use the new filtering logic, passingparametersas props and rendering only filtered ports. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Propagation of parameter data for port filtering
Node,RouterNode, andSchemaProviderNodecomponents to passparametersto port components, enabling correct dependency filtering. [1] [2] [3] [4] [5]NodePortsPropstype definition to include an optionalparametersfield for dependency checking.