-
Notifications
You must be signed in to change notification settings - Fork 638
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
Improve package nodes visibility #14178
Improve package nodes visibility #14178
Conversation
- shows a triangle marker in the lower-left corner of the node indicating custom package or python node - when zoomed-out, a purple border and icon indicates nodes from packages
- added node package name to tooltip section
- remove old code
- added null checks when retrieving dictionary colors
@dnenov I think there are some test failures on this PR job. The first 2 tests look flaky but can you run the other 3 and verify. |
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.
Will merge once the job passes.
- serialization changes to the new `PackageName` property - hard-coded color values inside the NodeViewModel
/// Returns the Package name of the node, if it comes from a package | ||
/// </summary> | ||
[JsonProperty(Order = 9)] | ||
public string PackageName |
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.
why is this being serialized? It looks like you never read the serialized data? I imagine this data is duplicated by the NodeLibraryDependencies property.
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.
You are right, I will just ignore it, apologies!
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.
Big thanks for this spot check, @mjkkirschner , hopefully it's fixed with this PR
"X": 76.8, | ||
"Y": 162.4 | ||
"Y": 162.4, | ||
"PackageName": "" |
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.
kind of pointless bloat for every single node...
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.
Yup, totally! Thanks again
Purpose
A visual update to the Node border to package nodes. In zoomed-out state, a purple border allows the user to easily distinguish between Dynamo core nodes and external, package nodes. The bottom-left corner of the Node is now tinted with the same color as the workspace background again allowing the user to quickly see which nodes come from external packages. Finally the package name, as filled-in by the package owner, is shown inside the node tooltip.
Screenshots of UI changes
Border states
Package names
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
come from a package.
Reviewers
@reddyashish
@mmisol
FYIs
@QilongTang