Any Tag alone searches the library, and Zim search does not offer it (#960)

On the search page, choosing Any Tag without a search string left the
Dashboard showing: the page, the Files results and the Files count all waited
for a search string or tag names.

Zim search has no "any tag" search, and its tag picker's Any button left no
filter applied, so the picker no longer offers it.  Zim and Other counts are
only requested when there is a search string or tag names to count by.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-11-11 19:42:48 -07:00 • committed by Roland
parent f1d344d8a2
commit 30b2bf6df0
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
7 changed files with 92 additions and 10 deletions

View file

@ -282,7 +282,8 @@ export const ZimSearchView = ({suggestions, loading}) => {
}
return <>
<TagsQuerySelector onChange={(i, j) => setTags(i)}/>
{/* Zim search filters by specific tags only; it has no "any tag" search. */}
<TagsQuerySelector showAny={false} onChange={(i) => setTags(i)}/>
{body}
</>
}