[#70191] Allow searching for work package types and status when selecting work package for time entries
Ticket
https://community.openproject.org/work_packages/70191
What are you trying to accomplish?
I want to allow the same search and filter (type, status, meta status, project name) capabilities when picking a work package
- [x] to book time on
- [x] to add to board
- [x] to create relations, parent or child
- [x] to filter on work package IDs
- [x] Don't filter on loaded data but always use the backend's full capabilities (Oliver Günther Specially about this part I would love to know your opinion)
- [x] to add to meeting agenda
- [x] to filter cost reports
We already have this in the global search and when hash mentioning a work package. Users get used to it and miss it in the other places.
What approach did you choose and why?
This PR replaces the subjectOrId filters by typeahead filters which comes with more user friendly capabilities.
When filtering work packages by ID, the filter's frontend component allowed to search by subject or ID. And when the data set was already loaded to the frontend, it did search directly on the loaded data, as it does for other attributes. As I want the user to have all the typeahead features also in that situation, I added an exception so that it now will still use the backend for the typeahead logic. I am not sure if that has stronger performance implications as I don't know why that exactly it was built like this in the first place.
Merge checklist
- [x] Added/updated tests
- [x] Added/updated documentation in Lookbook (patterns, previews, etc)
- [ ] Tested major browsers (Chrome, Firefox, Edge, ...)
[!CAUTION] The provided work package version does not match the core version
Details:
- Work package URL: https://community.openproject.org/work_packages/70191
- Work package version: not set
- Core version: 17.1.0
Please make sure that:
- The work package version OR your pull request target branch is correct