Part-DB-server/assets
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
..
ckeditor Fixed english translation for placeholder plugin and use more modern translation system 2025-10-17 17:57:34 +02:00
commands Enhance KiCad integration: API v2, batch EDA editing, field export control (#1241) 2026-03-01 22:10:13 +01:00
controllers Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
css Moved alerts and dialogs from unsupported bootbox to Sweetalert2 library 2026-06-21 14:21:01 +02:00
fonts/dompdf Added GNU unifont as fallback font for labels with CJK characters 2023-07-02 03:26:56 +02:00
helpers Translate Swal buttons 2026-06-21 15:10:39 +02:00
js Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
styles Updated symfony recipes. 2021-01-03 20:54:47 +01:00
themes Added brite bootswatch theme 2026-06-21 16:10:38 +02:00
tomselect Added a "unsaved changed" warning dialog for part, entity edits and system settings 2026-05-25 21:29:10 +02:00
controllers.json Removed the deprecated symfony/ux-toggle-password package by replacing it by our own local versions 2025-08-30 21:57:57 +02:00
stimulus_bootstrap.js Updated stimulus recipe 2025-11-30 15:07:59 +01:00
translator.js Move frontend translations to separate domain to reduce bundle size (#1197) 2026-01-18 18:50:38 +01:00
tsconfig.json Added an basic implementation of bootstrap-treeview in typescript 2022-08-06 03:40:24 +02:00