CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 658
DYN-8996 - Alert Users with Toast Notification for Double Click on Port #16289
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
DYN-8996 - Alert Users with Toast Notification for Double Click on Port #16289
Conversation
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.cs
andInPorts.xaml.cs
. - Introduces the resource string
ToastFileNodeAutoCompleteDoubleClick
and cleans up duplicate entries in.resx
files.
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 >= 2
to 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()
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
β¦pierson/Dynamo into dyn8996_toastForDoubleClick
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.
LGTM!
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
*.resx
filesRelease Notes
N/A
Reviewers
@DynamoDS/synapse
FYIs
@Jingyi-Wen