Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Auto search / Search on typing

Open Phiwatec opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. In the old version of PartDB it would auto search when typing in the search bar. I found this feature very useful, as I could type and see if it already shows the wanted part without having to type the whole word. Would it be possible to port this feature from the original version? Grettings

Phiwatec avatar Jun 20 '23 18:06 Phiwatec

I noticed that this search behavior is available when I want to add parts to the BOM in a project. You can also search freely in this field. This search behavior would be great for quick searches.

@jbtronics is it possible to bring this search field to the home page?

I tested the behavior in the demo database with this part: https://demo.part-db.de/de/parts/search?name=1&category=1&description=1&mpn=1&tags=1&storelocation=1&comment=1&ipn=1&ordernr=1&keyword=2%2C54%25X7R

Screenshot_20240203_113328_Firefox Screenshot_20240203_113357_Firefox Screenshot_20240203_113445_Firefox

RaptorDE avatar Feb 03 '24 10:02 RaptorDE

I took a closer look at the search function in Project Bom and went down a ChatGPT rabbit hole 😁. The result, an additional HTML page that provides a simple, quick search. If anyone is interested, here is the github.

RaptorDE avatar Feb 03 '24 20:02 RaptorDE

I have implemented a proper quicksearch / autocomplete search on the navbar and the new search field on homepage: image

It is available in the demo instance: https://demo.part-db.de/en/

jbtronics avatar Feb 29 '24 22:02 jbtronics

The new search is great. Is it Possible to search for keywords in a different order than in the Description? This is possible for parts in the project BOM.

RaptorDE avatar Mar 02 '24 19:03 RaptorDE