From 1c6a6ea6173baf0695cf04569c3105bd612fe999 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Thu, 14 Mar 2024 17:48:17 +0000 Subject: [PATCH 1/4] loading screen stuck fix (#15011) - small change to force update of the front end after a corrupt file is being opened - in case of an error, re-setting the `ShowStartPage` will trigger the update to the front end and remove the loading screen --- src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs index 0becc9ac897..d18d8d84bba 100644 --- a/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs +++ b/src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs @@ -1842,6 +1842,8 @@ private void Open(object parameters) commandString, MessageBoxButton.OK, MessageBoxImage.Error); + + this.ShowStartPage = true; // Triggers start page change to notify the frontend } else { From c90f1052a3cd9f3af26b20531668d8c53a7da225 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Fri, 15 Mar 2024 15:42:36 +0000 Subject: [PATCH 2/4] DYN-6607 - Input/Output Node - part 1 (#14987) * initialize definedata model - starting with the model and the test suite * added test structure, node customization - now types are contained inside an enum - added the basic primitives to the test structure, including lists checks - reworked the node to start getting the customization going (and make sense of the whole thing) * hierarchical container, geometry tests - created hierarchical container capable of tracking type inheritance - added all geometry tests * primitive tests done - finished all primitive date type tests * ggroup * Revert "ggroup" This reverts commit 1621855d3edacde667af1d474ef6be856d88e720. * inheritance tests done - completed tests checking inf inheritance works on individual and on list level * comments - added a few additional comments - additional test checking if inheritance stops at the desired level (ie. `Cone` does not inherit from `Curve`) * finished refactoring for tests - removed the Enum, replaced directly with Type * refactor, comments - removed dictionary in favor of list of datatypes - renamed methods to better suit the specificity of the node functionality they were serving --------- Co-authored-by: Ashish Aggarwal --- .../UI/Themes/Modern/DynamoModern.xaml | 130 +++++++ src/Libraries/CoreNodeModels/DefineData.cs | 161 ++++++++ .../Controls/DefineDataControl.xaml | 81 ++++ .../Controls/DefineDataControl.xaml.cs | 23 ++ .../CoreNodeModelsWpf.csproj | 1 + .../CoreNodeModelsWpf/DefineDataViewModel.cs | 21 ++ .../NodeViewCustomizations/DefineData.cs | 47 +++ src/Libraries/CoreNodes/Data.cs | 161 +++++++- test/DynamoCoreTests/DSCoreDataTests.cs | 349 +++++++++++++++++- 9 files changed, 952 insertions(+), 22 deletions(-) create mode 100644 src/Libraries/CoreNodeModels/DefineData.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/Controls/DefineDataControl.xaml create mode 100644 src/Libraries/CoreNodeModelsWpf/Controls/DefineDataControl.xaml.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/DefineDataViewModel.cs create mode 100644 src/Libraries/CoreNodeModelsWpf/NodeViewCustomizations/DefineData.cs diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml index abf88c0e770..474efa30ab6 100644 --- a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml +++ b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml @@ -489,6 +489,136 @@ + + + + + + + + + + + + + + + +