DYN-8947 - Add transient state to connectors#16247
DYN-8947 - Add transient state to connectors#16247johnpierson merged 12 commits intoDynamoDS:masterfrom
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8947
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new transient state for connectors to support preview functionality during node auto-complete and clustering operations.
- Updated NodeAutoCompleteBarViewModel to replace "IsConnecting" with the new "IsTransient" state.
- Extended ConnectorViewModel with an IsTransient property and updated the PreviewState logic.
- Added corresponding UI converter properties and updated ConnectorModel to support the transient state.
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs | Replaced connection state logic with transient state handling in node auto-complete and clustering. |
| src/DynamoCoreWpf/ViewModels/Core/ConnectorViewModel.cs | Added IsTransient property and updated PreviewState logic to include a Transient state. |
| src/DynamoCoreWpf/UI/Converters.cs | Introduced TransientBrush and Transient color mappings to support the new state. |
| src/DynamoCore/Graph/Connectors/ConnectorModel.cs | Added IsTransient property with change notification to track the transient state. |
Files not reviewed (2)
- src/DynamoCoreWpf/UI/Themes/Modern/Connectors.xaml: Language not supported
- src/DynamoCoreWpf/UI/Themes/Modern/DynamoConverters.xaml: Language not supported
Comments suppressed due to low confidence (1)
src/DynamoCoreWpf/ViewModels/Core/ConnectorViewModel.cs:533
- [nitpick] Consider adding parentheses to explicitly group the AND condition: if (model.Start.Owner.IsSelected || model.End.Owner.IsSelected || (AnyPinSelected && !IsTransient)). This enhances clarity on how the condition is evaluated.
if (model.Start.Owner.IsSelected || model.End.Owner.IsSelected || AnyPinSelected && !IsTransient)
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new transient state to connectors to support preview functionality during node auto-complete and clustering operations. Key changes include:
- Replacing the use of IsConnecting with a new IsTransient state in NodeAutoCompleteBarViewModel.
- Extending ConnectorViewModel and related converters to handle a Transient preview state.
- Updating ConnectorModel and public API documentation to support the transient functionality.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs | Updated state logic to use IsTransient and ensure transient connectors are reset appropriately. |
| src/DynamoCoreWpf/ViewModels/Core/ConnectorViewModel.cs | Added new IsTransient property and updated PreviewState enum and getter to include Transient. |
| src/DynamoCoreWpf/UI/Themes/Modern/DynamoConverters.xaml | Added Transient color definitions for the new state. |
| src/DynamoCoreWpf/UI/Converters.cs | Introduced TransientBrush and updated conversion logic to support Transient state. |
| src/DynamoCoreWpf/PublicAPI.Unshipped.txt | Documented the new Transient properties in the public API. |
| src/DynamoCore/Graph/Connectors/ConnectorModel.cs | Added IsTransient property with change notifications. |
| src/DynamoCoreWpf/UI/Themes/Modern/Connectors.xaml | Minor resource dictionary update. |
src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs
Outdated
Show resolved
Hide resolved
src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs
Outdated
Show resolved
Hide resolved
src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
|
Removed the dashed state from the transient connectors as I don't think it is needed. Purple connectors seem like enough. |
|
Cool! LGTM! |

Purpose
This PR introduces a new transient state for connectors to support preview functionality during node auto-complete and clustering operations.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
Reviewers
@DynamoDS/synapse
FYIs
@Amoursol @achintyabhat