Part-DB-server/templates/components
d-buchmann 1686df968f
Implement extensive search (#1406)
* Implement advanced search

Up to 5 individual tokens (separated by spaces) can be given as search string.
Each token is individually searched for in all selected fields.

Examples (assuming the relevant fields are selected for search):
- a part named `foo` with a tag `bar` will be found with the search string "foo bar".
- a part named `bar baz` will be found with the search string "baz bar".
- a part with the ID 123 and in storage location `a_qux_b` will be found with the search string "qux 123".

* Add tests

These were created with the help of GPT-5.2.
Disclaimer: I don't have the experience to judge the quality or validity of the results.

* Restructure query buildup

* Update tests

* Move options from Settings to localStorage

* Consider mutual exclusivity of search options

If regex search is enabled, the other two options are disabled (only visually). This should give the user a fair idea of what's happening while keeping things as simple as possible.

* Added translations for the checkboxes

* Fix stimulus controller to allow handling multiple instances of the dropdown menu

* Added tooltips for the different search mode options

---------

Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-07-27 18:42:32 +02:00
..
attachments.macro.html.twig Fixed margins of the upload files button 2024-03-02 18:33:20 +01:00
collection_type.macro.html.twig Add a blue dot to the collection type delete buttons in forms to indicate that this element was not yet saved to DB yet 2023-11-20 23:40:14 +01:00
datatables.macro.html.twig Enhance KiCad integration: API v2, batch EDA editing, field export control (#1241) 2026-03-01 22:10:13 +01:00
history_log_macros.html.twig Include the query part of the request, when generating the url for the datatables via a custom twig function. 2024-10-16 23:57:02 +02:00
new_version.macro.html.twig Show a notification on homepage and server info page if there is a new version available. 2023-08-04 23:49:26 +02:00
projects.macro.html.twig Added a tab "Build" to project info page, where you can see how often you can build this project. 2023-01-18 23:07:51 +01:00
quick_links.macro.html.twig Show entity preview image on admin page 2023-02-05 20:00:11 +01:00
search.macro.html.twig Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
tree_macros.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00