From de36287f667c641d503a49c0b16ff8a017af273d Mon Sep 17 00:00:00 2001 From: Erfan Amiri Date: Mon, 8 Jun 2026 15:31:57 -0400 Subject: [PATCH 1/6] feat: begin implementation for #8957 From c028de5a1ccd4b48d5cd106741bd8a2f37cd06bf Mon Sep 17 00:00:00 2001 From: Erfan Amiri Date: Mon, 8 Jun 2026 15:36:31 -0400 Subject: [PATCH 2/6] feat: add no-network-mode tooltip resource strings Add PackageManagerNoNetworkModeToolTip to DynamoCoreWpf and InstallButtonNoNetworkModeToolTip to WorkspaceDependencyViewExtension resource bundles (invariant + en-US) with regenerated Designer.cs accessors. These resources back the no-network-mode tooltips for the Packages menu, custom-workspace Publish item, and Workspace References Install button. Implements TASK 1 of DYN-8957. --- src/DynamoCoreWpf/Properties/Resources.Designer.cs | 9 +++++++++ src/DynamoCoreWpf/Properties/Resources.en-US.resx | 3 +++ src/DynamoCoreWpf/Properties/Resources.resx | 3 +++ .../Properties/Resources.Designer.cs | 9 +++++++++ .../Properties/Resources.en-US.resx | 3 +++ .../Properties/Resources.resx | 3 +++ 6 files changed, 30 insertions(+) diff --git a/src/DynamoCoreWpf/Properties/Resources.Designer.cs b/src/DynamoCoreWpf/Properties/Resources.Designer.cs index 04bfc64933e..3ba77a767e5 100644 --- a/src/DynamoCoreWpf/Properties/Resources.Designer.cs +++ b/src/DynamoCoreWpf/Properties/Resources.Designer.cs @@ -6567,6 +6567,15 @@ public static string PackageManagerNoInstalledPackagesSubMessage { } } + /// + /// Looks up a localized string similar to Enable Network Mode to be able to use Package Manager.. + /// + public static string PackageManagerNoNetworkModeToolTip { + get { + return ResourceManager.GetString("PackageManagerNoNetworkModeToolTip", resourceCulture); + } + } + /// /// Looks up a localized string similar to No validation errors. /// diff --git a/src/DynamoCoreWpf/Properties/Resources.en-US.resx b/src/DynamoCoreWpf/Properties/Resources.en-US.resx index 5f45b505dd9..490fa9abe00 100644 --- a/src/DynamoCoreWpf/Properties/Resources.en-US.resx +++ b/src/DynamoCoreWpf/Properties/Resources.en-US.resx @@ -154,6 +154,9 @@ Enable Network Mode to be able to sign in. + + Enable Network Mode to be able to use Package Manager. + Autodesk A360 diff --git a/src/DynamoCoreWpf/Properties/Resources.resx b/src/DynamoCoreWpf/Properties/Resources.resx index 29ddf57ce0e..04c01d914bb 100644 --- a/src/DynamoCoreWpf/Properties/Resources.resx +++ b/src/DynamoCoreWpf/Properties/Resources.resx @@ -2147,6 +2147,9 @@ Do you want to install the latest Dynamo update? Enable Network Mode to be able to sign in. + + Enable Network Mode to be able to use Package Manager. + Autodesk A360 diff --git a/src/WorkspaceDependencyViewExtension/Properties/Resources.Designer.cs b/src/WorkspaceDependencyViewExtension/Properties/Resources.Designer.cs index 4328fb2b106..58ffc336b8d 100644 --- a/src/WorkspaceDependencyViewExtension/Properties/Resources.Designer.cs +++ b/src/WorkspaceDependencyViewExtension/Properties/Resources.Designer.cs @@ -201,6 +201,15 @@ public static System.Drawing.Bitmap ImageIcon { } } + /// + /// Looks up a localized string similar to Enable Network Mode to be able to install packages.. + /// + public static string InstallButtonNoNetworkModeToolTip { + get { + return ResourceManager.GetString("InstallButtonNoNetworkModeToolTip", resourceCulture); + } + } + /// /// Looks up a localized string similar to Install Specified Version. /// diff --git a/src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx b/src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx index eef28c6f12c..521a69b4974 100644 --- a/src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx +++ b/src/WorkspaceDependencyViewExtension/Properties/Resources.en-US.resx @@ -225,6 +225,9 @@ Install Specified Version + + Enable Network Mode to be able to install packages. + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL diff --git a/src/WorkspaceDependencyViewExtension/Properties/Resources.resx b/src/WorkspaceDependencyViewExtension/Properties/Resources.resx index eef28c6f12c..521a69b4974 100644 --- a/src/WorkspaceDependencyViewExtension/Properties/Resources.resx +++ b/src/WorkspaceDependencyViewExtension/Properties/Resources.resx @@ -225,6 +225,9 @@ Install Specified Version + + Enable Network Mode to be able to install packages. + iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL From 6e07b1b4f9635a63d535304b3c0b2f34b76eca3e Mon Sep 17 00:00:00 2001 From: Erfan Amiri Date: Mon, 8 Jun 2026 15:40:50 -0400 Subject: [PATCH 3/6] feat: add no-network tooltips to Packages menu items Attach a disabled-state tooltip to the publishSelected, publishCurrent, and showPM menu items under the Packages menu using the same ToolTipService.ShowOnDisabled + PlacementTarget.IsEnabled DataTrigger pattern as the Sign-In offline button in ShortcutToolbar.xaml. Resource: Resources.PackageManagerNoNetworkModeToolTip. DYN-8957 --- src/DynamoCoreWpf/Views/Core/DynamoView.xaml | 57 ++++++++++++++++++-- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml index e7e3b3d9d05..b4c22a43243 100644 --- a/src/DynamoCoreWpf/Views/Core/DynamoView.xaml +++ b/src/DynamoCoreWpf/Views/Core/DynamoView.xaml @@ -615,13 +615,64 @@ IsEnabled="True"> + Header="{x:Static p:Resources.DynamoViewPackageMenuPublishNodes}" + ToolTipService.ShowOnDisabled="True"> + + + + + + + + + Header="{x:Static p:Resources.DynamoViewPackageMenuPublishWorkspace}" + ToolTipService.ShowOnDisabled="True"> + + + + + + + + + Header="{x:Static p:Resources.DynamoViewPackageMenuPackageManager}" + ToolTipService.ShowOnDisabled="True"> + + + + + + + + Date: Mon, 8 Jun 2026 15:44:55 -0400 Subject: [PATCH 4/6] feat: add no-network tooltip to custom-workspace Publish menu --- .../Views/Core/WorkspaceView.xaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml b/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml index f6fbe732e38..d1c057c0782 100644 --- a/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml +++ b/src/DynamoCoreWpf/Views/Core/WorkspaceView.xaml @@ -755,7 +755,24 @@ + ToolTipService.ShowOnDisabled="True" + Visibility="{Binding Path=IsHomeSpace, Converter={StaticResource InverseBoolToVisibilityCollapsedConverter}}"> + + + + + + + + From b90ab7e8e223f44d92bc6081b5094432b837d715 Mon Sep 17 00:00:00 2001 From: Erfan Amiri Date: Mon, 8 Jun 2026 15:51:37 -0400 Subject: [PATCH 5/6] feat: disable Workspace References install button in no-network mode Add a NoNetworkMode property to WorkspaceDependencyView populated from ViewLoadedParams.StartupParams.NoNetworkMode, then disable the DownloadPackageButton via a Style.Triggers DataTrigger bound to that property. Attach a ToolTipService.ShowOnDisabled tooltip using the InstallButtonNoNetworkModeToolTip resource and the same collapsed-by- default ToolTip pattern as the Packages menu items. DYN-8957 --- .../WorkspaceDependencyView.xaml | 31 +++++++++++++++++-- .../WorkspaceDependencyView.xaml.cs | 8 +++++ 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml b/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml index 2735f15c03f..43711726195 100644 --- a/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml +++ b/src/WorkspaceDependencyViewExtension/WorkspaceDependencyView.xaml @@ -247,12 +247,37 @@ FontSize="11"> -