Dynamo icon indicating copy to clipboard operation
Dynamo copied to clipboard

[DYN-7845] Hide input and output ports from collapsed groups

Open ivaylo-matov opened this issue 5 months ago • 0 comments

Purpose

This PR aims to address DYN-7845.

New Preference Settings:

  • added options to hide optional input ports and unconnected output ports by default when a group is collapsed
  • added a preference to automatically apply minimum width and height to collapsed groups

Port Toggles:

  • collapsed groups now display toggle buttons that let users manually expand or collapse optional input ports and unconnected output ports per group. Optional input ports are the disconnected input ports that use default values, unconnected output ports are output ports with no outgoing connections.

Manual Overrides:

  • once a group’s ports have been manually toggled via the UI, the group will no longer respond to changes in the corresponding global preferences

Please note that to calculate the minimal width of a collapsed group, the view waits until the ports have been rendered once, then reads their measured DesiredSize to compute the smallest area needed to fit all visible ports and toggles. This causes a second render pass for the group .

DYN-7845-DemoGIF

Declarations

Check these if you believe they are true

  • [ ] Is documented according to the standards
  • [ ] The level of testing this PR includes is appropriate
  • [ ] User facing strings, if any, are extracted into *.resx files
  • [ ] Snapshot of UI changes, if any.
  • [ ] Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • [ ] This PR modifies some build requirements and the readme is updated
  • [ ] This PR contains no files larger than 50 MB
  • [ ] This PR introduces new feature code involve network connecting and is tested with no-network mode.

Release Notes

New preferences and group UI controls let users hide optional input and unconnected output ports by default when a group is collapsed. Users can also manually toggle port visibility and keep custom collapsed group sizes, overriding the default settings.

Reviewers

@DynamoDS/eidos @jasonstratton

FYIs

@achintyabhat @dnenov

ivaylo-matov avatar Jun 17 '25 06:06 ivaylo-matov