Skip to content

Node informational states (#4)#11910

Merged
QilongTang merged 2 commits intoDynamoDS:DynamoNodeRedesignfrom
OliverEGreen:node_informational_states_internal_review
Aug 18, 2021
Merged

Node informational states (#4)#11910
QilongTang merged 2 commits intoDynamoDS:DynamoNodeRedesignfrom
OliverEGreen:node_informational_states_internal_review

Conversation

@OliverEGreen
Copy link
Contributor

Purpose

This PR introduces a new design to the InfoBubble UserControl, which is used to report node warnings and errors to the user.

There are now 3 kinds of user-facing messages a node can display. In order of ascending severity, these are Info, Warning and Message.

The InfoBubble is now capable of displaying multiple info messages, warnings and errors simultaneously, and gives the user the ability to dismiss both Warnings and Info Messages. Errors cannot be dismissed.

Dismissed messages may be retrieved by the node's context menu.

The following GIFs demonstrate the new functionality added in this PR:

DismissingMessages

  1. User-facing messages may now be dismissed by the user, and undismissed using the node's context menu. When messages are dismissed, a small counter glyph appears at the base of the node whose messages were dismissed.

StackingMessages

  1. Messages may be stacked according to their severity level. Errors (if any) will always appear at the base of the stack, with warnings above and info messages at the highest level. Each level of the stack may be expanded and contracted by clicking on the message body.

The message body may take 1 of 3 states:

  • A simple icon, with no messages displayed. This is the most compact representation.
  • An icon alongside the first message at the corresponding severity level, e.g. Errors. Where there are multiple messages at this level, an iterating counter appears beside each message.
  • Where multiple messages are present at the same severity level, clicking 'show all' will expand all messages at this level. An interating counter will be displayed to help users keep track of the messages.

ScrollingMessages

  1. A maximum height has been set per message-level, in case warning messages are very long (such as a long Python traceback message). In such cases, a scrollbar appears to allow for convenient traversal and review of any messages.

Impact assessment

  • Changes the way 3rd party nodes work (Add ikeough to the reviewer list)
  • Includes migrations (Add ikeough to the reviewer list)
  • Adds or changes a public interface (Add lukechurch to the reviewer list)
  • API change is added to the API Changes document.
  • Affects which components of the system depends on which other components (Add pboyer to the reviewer list)
  • Introduces new components (Add lukechurch to the reviewer list)
  • Has a performance impact (Add keyu to the reviewer list)
  • Changes the installer (Add sharadkjaiswal to the reviewer list)
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.

References (FILL ME IN)

The Dynamo team already has links to the new UI design.

Testing strategy

These changes have been tested manually in DynamoSandbox, with a range of generated Info Messages, Warnings and Errors.

Review staging

  • Architectural Design Review
  • UI Review

Reviewers

@QilongTang

FYIs

@Amoursol

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>
private bool isexplictFrozen;
private bool canToggleFrozen = true;
private bool isRenamed = false;
private ObservableCollection<MenuItem> dismissedAlerts = new ObservableCollection<MenuItem>();
Copy link
Contributor

@QilongTang QilongTang Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. I think it is usually not recommended to referencing or dynamically manage view level controls in view model(MVVM design). Is there a workaround of this, using binding for example so we can keep the ObservableCollection<MenuItem> dismissedAlerts on node view level but bind to a collection of messages on nodeviewModel maybe?

Content = string.Empty;
DocumentationLink = null;
ZIndex = 3;
// To appear above any NodeView elements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, how to find this fact out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a comment I read somewhere; I think groups were at 0, connectors at 1 and node bodies at 2. I may be wrong here though.

InfoBubbleStyle = Style.None;
InfoBubbleState = State.Minimized;

NodeMessages.CollectionChanged += NodeInformation_CollectionChanged;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we need to unsubscribe somewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, was this ever taken care of?

Copy link
Contributor

@QilongTang QilongTang Aug 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjkkirschner Thanks for checking these out! @OliverEGreen was away and should be able to address these comments on a new PR. If you have additional comments, feel free to leave them here. We will check back

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsubscribed in the Dispose method.

Copy link
Contributor

@QilongTang QilongTang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look solid with some comments

@QilongTang
Copy link
Contributor

Once everything is good on #11933, we will merge that first, then this one. We can maybe leave the comments to be addressed in separate PR.

@QilongTang
Copy link
Contributor

@OliverEGreen I can't confirm but I think the Dynamo SelfServe job timed out because of the WPFCLI test time out so we never got a result back. What I am going to do is to merge this PR as well, and then check out the regressions as well. Let's address the comments in a different PR. What do you think?

@QilongTang
Copy link
Contributor

Merging for now and @OliverEGreen Should be able to address comments in a follow up PR

@QilongTang QilongTang merged commit 7dedb76 into DynamoDS:DynamoNodeRedesign Aug 18, 2021
if(workspaceViewModel.InCanvasSearchViewModel.TryGetNodeIcon(this, out ImageSource imgSource)) ImageSource = imgSource;

// The Node displays a count of dismissed messages, listening to that collection in the node's ErrorBubble
ErrorBubble.DismissedMessages.CollectionChanged += DismissedNodeWarnings_CollectionChanged;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@QilongTang @OliverEGreen @SHKnudsen can we unsubscribe these handlers in the NodeViewModel.Dispose please?

QilongTang added a commit that referenced this pull request Aug 26, 2021
* Node Redesign (#11892)

* DYN-3768-SurveyWindowUI (#11834)

* DYN-3768-SurveyWindowUI

I created 3 resources for the two titles of the SurveyWindow and one for the text content.
I modified the CustomRichTextBox because hyperlink names separated by spaces were not supported then I did some changes and now are working.
I added the RatingControl UI and the SurveyPopup UI and some used styles in the DynamoModern.xaml.
Finally I added a instance of the Survey in the DynamoView.xaml.cs and now a survey popup will be displayed just for testing purposes.

* DYN-3768-SurveyWindowUI Code Review

I added several comments in SurveyPopupViewModel and RatingControl and removed a comment Survey

* DYN-3768-SurveyWindowUI Code Review2

Updated the DependencyProperty name to Value

* Update and rename 4_stdlib.md to 4_builtinpackages.md (#11850)

* Update and rename 4_stdlib.md to 4_builtinpackages.md

* Update 4_builtinpackages.md

* Add ways to pass Analytics Host Entitlement info for out of process integrators (#11841)

* Initial Commit

* Add ParentId to update manager

* Updates

* Add CLI support

* Add unit tests

* Update tests

* Update HostContextInfo type usage

* Comments to use struct

* Move properties out of update manager

* Update

* Comments

* Comments

* update test

* Force Dynamo to run on nvidia graphics card to address helix crash with multiple monitors (#11855)

* enable nvidia graphics card for helix

* make new field private

* Triggering Node AutoComplete on input port should not destroy the connection. (#11859)

* Extension fix (#11861)

DYN-3773

* Upgrade Helix to 2.17.0. (#11860)

* DYN-3834-GeoScaling-GraphRun (#11845)

* DYN-3834-GeoScaling-GraphRun

There was an issue that when the Geometry Scaling was updated in a very large graph the Preferences panel was blocked not allowing the user to close it. I think this behavior was because when the Preference panel was opened immediately a graph run was executed (without changing anything in the Preferences panel).
I was NOT able to reproduce the Preferences panel freezing behavior but we noticed that the graph execution was always happening when the Preferences panel was opened (when nothing was changed), then I did a fix in a way that the selected radio button (in geometry scaling section) is updated every time a new workspace is created or a dyn file is loaded (as is happening with the WorkspaceModel.ScaleFactor), so the graph run will be executed just when the ScaleFactor is changed.

* DYN-3834-GeoScaling-GraphRun Code Review

Unsubscribing from the WorkspaceSettingsChanged when the PreferencesViewModel is cleared.

* DYN-3834-GeoScaling-GraphRun Code Review

Making method private due that is just used in the same class.

* DYN-3834-GeoScaling-GraphRun Code Review

I did some changes so only when the ScaleFactor was changed a graph run will be executed when the Preferences dialog is closed

* DYN-3834-GeoScaling-GraphRun Code Review2

Replacing the call to ForceRunCancelCommand method for MarkNodesAsModifiedAndRequestRun due that the first one was executing the graph when the RunMode = Manual at the moment of updating the Geometry Scaling in the other hand with the MarkNodesAsModifiedAndRequestRun doesn't happen that behavior.

* Pin Note to Node (#11840)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* update libG for perimeter curves refactor (#11870)

Co-authored-by: pinzart <[email protected]>

* add test for dyn-3628 fix (#11872)

* add dump bytecode debug mode (#11871)

* add dump bytecode debug mode

* DYN-3815 - Prevent reloading of packages unless there are new packages in list of package paths (#11835)

* initial commit - WIP

* fixes for extraneous notifications and duplicate nodes

* cleanup

* revert unchanged file

* fix new package logic

* remove unused property

* fix some tests

* revert unchanged file

* fix remaining tests

* obsolete property

* cleanup

* edit obsoletion message

* load loose custom node defn files by simply adding root path

* add unit tests

* review comments

* revert rename of public API

* unsub events in tests

* DYN-3834-GeoScaling-UnitTest (#11867)

* DYN-3834-GeoScaling-UnitTest

I added one unit tests with two parameters, one is for validating that when RunMode=Manual and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is NOT kicked off.
The other when the RunMode=Automatic and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is kicked off.

* DYN-3834-GeoScaling-UnitTest Code Review

I had to split the tests in two (one for Automatic and other for Manual) due that the Resources strings can not be used as a parameters in nUnit Tests parameters (since parameters expected should be constant values).

* DYN-3834-GeoScaling-UnitTest Code Review2

Adding extra assert before validating the node warning state.
A comment was updated reflecting the behavior when RunType = Manual

* Pin to Node Selection Behaivior (#11874)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* Selection behaviour corrected

* Limit pin to node behaviour

* Add tooltip for Pin to node command,
Enable Pin To Node only when a node and a note is selected

* Add test to PinToNodeCommand.canExecute

* Update ScopeIf description (#11876)

* Update ScopeIf description

* ScopeIf Description Update

* Update Resources.Designer.cs

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* fix node autocomplete crash (#11887)

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>

* Wire modifications (#11897)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* fix coreWpf csproj file after rebase

Co-authored-by: Sylvester Knudsen <[email protected]>

* Wire modifications unit tests revised (#11899)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* Unit tests re-added.

* Unit tests updated.

Co-authored-by: Sylvester Knudsen <[email protected]>

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with. (#11928)

We accidentally deleted some key lines of code having to do with the styling of nodes.

* Node visual refresh updates (#11933)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Node visual refresh updates (#11941)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Node informational states (#4) (#11910)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: aparajit-pratap <[email protected]>

* Wire Behaviour UI fixes (#11946)

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with.

We accidentally deleted some key lines of code having to do with the styling of nodes.

* PR fixes. Button rectangular border removed, hover state for polyline connectors disabled, instantiation location of pins fixed.

- Button rectangular border removed.
- Hover state for polyline connectors disabled.
- Instantiation location of pins fixed.
- Connector tooltip behaviour to match that of temporary hover icons.

* PR fix.

* This makes more sense as a static member than a const.

* PR fixes.

* PR fixes.

* PR fixes.

* Update UIDispatcher usage (#11951)

* Fix the build by adding back missing code (#11952)

* Fix two regressions (#11953)

* Wire Behaviour UI fixes (#11954)

* Wire UI Fixes

 1. Made wire tooltip highest ZIndex.
 2. Made first line of tooltip bold, the rest is regular
 3. Added a clickable item under View-> Connectors to turn tooltip on/off.

* Added comments.

* Update CommandLineTests.cs (#11955)

* Graph Layout regression test fixed. (#11956)

* Update ConnectorAnchorView.xaml (#11969)

* Remove Extra Files (#11970)

* Node visual refresh updates (#11973)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Node visual refresh updates (#11977)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Reponse to comments

Co-authored-by: Ollie Green <[email protected]>
Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>
Co-authored-by: Marco Juliani <[email protected]>
Co-authored-by: Sylvester Knudsen <[email protected]>
QilongTang added a commit that referenced this pull request Sep 1, 2021
…12003)

* Node Redesign (#11892)

* DYN-3768-SurveyWindowUI (#11834)

* DYN-3768-SurveyWindowUI

I created 3 resources for the two titles of the SurveyWindow and one for the text content.
I modified the CustomRichTextBox because hyperlink names separated by spaces were not supported then I did some changes and now are working.
I added the RatingControl UI and the SurveyPopup UI and some used styles in the DynamoModern.xaml.
Finally I added a instance of the Survey in the DynamoView.xaml.cs and now a survey popup will be displayed just for testing purposes.

* DYN-3768-SurveyWindowUI Code Review

I added several comments in SurveyPopupViewModel and RatingControl and removed a comment Survey

* DYN-3768-SurveyWindowUI Code Review2

Updated the DependencyProperty name to Value

* Update and rename 4_stdlib.md to 4_builtinpackages.md (#11850)

* Update and rename 4_stdlib.md to 4_builtinpackages.md

* Update 4_builtinpackages.md

* Add ways to pass Analytics Host Entitlement info for out of process integrators (#11841)

* Initial Commit

* Add ParentId to update manager

* Updates

* Add CLI support

* Add unit tests

* Update tests

* Update HostContextInfo type usage

* Comments to use struct

* Move properties out of update manager

* Update

* Comments

* Comments

* update test

* Force Dynamo to run on nvidia graphics card to address helix crash with multiple monitors (#11855)

* enable nvidia graphics card for helix

* make new field private

* Triggering Node AutoComplete on input port should not destroy the connection. (#11859)

* Extension fix (#11861)

DYN-3773

* Upgrade Helix to 2.17.0. (#11860)

* DYN-3834-GeoScaling-GraphRun (#11845)

* DYN-3834-GeoScaling-GraphRun

There was an issue that when the Geometry Scaling was updated in a very large graph the Preferences panel was blocked not allowing the user to close it. I think this behavior was because when the Preference panel was opened immediately a graph run was executed (without changing anything in the Preferences panel).
I was NOT able to reproduce the Preferences panel freezing behavior but we noticed that the graph execution was always happening when the Preferences panel was opened (when nothing was changed), then I did a fix in a way that the selected radio button (in geometry scaling section) is updated every time a new workspace is created or a dyn file is loaded (as is happening with the WorkspaceModel.ScaleFactor), so the graph run will be executed just when the ScaleFactor is changed.

* DYN-3834-GeoScaling-GraphRun Code Review

Unsubscribing from the WorkspaceSettingsChanged when the PreferencesViewModel is cleared.

* DYN-3834-GeoScaling-GraphRun Code Review

Making method private due that is just used in the same class.

* DYN-3834-GeoScaling-GraphRun Code Review

I did some changes so only when the ScaleFactor was changed a graph run will be executed when the Preferences dialog is closed

* DYN-3834-GeoScaling-GraphRun Code Review2

Replacing the call to ForceRunCancelCommand method for MarkNodesAsModifiedAndRequestRun due that the first one was executing the graph when the RunMode = Manual at the moment of updating the Geometry Scaling in the other hand with the MarkNodesAsModifiedAndRequestRun doesn't happen that behavior.

* Pin Note to Node (#11840)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* update libG for perimeter curves refactor (#11870)

Co-authored-by: pinzart <[email protected]>

* add test for dyn-3628 fix (#11872)

* add dump bytecode debug mode (#11871)

* add dump bytecode debug mode

* DYN-3815 - Prevent reloading of packages unless there are new packages in list of package paths (#11835)

* initial commit - WIP

* fixes for extraneous notifications and duplicate nodes

* cleanup

* revert unchanged file

* fix new package logic

* remove unused property

* fix some tests

* revert unchanged file

* fix remaining tests

* obsolete property

* cleanup

* edit obsoletion message

* load loose custom node defn files by simply adding root path

* add unit tests

* review comments

* revert rename of public API

* unsub events in tests

* DYN-3834-GeoScaling-UnitTest (#11867)

* DYN-3834-GeoScaling-UnitTest

I added one unit tests with two parameters, one is for validating that when RunMode=Manual and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is NOT kicked off.
The other when the RunMode=Automatic and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is kicked off.

* DYN-3834-GeoScaling-UnitTest Code Review

I had to split the tests in two (one for Automatic and other for Manual) due that the Resources strings can not be used as a parameters in nUnit Tests parameters (since parameters expected should be constant values).

* DYN-3834-GeoScaling-UnitTest Code Review2

Adding extra assert before validating the node warning state.
A comment was updated reflecting the behavior when RunType = Manual

* Pin to Node Selection Behaivior (#11874)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* Selection behaviour corrected

* Limit pin to node behaviour

* Add tooltip for Pin to node command,
Enable Pin To Node only when a node and a note is selected

* Add test to PinToNodeCommand.canExecute

* Update ScopeIf description (#11876)

* Update ScopeIf description

* ScopeIf Description Update

* Update Resources.Designer.cs

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* fix node autocomplete crash (#11887)

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>

* Wire modifications (#11897)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* fix coreWpf csproj file after rebase

Co-authored-by: Sylvester Knudsen <[email protected]>

* Wire modifications unit tests revised (#11899)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* Unit tests re-added.

* Unit tests updated.

Co-authored-by: Sylvester Knudsen <[email protected]>

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with. (#11928)

We accidentally deleted some key lines of code having to do with the styling of nodes.

* Node visual refresh updates (#11933)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Node visual refresh updates (#11941)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Node informational states (#4) (#11910)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: aparajit-pratap <[email protected]>

* Wire Behaviour UI fixes (#11946)

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with.

We accidentally deleted some key lines of code having to do with the styling of nodes.

* PR fixes. Button rectangular border removed, hover state for polyline connectors disabled, instantiation location of pins fixed.

- Button rectangular border removed.
- Hover state for polyline connectors disabled.
- Instantiation location of pins fixed.
- Connector tooltip behaviour to match that of temporary hover icons.

* PR fix.

* This makes more sense as a static member than a const.

* PR fixes.

* PR fixes.

* PR fixes.

* Update UIDispatcher usage (#11951)

* Fix the build by adding back missing code (#11952)

* Fix two regressions (#11953)

* Wire Behaviour UI fixes (#11954)

* Wire UI Fixes

 1. Made wire tooltip highest ZIndex.
 2. Made first line of tooltip bold, the rest is regular
 3. Added a clickable item under View-> Connectors to turn tooltip on/off.

* Added comments.

* Update CommandLineTests.cs (#11955)

* Graph Layout regression test fixed. (#11956)

* Update ConnectorAnchorView.xaml (#11969)

* Remove Extra Files (#11970)

* Node visual refresh updates (#11973)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Node visual refresh updates (#11977)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Reponse to comments

* Group improvements to the graph view (#11912)

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Group improvements unit tests (#29)

* WIP

* view model tests

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Update SerializationTests.cs

* Update SerializationTests.cs

* comment updates

* comment updates

* fix GetOutputPorts errors

* fix serialization

* Update WorkspaceModel.cs

* remove grid style (not needed anymore)

* Remove BelongsToGroup property from ModelBase

* Update AnnotationViewModel.cs

* fix setting the graph to have unsaved changes on graph open

* disable drag and drop on collapsed groups

* fix spelling mistake

* Node informational states (#11983)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

* Fixes UI bug

* Switched out vector-based info/warning/error icons for .png equivalents.

* Removes reference to WindowsBase in DynamoCore and flags many properties in the InfoBubbleViewModel as obsolete.

* Updates

* Minor graphical updates

* Updates in response to feedback

Adds new resource strings.
Adds a ToolTip for the node context menu.
Makes node context menu visible for all nodes.
Fixes error bubble Z Index issue.
Adds chevron to error bubble design.
Unsubscribes from NodeMessages.CollectionChanged on InfoBubbleViewModel's Dispose method.

Co-authored-by: aparajit-pratap <[email protected]>

* Code Cleanup (#11984)

* Code Cleanup

* Call Dispose() on ConnectorAnchorViewModel

* Node redesign timeouts (#11986)

* Code Cleanup

* Call Dispose() on ConnectorAnchorViewModel

* unsub collection change

* formatting
fix broken path to pin icon

* revert schema change

* revert schema change in serialization as well

* actually dispose annotationviewmodels

Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: michael kirschner <[email protected]>

* Connector View Model Dispose (#11991)

* ConnectorViewModel dispose

* More Dispose spots

* Revert Node States Changes

* Fix build

* Initial Commit

* UI Fix

Co-authored-by: Ollie Green <[email protected]>
Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>
Co-authored-by: Marco Juliani <[email protected]>
Co-authored-by: Sylvester Knudsen <[email protected]>
Co-authored-by: michael kirschner <[email protected]>
QilongTang pushed a commit that referenced this pull request Sep 2, 2021
* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: aparajit-pratap <[email protected]>
@OliverEGreen OliverEGreen deleted the node_informational_states_internal_review branch September 7, 2021 11:02
QilongTang added a commit that referenced this pull request Oct 26, 2021
* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Node Redesign (#11892)

* DYN-3768-SurveyWindowUI (#11834)

* DYN-3768-SurveyWindowUI

I created 3 resources for the two titles of the SurveyWindow and one for the text content.
I modified the CustomRichTextBox because hyperlink names separated by spaces were not supported then I did some changes and now are working.
I added the RatingControl UI and the SurveyPopup UI and some used styles in the DynamoModern.xaml.
Finally I added a instance of the Survey in the DynamoView.xaml.cs and now a survey popup will be displayed just for testing purposes.

* DYN-3768-SurveyWindowUI Code Review

I added several comments in SurveyPopupViewModel and RatingControl and removed a comment Survey

* DYN-3768-SurveyWindowUI Code Review2

Updated the DependencyProperty name to Value

* Update and rename 4_stdlib.md to 4_builtinpackages.md (#11850)

* Update and rename 4_stdlib.md to 4_builtinpackages.md

* Update 4_builtinpackages.md

* Add ways to pass Analytics Host Entitlement info for out of process integrators (#11841)

* Initial Commit

* Add ParentId to update manager

* Updates

* Add CLI support

* Add unit tests

* Update tests

* Update HostContextInfo type usage

* Comments to use struct

* Move properties out of update manager

* Update

* Comments

* Comments

* update test

* Force Dynamo to run on nvidia graphics card to address helix crash with multiple monitors (#11855)

* enable nvidia graphics card for helix

* make new field private

* Triggering Node AutoComplete on input port should not destroy the connection. (#11859)

* Extension fix (#11861)

DYN-3773

* Upgrade Helix to 2.17.0. (#11860)

* DYN-3834-GeoScaling-GraphRun (#11845)

* DYN-3834-GeoScaling-GraphRun

There was an issue that when the Geometry Scaling was updated in a very large graph the Preferences panel was blocked not allowing the user to close it. I think this behavior was because when the Preference panel was opened immediately a graph run was executed (without changing anything in the Preferences panel).
I was NOT able to reproduce the Preferences panel freezing behavior but we noticed that the graph execution was always happening when the Preferences panel was opened (when nothing was changed), then I did a fix in a way that the selected radio button (in geometry scaling section) is updated every time a new workspace is created or a dyn file is loaded (as is happening with the WorkspaceModel.ScaleFactor), so the graph run will be executed just when the ScaleFactor is changed.

* DYN-3834-GeoScaling-GraphRun Code Review

Unsubscribing from the WorkspaceSettingsChanged when the PreferencesViewModel is cleared.

* DYN-3834-GeoScaling-GraphRun Code Review

Making method private due that is just used in the same class.

* DYN-3834-GeoScaling-GraphRun Code Review

I did some changes so only when the ScaleFactor was changed a graph run will be executed when the Preferences dialog is closed

* DYN-3834-GeoScaling-GraphRun Code Review2

Replacing the call to ForceRunCancelCommand method for MarkNodesAsModifiedAndRequestRun due that the first one was executing the graph when the RunMode = Manual at the moment of updating the Geometry Scaling in the other hand with the MarkNodesAsModifiedAndRequestRun doesn't happen that behavior.

* Pin Note to Node (#11840)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* update libG for perimeter curves refactor (#11870)

Co-authored-by: pinzart <[email protected]>

* add test for dyn-3628 fix (#11872)

* add dump bytecode debug mode (#11871)

* add dump bytecode debug mode

* DYN-3815 - Prevent reloading of packages unless there are new packages in list of package paths (#11835)

* initial commit - WIP

* fixes for extraneous notifications and duplicate nodes

* cleanup

* revert unchanged file

* fix new package logic

* remove unused property

* fix some tests

* revert unchanged file

* fix remaining tests

* obsolete property

* cleanup

* edit obsoletion message

* load loose custom node defn files by simply adding root path

* add unit tests

* review comments

* revert rename of public API

* unsub events in tests

* DYN-3834-GeoScaling-UnitTest (#11867)

* DYN-3834-GeoScaling-UnitTest

I added one unit tests with two parameters, one is for validating that when RunMode=Manual and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is NOT kicked off.
The other when the RunMode=Automatic and the MarkNodesAsModifiedAndRequestRun() method is called the graph execution is kicked off.

* DYN-3834-GeoScaling-UnitTest Code Review

I had to split the tests in two (one for Automatic and other for Manual) due that the Resources strings can not be used as a parameters in nUnit Tests parameters (since parameters expected should be constant values).

* DYN-3834-GeoScaling-UnitTest Code Review2

Adding extra assert before validating the node warning state.
A comment was updated reflecting the behavior when RunType = Manual

* Pin to Node Selection Behaivior (#11874)

* Pin to node squashed commit

* Changes for pin to node pr

* Add spacing to pin icon

* Retain pin node in copy paste, also correct spacing between note pin icon and text

* Move selection to command

* Place PIN_WIDTH as constant

* Fix distance in unit tests

* Selection behaviour corrected

* Limit pin to node behaviour

* Add tooltip for Pin to node command,
Enable Pin To Node only when a node and a note is selected

* Add test to PinToNodeCommand.canExecute

* Update ScopeIf description (#11876)

* Update ScopeIf description

* ScopeIf Description Update

* Update Resources.Designer.cs

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* fix node autocomplete crash (#11887)

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

* Fixes UI bug

* Switched out vector-based info/warning/error icons for .png equivalents.

* Wire modifications (#11897)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* fix coreWpf csproj file after rebase

Co-authored-by: Sylvester Knudsen <[email protected]>

* Wire modifications unit tests revised (#11899)

* Wire modifications (#23)

* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Cleanup.

* Cleanup.

* Cleanup.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Small fixes.

* Removed unused argument.

* Fixes.

* Small PR fixes.

* PR fix.

* Small fixes to ensure toggle between pline/bezier connectors and correct pin visibility.

* fix breaks

* Update RecordedTests.cs

* PR fixes.

* Connector anchor behaviour implemented.

* Added wire hover behaviour (grey outline). Updated 'default' icon behaviour (onhover).

* Updates to jive with unit tests.

* Bug fix related to pin removal/ watch node placement.

* Fixes. Updated pin position/ transform in xaml to achieve correct alignment with GraphLayout routines.

* Undo/redo bug fixed.

* PR comment fixes.

* PR comments fixed.

* PR fixes.

* PR fixes.

* PR fixes.

* Unit tests re-added.

* Unit tests updated.

Co-authored-by: Sylvester Knudsen <[email protected]>

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with. (#11928)

We accidentally deleted some key lines of code having to do with the styling of nodes.

* Node visual refresh updates (#11933)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Removes reference to WindowsBase in DynamoCore and flags many properties in the InfoBubbleViewModel as obsolete.

* Node visual refresh updates (#11941)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Node informational states (#4) (#11910)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: aparajit-pratap <[email protected]>

* Wire Behaviour UI fixes (#11946)

* Update DynamoColorsAndBrushes.xaml, which was accidentally tampered with.

We accidentally deleted some key lines of code having to do with the styling of nodes.

* PR fixes. Button rectangular border removed, hover state for polyline connectors disabled, instantiation location of pins fixed.

- Button rectangular border removed.
- Hover state for polyline connectors disabled.
- Instantiation location of pins fixed.
- Connector tooltip behaviour to match that of temporary hover icons.

* PR fix.

* This makes more sense as a static member than a const.

* PR fixes.

* PR fixes.

* PR fixes.

* Update UIDispatcher usage (#11951)

* Fix the build by adding back missing code (#11952)

* Fix two regressions (#11953)

* Wire Behaviour UI fixes (#11954)

* Wire UI Fixes

 1. Made wire tooltip highest ZIndex.
 2. Made first line of tooltip bold, the rest is regular
 3. Added a clickable item under View-> Connectors to turn tooltip on/off.

* Added comments.

* Update CommandLineTests.cs (#11955)

* Graph Layout regression test fixed. (#11956)

* Update ConnectorAnchorView.xaml (#11969)

* Remove Extra Files (#11970)

* Node visual refresh updates (#11973)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Node visual refresh updates (#11977)

* Adjustments made to node height, code block syntax colouring, output port arrows.

* Updates UI

* Responds to latest feedback from Autodesk

Changes path-based icons to PNGs.
Updates Code Block syntax highlighting colors and font to monospace.
Adds some extra new strings into Resources.
Fixes bug where unnamed port that shows output port chevron control could lead to the user being presented with a double-chevron port.
DynamoTextBox now has a minimum width set.
Slight adjustment to the sizes of various node parts.
All node icons should now load successfully.

* Code block minor pixel edits

Ensuring all code block elements align as they need to.
Tested with 200 outputs.

* Minor UI fixes

* Removing redundant code

* Updates some failing tests.

Switches .Cast<MenuItem> to .OfType<MenuItem> in many instances.

* Removes node informational states icons - these appear in another branch

* Responds to PR comments

* Fixes many failing regression tests. Adjusts Artifakt font location.

* Update Defect_MAGN_904.xml

* Update PortViewModel.cs

* Resets command interval in 2 recorded tests.

* Same again

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Fixes bugs and makes requested adjustments

Connected Break Connection / Hide Wires to Commands.
Added a tick for Context Menu items like 'Hidden' / 'Frozen'
Fixed Integer / Number slider visual input bug
Fixed Node Context Menu double separator bug
Fixed ToolTip spacing
Fixed Node Preview / Hidden eye icon not showing up bug
Adjusted Connector colour when selected to be same blue as node selection border.
Adjusted port names color to be same as node header
Adjusted Port default value marker to be same blue as port is connected border color
Adjusted node default icon to new icon from Jingyi
Fixed Code block 'Enter code here' vertical alignment
Adjusted AvalonEdit line numbers to fade them out a bit more

* Reponse to comments

* Updates

* Minor graphical updates

* Updates in response to feedback

Adds new resource strings.
Adds a ToolTip for the node context menu.
Makes node context menu visible for all nodes.
Fixes error bubble Z Index issue.
Adds chevron to error bubble design.
Unsubscribes from NodeMessages.CollectionChanged on InfoBubbleViewModel's Dispose method.

* Group improvements to the graph view (#11912)

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Group improvements unit tests (#29)

* WIP

* view model tests

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Update SerializationTests.cs

* Update SerializationTests.cs

* comment updates

* comment updates

* fix GetOutputPorts errors

* fix serialization

* Update WorkspaceModel.cs

* remove grid style (not needed anymore)

* Remove BelongsToGroup property from ModelBase

* Update AnnotationViewModel.cs

* fix setting the graph to have unsaved changes on graph open

* disable drag and drop on collapsed groups

* fix spelling mistake

* Node informational states (#11983)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

* Fixes UI bug

* Switched out vector-based info/warning/error icons for .png equivalents.

* Removes reference to WindowsBase in DynamoCore and flags many properties in the InfoBubbleViewModel as obsolete.

* Updates

* Minor graphical updates

* Updates in response to feedback

Adds new resource strings.
Adds a ToolTip for the node context menu.
Makes node context menu visible for all nodes.
Fixes error bubble Z Index issue.
Adds chevron to error bubble design.
Unsubscribes from NodeMessages.CollectionChanged on InfoBubbleViewModel's Dispose method.

Co-authored-by: aparajit-pratap <[email protected]>

* Updates - removing MenuItem collection.

* Code Cleanup (#11984)

* Code Cleanup

* Call Dispose() on ConnectorAnchorViewModel

* Node redesign timeouts (#11986)

* Code Cleanup

* Call Dispose() on ConnectorAnchorViewModel

* unsub collection change

* formatting
fix broken path to pin icon

* revert schema change

* revert schema change in serialization as well

* actually dispose annotationviewmodels

Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: michael kirschner <[email protected]>

* Minor graphical update to alert undismissal menu.

* Tidy up

* Update InfoBubbleView.xaml.cs

* Connector View Model Dispose (#11991)

* ConnectorViewModel dispose

* More Dispose spots

* Fixes Bugs

Updates InfoBubbleViewModel ZIndex property to the desired behaviour (dynamically linked to node ZIndex + 1).
Removes the de/serialization of Dismissed Alerts for now.

* Node informational states (#4) (#11910)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* Updates UI

* WIP changes

* ViewModel logic working as per mockup

* Node redesign (#3)

* Updates node styling

* Updates UI

Adds Artifakt font, changes colors, port/header height config, code block editor colours.

* Update UI

* Updates UI

* Updates UI

* Updates UI

* Ports visual states are working.

* Revert "Ports visual states are working."

* Revert "Revert "Ports visual states are working.""

This reverts commit 3557726.

* Updates UI

* Updates ContextMenu style

* Updates UI

* Updates UI

* Updates ComboBox and Output Ports style for Code Blocks

* Loads icon to node header

* Updates UI

* Updates UI

* Updates UI

* Bug fixes and responding to comments

* DYN-3875: Restore LocalPackages property in PreferencesViewModel (#11881)

* restore property in PreferencesViewModel

* add regression test for installedpackagesview

* fix test

* remove setting datacontext for installed packages view control as it is inherited

* undo unnecessary changes

* more cleanup

* Updates UI

* fix node autocomplete crash (#11887)

* Minor UI changes to Autodesk feedback

* Temporarily disabled dismissed alerts features

* Minor UI fix to the nodes' GlyphStackPanel

Co-authored-by: aparajit-pratap <[email protected]>

* Updates

* Updates node informational states

* Minor fixes

* Removed INodeInformationalState interface, no longer needed.

* Restored previously-removed commands in InfoBubbleCommand.cs

* Typo fix and restoring old NodeInfoBubbleViewModel methods to original state.

* Added comments, minor (old) API restoration work

* Renaming, refactoring and added 2 tests.

* Removed new constructor for OutputMessage.

Class is no longer being used for Informational States.

* Minor fixes.

Removed outdated and unused collection on NodeModel.
Changed command name to be less confusing.

* Update

* Responds to comments

* Removed unneeded references

* Reponse to comments

* Removed 'else' from method body

* two more

Co-authored-by: aparajit-pratap <[email protected]>

Co-authored-by: aparajit-pratap <[email protected]>

* Fixed duplicate code

* Remakes latest updates

* Fixes merge mess

* Removes unnecessary references

* Lazy loading of ErrorBubbles

* Removes redundant code

* Restores warning un-dismissed capability in node context menu.

* Adds comments

* Update InfoBubbleTests.cs

* Fixes NoteViewTests

* Update WorkspaceView.xaml.cs

Co-authored-by: aparajit-pratap <[email protected]>
Co-authored-by: Roberto T <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: reddyashish <[email protected]>
Co-authored-by: Ashish Aggarwal <[email protected]>
Co-authored-by: Jorgen Dahl <[email protected]>
Co-authored-by: Martin Stacey <[email protected]>
Co-authored-by: pinzart90 <[email protected]>
Co-authored-by: pinzart <[email protected]>
Co-authored-by: Sol Amour <[email protected]>
Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: Marco Juliani <[email protected]>
Co-authored-by: Sylvester Knudsen <[email protected]>
Co-authored-by: michael kirschner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants