Skip to content
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

Pin Wire from Right-click Context Menu #13102

Merged
merged 6 commits into from
Jul 20, 2022

Conversation

dnenov
Copy link
Collaborator

@dnenov dnenov commented Jul 12, 2022

Purpose

An additional feature to the context menu of the connection wire. When Right-clicked, now will display the option to Pin wire

pin right-click context

A new set of Context Menu Items to allow the user to Show/Hide all Wires (connectors) from a group of selected Nodes.

  • if all wires are visible, the 'Hide All Wires' is active, 'Show All Wires' is inactive
  • if all wires are hidden, the 'Show All Wires' is active, 'Hide All Wires' is inactive
  • if some wires are visible and some hidden, both items are active

show hide wires
show hide wires 2

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • 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
  • All tests pass using the self-service CI.
  • 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

Release Notes

  • added right-click context menu to allow Pin wire
  • the wire will be pinned at the mouse point, similar to the existing mouse hoover behavior

Reviewers

@reddyashish

FYIs

@Amoursol

- added the ability to pin a wire from the right-click context menu
- the 'Pin' functionality already exists from the mouse-hoover behavior
@reddyashish reddyashish marked this pull request as ready for review July 12, 2022 17:53
@reddyashish
Copy link
Contributor

- created the infrastructure for the Show/Hide All Wires context menu commands
- still missing the correct API to perform the required action
@reddyashish
Copy link
Contributor

reddyashish commented Jul 18, 2022

@dnenov Thanks, can you also add the a snapshot of the new changes.

- both show and hide routine now operate directly on the IsHidden property of the ConnectorModel
- added a test to check if the menu items are loaded
- added a test to check the functionality of Show/Hide All Wires commands
- added a test file
- swapped Enumerator with ForEach for potential performance purposes
@reddyashish reddyashish merged commit a0fc6af into DynamoDS:master Jul 20, 2022
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.

2 participants