Skip to content

[DYN-8894]-Performance improvements after hide proxy ports and group auto layout #16410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/DynamoCore/Configuration/IPreferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ public interface IPreferences
/// </summary>
public bool ShowDefaultGroupDescription { get; set; }

/// <summary>
/// Indicates if the optional input ports are hidden by default.
/// </summary>
public bool OptionalInPortsCollapsed { get; set; }

/// <summary>
/// Indicates if the unconnected output ports are hidden by default.
/// </summary>
public bool UnconnectedOutPortsCollapsed { get; set; }

/// <summary>
/// Indicates if the groups should be collapsed by default.
/// </summary>
public bool CollapseToMinSize { get; set; }

/// <summary>
/// Returns height of console
/// </summary>
Expand Down
48 changes: 48 additions & 0 deletions src/DynamoCore/Configuration/PreferenceSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ private readonly static Lazy<PreferenceSettings>
private string backupLocation;
private string templateFilePath;
private bool isMLAutocompleteTOUApproved;
private bool optionalInputsCollapsed;
private bool unconnectedOutputsCollapsed;
private bool collapseToMinSize;

#region Constants
/// <summary>
Expand Down Expand Up @@ -195,6 +198,48 @@ public bool IsADPAnalyticsReportingApproved
/// </summary>
public bool ShowDefaultGroupDescription { get; set; }

/// <summary>
/// Indicates if the optional input ports are collapsed by default.
/// </summary>
public bool OptionalInPortsCollapsed
{
get => optionalInputsCollapsed;
set
{
if (optionalInputsCollapsed == value) return;
optionalInputsCollapsed = value;
RaisePropertyChanged(nameof(OptionalInPortsCollapsed));
}
}

/// <summary>
/// Indicates if the unconnected output ports are hidden by default.
/// </summary>
public bool UnconnectedOutPortsCollapsed
{
get => unconnectedOutputsCollapsed;
set
{
if (unconnectedOutputsCollapsed == value) return;
unconnectedOutputsCollapsed = value;
RaisePropertyChanged(nameof(UnconnectedOutPortsCollapsed));
}
}

/// <summary>
/// Indicates if the groups should be collapsed to minimal size by default.
/// </summary>
public bool CollapseToMinSize
{
get => collapseToMinSize;
set
{
if (collapseToMinSize == value) return;
collapseToMinSize = value;
RaisePropertyChanged(nameof(CollapseToMinSize));
}
}

/// <summary>
/// Indicates if Host units should be used for graphic helpers for Dynamo Revit
/// </summary>
Expand Down Expand Up @@ -1001,6 +1046,9 @@ public PreferenceSettings()
DefaultRunType = RunType.Automatic;
DefaultNodeAutocompleteSuggestion = NodeAutocompleteSuggestion.MLRecommendation;
ShowDefaultGroupDescription = true;
OptionalInPortsCollapsed = true;
UnconnectedOutPortsCollapsed = true;
CollapseToMinSize = true;

BackupInterval = DefaultBackupInterval;
BackupFilesCount = 1;
Expand Down
Loading
Loading