diff --git a/frontend/src/routes/SearchFilterBar.svelte b/frontend/src/routes/SearchFilterBar.svelte index 779ab8f3..4817d0c6 100644 --- a/frontend/src/routes/SearchFilterBar.svelte +++ b/frontend/src/routes/SearchFilterBar.svelte @@ -3,7 +3,6 @@ import PersonTypeahead from '$lib/person/PersonTypeahead.svelte'; import TagInput from '$lib/tag/TagInput.svelte'; import DateInput from '$lib/shared/primitives/DateInput.svelte'; import SortDropdown from '$lib/shared/primitives/SortDropdown.svelte'; -import SmartModeToggle from './search/SmartModeToggle.svelte'; import { slide } from 'svelte/transition'; import { m } from '$lib/paraglide/messages.js'; @@ -21,15 +20,12 @@ let { sort = $bindable('DATE'), dir = $bindable('desc'), showAdvanced = $bindable(false), - smartMode = $bindable(false), initialSenderName = '', initialReceiverName = '', navKey = 0, isLoading = false, onSearch, onSearchImmediate, - onSmartSearch, - onModeToggle, onfocus, onblur }: { @@ -46,28 +42,16 @@ let { sort?: string; dir?: string; showAdvanced?: boolean; - smartMode?: boolean; initialSenderName?: string; initialReceiverName?: string; navKey?: number; isLoading?: boolean; onSearch: () => void; onSearchImmediate?: () => void; - onSmartSearch?: () => void; - onModeToggle?: () => void; onfocus?: () => void; onblur?: () => void; } = $props(); -// In smart mode the keyword search must not fire on every keystroke — the NL -// query is submitted only on Enter (or an explicit button click). -function onSearchKeydown(event: KeyboardEvent) { - if (smartMode && event.key === 'Enter') { - event.preventDefault(); - onSmartSearch?.(); - } -} - // Plain (non-reactive) flag — not $state, so no reactive assignment inside $effect let sortDirMounted = false; @@ -92,19 +76,13 @@ $effect(() => { -