DYN-8996 - Alert Users with Toast Notification for Double Click on Port#16289
DYN-8996 - Alert Users with Toast Notification for Double Click on Port#16289johnpierson merged 13 commits intoDynamoDS:masterfrom
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8996
- alert user that the node autocomplete feature is now accessible under sparkle
8386640 to
82a3408
Compare
There was a problem hiding this comment.
Pull Request Overview
Adds a toast notification when a user double-clicks a port to inform them to use the sparkle icon for Node Autocomplete.
- Detects double-click in
PortViewModel.Connect, shows a real-time info toast, and automatically closes it after 4 seconds. - Enables passing mouse event args into the connect command in both
OutPorts.xaml.csandInPorts.xaml.cs. - Introduces the resource string
ToastFileNodeAutoCompleteDoubleClickand cleans up duplicate entries in.resxfiles.
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| PortViewModel.cs | Added double-click handling, toast display, and timer to close it. |
| OutPorts.xaml.cs & InPorts.xaml.cs | Set PassEventArgsToCommand = true for left-button triggers. |
| PortCommands.cs | Added (but did not use) nodeAutoCompleteToast field. |
| Resources.resx & Resources.en-US.resx | Added toast message resource and removed duplicates. |
| Dynamo.All.sln.DotSettings | Tweaked ReSharper naming rules configuration. |
Files not reviewed (1)
- src/DynamoCore/Properties/Resources.Designer.cs: Language not supported
Comments suppressed due to low confidence (2)
src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs:536
- [nitpick] Currently HandlePortClicked is always invoked before checking for a double click. If the goal is to only show the toast on double click (and not initiate a connection), consider returning early when
evArgs.ClickCount >= 2to prevent unintended connection logic.
workspaceViewModel.HandlePortClicked(this);
src/DynamoCoreWpf/ViewModels/Core/PortViewModel.cs:552
- The new double-click toast behavior should have unit or integration tests to verify the toast window appears and closes after the expected interval.
private void HandleDoubleClick()
|
If I'm not mistaken in the past we used the information bubble of the node for these sort of things. And the bubble stays open until it is closed without timing. General notification system is more for the the general stuff. |
Purpose
Adds a toast notification when a user double-clicks a port to inform them to use the sparkle icon for Node Autocomplete.
Detects double-click in PortViewModel.Connect, shows a real-time info toast, and automatically closes it after 4 seconds.
Enables passing mouse event args into the connect command in both OutPorts.xaml.cs and InPorts.xaml.cs.
Introduces the resource string ToastFileNodeAutoCompleteDoubleClick and cleans up duplicate entries in .resx files.
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
N/A
Reviewers
@DynamoDS/synapse
FYIs
@Jingyi-Wen