Skip to content

Conversation

@chubakueno
Copy link
Contributor

Purpose

Open dropdown on first text input hit

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

Open dropdown on first text input hit

Reviewers

@DynamoDS/synapse

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

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-9089

@johnpierson johnpierson requested a review from Copilot July 15, 2025 13:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables the autocomplete dropdown to open on the very first character typed into the search box rather than only when results are populated.

  • Added a PreviewTextInput handler in the view to open the dropdown and seed the first character.
  • Wired that handler in XAML on the window.
  • Removed the previous always-open logic from PopulateAutoComplete in the view model.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml.cs Added NodeAutoCompleteBarView_PreviewTextInput to open the dropdown on first text input.
src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml Hooked up PreviewTextInput event on the window.
src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs Removed unconditional IsDropDownOpen = true in PopulateAutoComplete.
Comments suppressed due to low confidence (1)

src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml.cs:344

  • Add unit or automated UI tests for this new PreviewTextInput handler to verify that the dropdown opens correctly on the first character input and that subsequent characters append as expected.
            if(ViewModel != null && ViewModel.HasUnfilteredResults && !ViewModel.IsDropDownOpen)

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.

this works awesome and exactly as I would expect as a Dynamo user.

20250715-search

@johnpierson johnpierson merged commit a62e22b into DynamoDS:master Jul 15, 2025
28 of 29 checks passed
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