Edges bug fix#53
Merged
srijanpatel merged 3 commits intomainfrom Dec 18, 2024
Merged
Conversation
… and useMemo hook for predecessorNodes
Contributor
There was a problem hiding this comment.
👍 Looks good to me! Reviewed everything up to 48c3ba7 in 1 minute and 28 seconds
More details
- Looked at
369lines of code in2files - Skipped
0files when reviewing. - Skipped posting
3drafted comments based on config settings.
1. frontend/src/components/nodes/DynamicNode.tsx:264
- Draft comment:
Consider refactoring the logic for computingpredecessorNodesto avoid redundancy. The logic inuseStateinitialization anduseMemoforfinalPredecessorsis similar and can be combined. - Reason this comment was not posted:
Confidence changes required:50%
The use ofuseMemoforfinalPredecessorsis a good optimization to avoid unnecessary computations. However, the logic for updatingpredecessorNodesis duplicated in bothuseStateinitialization anduseMemo. This can be refactored to avoid redundancy.
2. frontend/src/components/nodes/DynamicNode.tsx:146
- Draft comment:
IncludenodeRefin the dependency array of thisuseEffectto ensure it runs whennodeRefchanges. - Reason this comment was not posted:
Comment was on unchanged code.
3. frontend/src/components/nodes/DynamicNode.tsx:335
- Draft comment:
Includeconnectionin the dependency array of thisuseEffectto ensure it runs whenconnectionchanges. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_IhnHX3Ku9thIgHab
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
srijanpatel
approved these changes
Dec 18, 2024
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
edges not appearing bug is now fixed, view button implemented, and python node works but with some constraints.
Important
Fixes edge visibility bug, adds view button, and improves node handling in
DynamicNode.tsxandBaseNode.tsx.DynamicNode.tsxby improving predecessor node handling.BaseNode.tsxto open a modal for node output.NodeOutputModalinDynamicNode.tsxfor displaying node output.DynamicNode.tsxusinguseMemofor efficiency.DynamicNode.tsxto useuseUpdateNodeInternalsfor node updates.This description was created by
for 48c3ba7. It will automatically update as commits are pushed.