-
Notifications
You must be signed in to change notification settings - Fork 8.2k
feat: Add alias functionality in the UI and in tweaks processing #9801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ogabrielluiz
wants to merge
16
commits into
main
Choose a base branch
from
add-component-alias-fix-tweaks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e1cab5c
feat: Implement utility functions for managing component aliases with…
ogabrielluiz 2de3451
feat: Add migration support for existing flows to handle duplicate co…
ogabrielluiz 08694dc
feat: Enhance alias handling in NodeName and TweakComponent, add util…
ogabrielluiz a7c0e27
feat: Implement alias conversion for tweaks in API code generation fu…
ogabrielluiz bcc40ac
feat: Add alias assignment for new components in useAddComponent hook
ogabrielluiz ded8e08
feat: Enhance alias validation functions to improve safety checks for…
ogabrielluiz 0918d53
feat: Refactor alias utility tests to enhance pattern detection and i…
ogabrielluiz c5feac7
feat: Implement alias update on display name change in NodeName compo…
ogabrielluiz ed582ef
feat: Enhance renumbering logic for auto-generated aliases and update…
ogabrielluiz d8bde89
feat: Refactor alias detection and update logic for improved clarity …
ogabrielluiz f6f88c5
feat: Add dynamic alias assignment for duplicate components in graph …
ogabrielluiz 0ff5cee
fix: Update alias formatting for consistency in graph dump tests
ogabrielluiz 98b63f7
fix: Preserve existing alias for duplicate components in graph dump test
ogabrielluiz 0f00c71
feat: Update documentation for Tweaks class to clarify alias usage an…
ogabrielluiz 87f5261
feat: Enhance process_tweaks function to support alias and display na…
ogabrielluiz d952ca5
feat: Add unit tests for alias-enabled tweak processing functionality
ogabrielluiz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: Add alias assignment for new components in useAddComponent hook
- Loading branch information
commit bcc40ac89992da4a23e15564c2fc1d1d8d624d0c
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix: store mutation via utility is not persisted; reorder logic to ensure setNodes runs
assignAliasToNewComponent mutates the existing nodes array by reference. Because the zustand store isn’t updated unless setNodes is called, your subsequent condition can be skipped (alias already set in-memory), leading to no store update and missing re-render. Compute the “second-of-its-type” condition before calling the utility, then always persist the first node’s alias immutably when needed.
Apply:
📝 Committable suggestion