Return user profile link with ID matching topbar search query
What does this MR do?
Return user profile link with ID matching topbar search query
this does not expose any data that isn't visible on the profile anyways. came up in a product team discussion.
How confident are you it won't break things if deployed?
very.
How to test
you will need to either generate user profiles with ID of three or more digits, or temporarily modify the topbar to trigger earlier:
in client/src/components/Topbar/Search/Search.vue
adjust the if (query.trim().length > 2) {
line to > 1
or even > 0
.
then, enter ID search queries like "12". the search should return (among possible other matches) the profile for the user with ID 12 as result.
Screenshots
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
set a "for:" label to indicate who will be affected by this change -
use "state:" labels to track this MR's state until it was beta tested -
added an entry to CHANGELOG.md -
add a short text that can be used in the release notes -
not big enough for beta testing
Release notes text
Im globalen Suchfeld lassen sich nun auch Userprofile nach der Foodsaver-ID bzw. Foodsharer-ID auffinden. Das funktioniert genauso wie in den anderen Text-Suchfeldern: einfach die vollständige Zahl eingeben!