Skip to content

Conversation

@BogdanZavu
Copy link
Contributor

@BogdanZavu BogdanZavu commented Jun 2, 2025

Purpose

Add a search box inside the combo box of the autocomplete new experience.
It needs a little bit more work but we'll follow up on this or another pr.

combosearch

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

N/A

Reviewers

@DynamoDS/synapse

FYIs

@QilongTang

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

@johnpierson johnpierson requested a review from Copilot June 2, 2025 17:49
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

Adds an inline search box to the autocomplete combo and wires up filtering in the view model.

  • Binds the combo’s ItemsSource to a filtered view and injects a TextBox as the search input.
  • Implements FilteredView, FilterLogic, and a SearchInput property in the ViewModel.
  • Updates the Modern theme’s ComboBox template and registers a new converter.

Reviewed Changes

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

File Description
src/NodeAutoCompleteViewExtension/Views/NodeAutoCompleteBarView.xaml Swapped ItemsSource, added Font settings, and placed a TextBox in the ComboBox.Tag
src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs Introduced FilteredView, FilterLogic, and SearchInput handling
src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml Extended ComboBox popup template to render the search slot
src/DynamoCoreWpf/UI/Themes/Modern/DynamoConverters.xaml Added NullToVisibiltyConverter resource
Comments suppressed due to low confidence (1)

src/NodeAutoCompleteViewExtension/ViewModels/NodeAutoCompleteBarViewModel.cs:200

  • The new filtering logic in 'FilterLogic' and the SearchInput behavior lack unit tests—consider adding tests to verify filtering results across various inputs.
private bool FilterLogic(object item)

if (FilteredView != null)
{
FilteredView.Refresh();
}
Copy link

Copilot AI Jun 2, 2025

Choose a reason for hiding this comment

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

After updating SearchInput, the ViewModel should raise PropertyChanged for 'SearchInput' to notify any bound consumers of its new value.

Suggested change
}
}
RaisePropertyChanged(nameof(SearchInput));

Copilot uses AI. Check for mistakes.
@johnpierson johnpierson self-requested a review June 3, 2025 11:55
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.

lgtm, for the next pr getting the text box to be focused on keyboard entry will be cool.

also merged some typo fixes from copilot.

@johnpierson johnpierson added the ai/ml 🧠 synapse team related PRs label Jun 3, 2025
@BogdanZavu
Copy link
Contributor Author

Had to build the pipeline manually , results here
The failing test is not related to this change and it passes for me locally.
The naming type err was breaking something else when corrected so I left it as is for now.

@BogdanZavu BogdanZavu merged commit 4da62ba into DynamoDS:master Jun 3, 2025
36 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/ml 🧠 synapse team related PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants