The current behavior shows the number of open/closed issues (and open/merged/closed pulls) in the repo in its entirety, even when searching. This behavior is however not consistent with other git forges
Proposed change and why#
This should ideally show the count of relevant search results, since this would help at a glance figuring out whether I need to refine my results, how relevant the query is within the repo, and also understand whether or not there was a "fluke" in the search query (whether the search query worked or there was a bug in rendering). Adding this makes the UX feedback pattern explicit
Proposed implementation#
Update these files to make the counts dependent on the context:
appview/pages/templates/repo/issues/issues.htmlappview/pages/templates/repo/issues/fragments/issueListing.htmlappview/pages/templates/repo/pulls/pulls.html