Part-DB-server/templates
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
..
admin Use new watchtower image in configuation example 2026-05-05 22:41:38 +02:00
attachments Allow file downloads and modals in HTML sandbox 2026-02-24 22:57:48 +01:00
bundles/TwigBundle/Exception Mention in docs and messages, that the env in docker-compose must not be quoted 2026-07-22 00:29:09 +02:00
components Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
form 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_providers Show the expensive tag in info providers list 2026-07-26 14:12:49 +02:00
label_system 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
log_system Fixed deprecations 2026-06-25 12:44:06 +02:00
mail Ensure that the Password reset link is generated on a trusted domain, and cannot be manipulated by an attacker by setting the host header 2026-07-19 23:05:02 +02:00
parts Implement extensive search (#1406) 2026-07-27 18:42:32 +02:00
projects Fixed stored XSS vulnerability in BOM Validation Service 2026-06-14 11:55:16 +02:00
security add data-tube=false to SAML auth button (#1308) 2026-03-11 11:28:09 +01:00
settings Add custom KiCad autocomplete list settings (#1342) 2026-04-15 00:01:00 +02:00
tools Merge branch 'master' into settings-bundle 2025-01-17 22:06:18 +01:00
users Show MCP endpoint url in api panel in user settings 2026-07-25 21:48:29 +02:00
_navbar.html.twig Allow to select which method should be used to in "Create from URL feature" 2026-05-02 23:23:20 +02:00
_sidebar.html.twig Allow to configure sidebar menu via the new settings system 2024-08-07 00:41:06 +02:00
_toast.html.twig Improved styling of a info level flash toast in darkmode 2023-07-03 22:01:39 +02:00
_toast_container.html.twig Fixed toast position on large screens 2023-02-06 22:47:41 +01:00
_turbo_control.html.twig Fixed flash messages in admin pages 2026-03-04 23:24:29 +01:00
attachment_list.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
base.html.twig Navigate only the content frame when submitting the global barcode scan label 2026-03-01 16:56:47 +01:00
helper.twig Add manual backup creation and delete buttons to Update Manager (#1255) 2026-03-07 19:31:00 +01:00
homepage.html.twig Mention in docs and messages, that the env in docker-compose must not be quoted 2026-07-22 00:29:09 +02:00
main_card.html.twig Added a very basic import dialog for Parts 2023-03-12 19:53:55 +01:00
vars.macro.twig Fixed old usages of base_currency 2024-08-03 23:19:09 +02:00