Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(search): clear search filters button (#2500)
gbirman1b8f9468fd7d
diff --git a/js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsx b/js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsxindex 50d8d51a45..0db1ce0ee9 100644--- a/js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/filters-bar/search-filter-controls.tsx@@ -147,6 +147,13 @@ export const SearchIndexFilter = () => {return active.length > 0 ? active[0].label : 'All';});+ const hasActiveIndex = () => activeIndex().length > 0;++ const clearFilters = () => {+ cacheChannelSubFilters(contentId, {});+ handleChange([]);+ };+return (<div class="flex items-center gap-1.5"><FilterSelect@@ -160,6 +167,15 @@ export const SearchIndexFilter = () => {<InChannelFilter /><FromSenderFilter /></Show>+ <Show when={hasActiveIndex()}>+ <button+ type="button"+ class="flex items-center px-1 py-1 text-ink-muted rounded-xs hover:bg-ink/5 hover:text-ink"+ onClick={clearFilters}+ >+ <XIcon class="size-3.5" />+ </button>+ </Show></div>);};