From da58bb382e6dc24da58c46c4df182983ec3a011e Mon Sep 17 00:00:00 2001
From: Philipinho <16838612+Philipinho@users.noreply.github.com>
Date: Mon, 24 Aug 2026 21:19:58 +0100
Subject: [PATCH] feat: show secondary search filters only when applied
Created by and Labels now stay hidden until they hold a value; a Filter
button at the right end of the bar lists the hidden ones and opens the
picked filter's dropdown immediately.
---
.../search/components/creator-filter-menu.tsx | 13 ++-
.../search/components/label-filter-menu.tsx | 6 ++
.../components/search-spotlight-filters.tsx | 102 ++++++++++++++----
3 files changed, 99 insertions(+), 22 deletions(-)
diff --git a/apps/client/src/features/search/components/creator-filter-menu.tsx b/apps/client/src/features/search/components/creator-filter-menu.tsx
index 059422a91..fba152d9b 100644
--- a/apps/client/src/features/search/components/creator-filter-menu.tsx
+++ b/apps/client/src/features/search/components/creator-filter-menu.tsx
@@ -21,6 +21,8 @@ type CreatorFilterMenuProps = {
| "top-end"
| "top";
zIndex?: number;
+ opened?: boolean;
+ onOpenChange?: (opened: boolean) => void;
};
export function CreatorFilterMenu({
@@ -30,6 +32,8 @@ export function CreatorFilterMenu({
width = 280,
position = "bottom-end",
zIndex,
+ opened,
+ onOpenChange,
}: CreatorFilterMenuProps) {
const { t } = useTranslation();
const [searchQuery, setSearchQuery] = useState("");
@@ -46,7 +50,14 @@ export function CreatorFilterMenu({
const users: IUser[] = (suggestion?.users as IUser[]) ?? [];
return (
-