Show matched alias in navbar search preview#3922
Conversation
Test results 13 files 13 suites 24m 45s ⏱️ Results for commit c38bc8c. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3922 +/- ##
=======================================
Coverage 63.97% 63.98%
=======================================
Files 627 627
Lines 46348 46362 +14
Branches 43 43
=======================================
+ Hits 29653 29665 +12
- Misses 16685 16687 +2
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
lunkwill42
left a comment
There was a problem hiding this comment.
This looks good to go IMHO.
If I have to nitpick (and I will): I subscribe to the stepdown rule, (where it can be applied within the constraints of the programming language in use): The _find_matching_alias() function is a much lower-level concept then the high-level search provider concepts in the file, so it should be defined much further down in the file (I actually trained my Claude Code to adhere to this so I don't have to nitpick it whenever I asked Claude to produce something 😆 )
Not a show-stopper, though...
| ) | ||
|
|
||
|
|
||
| def _find_matching_alias(aliases, query): |
There was a problem hiding this comment.
I think this should find all matching aliases. I know that it is quite an edge case where two aliases (or more) match an entered query, but if it matches multiple aliases then all should then be shown in the dropdown
865a7bd to
c38bc8c
Compare
c38bc8c to
54ac1fa
Compare
|




Scope and purpose
Fixes #3880.
When rooms/locations are found via alias search, the matched alias is now displayed (highlighted) in the navbar search preview, so users can see why a result appeared.
This pull request
highlighttemplate filter for wrapping query matches in<mark>tagsSearchResultto carry an optional matched aliasScreenshots
Contributor Checklist
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.