diff --git a/frontend/src/lib/components/AppShell.svelte b/frontend/src/lib/components/AppShell.svelte index 60f7d4a6..16a46cd1 100644 --- a/frontend/src/lib/components/AppShell.svelte +++ b/frontend/src/lib/components/AppShell.svelte @@ -400,7 +400,7 @@ let suggestBusy = $state(false); // Live count of active filter presets — drives the toggle button's badge // and its "filters applied" highlight. The shared store is also what the - // panel (below) and the files page's filter bar mutate. + // panel (below) and the /search page mutate. const filterActiveCount = $derived(activeFilterCount(resourceFilters)); let suggestTimer: ReturnType | null = null; // Stale-response guard (same family as the search page): the debounce @@ -420,7 +420,7 @@ // variant; these params don't need reactivity anyway. const parts = [`q=${encodeURIComponent(q)}`]; // Active filter presets ride along (`type=image&kind=file&…`) — the - // shared store is what the top-bar panel and the files page's bar + // shared store is what the top-bar panel and the /search page // mutate, so submitting from here carries exactly what the user sees. const filterQs = filterParamsToString(resourceFilters); if (filterQs) parts.push(filterQs); diff --git a/frontend/src/lib/components/FilterFields.svelte b/frontend/src/lib/components/FilterFields.svelte index 09084548..02ca19a9 100644 --- a/frontend/src/lib/components/FilterFields.svelte +++ b/frontend/src/lib/components/FilterFields.svelte @@ -2,11 +2,11 @@ The filter dimensions themselves (type / size / modified / created / kind / recursive), bound to the shared `ResourceFilterState`. - Extracted so the files page's filter bar and the top bar's filter panel - render the same fields off the same vocabulary — the option lists used to - live in two copies (SearchFilterBar and the /search page). The vocabularies - (extensions, byte bounds, date presets) stay in `$lib/utils/searchFilters`; - only the i18n labels live here. + Extracted so the top bar's filter panel renders the same fields off the + same vocabulary the /search page chips name — the option lists used to + live in several copies. The vocabularies (extensions, byte bounds, date + presets) stay in `$lib/utils/searchFilters`; only the i18n labels live + here. --> - -
-
-
- - - {#if keyword.length > 0} - - {/if} -
- -
- - {#if expanded} -
- -
- {/if} -
- - diff --git a/frontend/src/lib/stores/filter.svelte.ts b/frontend/src/lib/stores/filter.svelte.ts index 59e88236..c3eac6da 100644 --- a/frontend/src/lib/stores/filter.svelte.ts +++ b/frontend/src/lib/stores/filter.svelte.ts @@ -1,9 +1,9 @@ /** * Shared resource-filter state for the search-backed surfaces. * - * One module-level `$state` object is THE filter state: the files page's - * `SearchFilterBar`, the top bar's filter panel, and the /search chips all - * read and mutate this same proxy, and each surface projects it into its URL + * One module-level `$state` object is THE filter state: the top bar's + * search box and filter panel, and the /search chips all read and mutate + * this same proxy, and each surface projects it into its URL * (see `useFilterUrlSync`). Exported as a `const` — callers mutate fields, * never reassign, which is also what keeps every holder looking at the same * proxy. diff --git a/frontend/src/routes/files/[...path]/+page.svelte b/frontend/src/routes/files/[...path]/+page.svelte index 4b3fb795..563f55c8 100644 --- a/frontend/src/routes/files/[...path]/+page.svelte +++ b/frontend/src/routes/files/[...path]/+page.svelte @@ -75,7 +75,6 @@ batchZipName, type ActionTarget } from '$lib/composables/useResourceActions.svelte'; - import SearchFilterBar from '$lib/components/SearchFilterBar.svelte'; // Message-bus logger. Users can tune with // oxi.setLogLevel('oxi:message-bus', 'debug') @@ -451,7 +450,7 @@ } // ── Filter / search mode ───────────────────────────────────────────────── - // While any SearchFilterBar dimension is active the listing switches from + // While any filter dimension is active the listing switches from // the folder page (`fetchFolderPage`) to a scoped search (`searchResources` // with folder_id = currentId). The two data paths keep independent cursors // and stale guards; entering/leaving the mode neutralizes the other path's @@ -2012,15 +2011,8 @@ {/if} - -
- -
+