Part-DB-server/templates/parts/lists
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
..
_action_bar.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
_filter.html.twig Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
_info_card.html.twig Fixed phpunit and phpstan issues 2026-02-15 00:49:12 +01:00
_parts_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
all_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
category_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
footprint_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
manufacturer_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
search_list.html.twig Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
store_location_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
supplier_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00
tags_list.html.twig Renamed parts/ templates folder to recommended snake_case style 2023-02-04 23:05:39 +01:00