Skip to content

Conversation

@chubakueno
Copy link
Contributor

@chubakueno chubakueno commented May 14, 2025

Purpose

Change autocomplete Popup to a Window to improve control behavior. The main consequence of this is the control no longer being Topmost and not remaining on top of other programs or when Dynamo is minimized.

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
  • This PR contains no files larger than 50 MB

Release Notes

Revised existing Node AutoComplete Popup to window

Reviewers

@johnpierson
@BogdanZavu

FYIs

Change autocomplete Popup to a Window to improve control behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a new constructor here, old one was already public and is currently marked as obsolete.

@johnpierson johnpierson changed the title change autocomplete popup to a Window to improve behavior DYN-8576 - change autocomplete popup to a Window to improve behavior May 14, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-8576

@johnpierson johnpierson requested review from a team, BogdanZavu and johnpierson and removed request for a team May 14, 2025 19:31
HomeWorkspaceModel.WorkspaceClosed += this.CloseAutoCompletion;
}

public NodeAutoCompleteSearchControl(Window window, NodeAutoCompleteSearchViewModel viewModel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be internal ? I don't think we want it in the API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@BogdanZavu
Copy link
Contributor

Let's remove OnNodeAutoCompleteSearchControlVisibilityChanged
And subscribe to the node remove event when se show the window at the beginning and unsubscribe on close.
Also populate on show.

Previously we were subscribing on visibility changed but did not unsubscribe on most closing contexts.

private void CurrentApplicationDeactivated(object sender, EventArgs e)
{
OnRequestShowNodeAutoCompleteSearch(ShowHideFlags.Hide);
OnRequestHideNodeAutoCompleteSearch();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't want to hide the window on app deactivation anymore ; previously it was a popup and it was hiding by itself in many contexts.

@BogdanZavu
Copy link
Contributor

BogdanZavu commented May 15, 2025

Let's remove OnNodeAutoCompleteSearchControlVisibilityChanged And subscribe to the node remove event when se show the window at the beginning and unsubscribe on close. Also populate on show.

Previously we were subscribing on visibility changed but did not unsubscribe on most closing contexts.

Actually @chubakueno we can do this as part of another PR. So up to you.
LGTM!

Copy link
Member

@johnpierson johnpierson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree with @BogdanZavu - lets try to get this merged and worry about the other comments in another pr. getting this existing dna node type match work implemented is valuable to move on to the next thing.

@chubakueno
Copy link
Contributor Author

chubakueno commented May 15, 2025

Improved the layout algorithm a bit so the window doesnt appear on different places depending on whether the AI sparkle is present to prepare to rebase onto 3.5.1 hotfix, feel free to merge when reviewed.

@BogdanZavu BogdanZavu merged commit ff176e9 into DynamoDS:master May 15, 2025
27 checks passed
@zeusongit zeusongit added this to the 3.5.1 milestone May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants