Skip to content

Conversation

@chubakueno
Copy link
Contributor

Purpose

Run autocomplete search in background thread and hide search box with animation stripe.

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

Run autocomplete search in background thread and hide search box with animation stripe.

Reviewers

@BogdanZavu
@johnpierson

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

@johnpierson johnpierson requested a review from Copilot June 4, 2025 12:48
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 moves the ML autocomplete call to a background thread and adds a loading state flag to toggle between a spinner stripe and the search results UI.

  • Introduces a ResultsLoaded property and wraps the ML request in Task.Run
  • Adds error handling and marshals UI updates via the dispatcher
  • Updates the XAML to show a LoadingAnimationStripeControl while results are loading

Reviewed Changes

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

File Description
src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs Adds ResultsLoaded, moves ML call to a background thread, and dispatches UI updates
src/DynamoCoreWpf/Controls/NodeAutoCompleteSearchControl.xaml Defines an inverse visibility converter and binds the spinner/control visibility to ResultsLoaded
Comments suppressed due to low confidence (1)

src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs:335

  • [nitpick] The method name UpdateUIWithRresults contains a typo (Rresults). Consider renaming it to UpdateUIWithResults for clarity and consistency.
private void UpdateUIWithRresults(MLNodeAutoCompletionResponse MLresults)

@johnpierson johnpierson added the ai/ml 🧠 synapse team related PRs label Jun 4, 2025
internal bool IsOpen { get; set; }

private bool resultsLoaded;
public bool ResultsLoaded
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we need this to be public due to the binding. Let's add a comment an d also make it obsolete.

@BogdanZavu
Copy link
Contributor

BogdanZavu commented Jun 4, 2025

Made a few comments.
It's too fast , I'm not seeing the animation :).
LGTM!

@chubakueno chubakueno merged commit 8a4ec95 into DynamoDS:master Jun 4, 2025
26 of 27 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