Search Channels by name in the Other search tab

The Other tab only listed Channels with the selected Tags, so typing a
Channel's name found nothing.  Channels now match the search text by name,
and the Tags when there are both.  The list and its estimate share one query.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-07 15:37:07 -06:00
parent 4bd86d3eb1
commit 52cf7a9520
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
9 changed files with 88 additions and 38 deletions

View file

@ -601,7 +601,7 @@ export function OtherSearchView({loading}) {
const [activeValues, setActiveValues] = React.useState(['channels', 'repos']);
const activeTags = searchParams.getAll('tag');
const searchStr = searchParams.get('q') || '';
const {channels, loading: channelsLoading} = useSearchChannels(activeTags);
const {channels, loading: channelsLoading} = useSearchChannels(activeTags, searchStr);
const {repos} = useSearchRepos(searchStr, activeTags);
if (loading || channelsLoading || channels === null) {