From fd435d54f681e1cd11e40e417dab6c85980e6645 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 2 Aug 2026 23:29:04 +0000 Subject: [PATCH] =?UTF-8?q?B137=20=E2=80=94=20remove=20dead=20searchOnlyLi?= =?UTF-8?q?stOmnibox=20exports=20after=20org=20omnibox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/searchOnlyListOmnibox.ts | 34 +------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/src/lib/searchOnlyListOmnibox.ts b/src/lib/searchOnlyListOmnibox.ts index ef35f92b..23db977e 100644 --- a/src/lib/searchOnlyListOmnibox.ts +++ b/src/lib/searchOnlyListOmnibox.ts @@ -2,11 +2,7 @@ * Degenerate omnibox for lists that only expose free-text search (B128: * organizações). Pure / client-safe. */ -import { - filterOmniboxSuggestionSeeds, - type CampaignListOmniboxChip, - type CampaignListOmniboxSuggestion, -} from '@/lib/campaignListOmnibox' +import { type CampaignListOmniboxChip } from '@/lib/campaignListOmnibox' export type SearchOnlyListState = { q?: string @@ -23,9 +19,6 @@ export const buildSearchOnlyOmniboxChips = ( state: SearchOnlyListState, ): CampaignListOmniboxChip[] => (state.q ? [{ id: 'q', label: chipLabel('Busca', state.q) }] : []) -export const buildSearchOnlyOmniboxSuggestions = (query: string): CampaignListOmniboxSuggestion[] => - filterOmniboxSuggestionSeeds([], query) - export const applySearchOnlyOmniboxSuggestion = ({ state, suggestionId, @@ -41,28 +34,3 @@ export const applySearchOnlyOmniboxSuggestion = ( } return { kind: 'url', state } } - -export const removeSearchOnlyOmniboxChip = ({ - state, - chipId, - withPageReset, -}: { - state: T - chipId: string - withPageReset: (next: T) => T -}): SearchOnlyOmniboxAction => { - if (chipId === 'q') { - return { kind: 'url', state: withPageReset({ ...state, q: undefined }) } - } - return { kind: 'url', state } -} - -export const clearSearchOnlyOmnibox = ({ - cleared, -}: { - state: T - cleared: T -}): SearchOnlyOmniboxAction => ({ - kind: 'clear', - state: cleared, -})