stable

Clone or download

Read-only

feat: Improve search against project and history

Feedback from the field: * I have a project named "Brainstorming" * I search for "Search in trackers" * ➡️ Brainstorming matches (partial match with "in"), this seems weird 🤔 We might think that we would remove the partial match, but it will break the following scenario * I have many projects named "Enalean XXX" * I search for "ena" * ➡️ A partial match should be done so that I don't have to type the full word "Enalean" to quickly access to my projects. The proposal is the following: * If there is only one keyword, we do a partial match * Else we match the complete word Sum up table: Given a project is named "Lorem ipsum doloret" | keyword | match? | |-------------------|--------| | lo | ✔️ | | li | ❌ | | ipsum | ✔️ | | ipsum doloret | ✔️ | | ipsum in trackers | ✔️ | | lo in trackers | ❌ | We are not sure about the exact behavior we want but it should improve a little bit the UX. Part of story #26771: Index artifact fields (REST + Switch to) on updated artifacts only Change-Id: I8d9b072935b371f6ef1cf987fadafed23c632294

Modified Files

Name
M src/scripts/switch-to/src/helpers/is-matching-filter-value.test.ts +20 −0 Go to diff View file
M src/scripts/switch-to/src/helpers/is-matching-filter-value.ts +24 −7 Go to diff View file