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

Hard to type in category field after searching #459

Open
whmountains opened this issue Apr 30, 2024 · 1 comment
Open

Hard to type in category field after searching #459

whmountains opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request needs investigation We need to dig deeper into this

Comments

@whmountains
Copy link
Collaborator

Steps to reproduce:

  • Type in a search query, the slower the query the more obvious the problem will be. 1k is a great example.
  • Click into the Category field and start typing the name of a category. I typed "Resistors"

Expected result: I can type fluidly and the search does not re-run until I am done typing.
Actual result: There is a long lag after every keystroke while the query re-runs.

Known workaround: open the dropdown and pick your desired category from the menu.

NOTE: the problem does not occur when typing in the Subcategory field. Hopefully it is an easy fix to apply debouncing to the Category field as well.

@Bouni Bouni added the enhancement New feature or request label Jul 4, 2024
@Bouni
Copy link
Owner

Bouni commented Jul 4, 2024

I had the idea to add an wx.ActivityIndicator but apparently the db search itself blocks the GUI refresh, so the spinner does not spin while the search is running 😑

Maybe we can utilize a thread and events in order to populate the listview after the search is done ...

@Bouni Bouni added the needs investigation We need to dig deeper into this label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs investigation We need to dig deeper into this
Projects
None yet
Development

No branches or pull requests

2 participants