Skip to main content

Module search_view

Module search_view 

Source
Expand description

Dedicated search view for the library sidebar.

The search form is a persistent Revealer that sits above the content_stack. When search is active the form stays visible and results render in the normal masonry grid below it. This avoids the “search bar disappears” problem while keeping a single grid renderer.

Structs§

SearchViewParts
UI widgets for the dedicated search form.

Functions§

build_action_row 🔒
build_filter_panel 🔒
Assemble all filter groups into a revealer.
build_search_bar 🔒
build_search_view
Build the search form widget tree.
clear_all_filters
Reset all filter widgets to their default (empty) state.
collect_filters
Collect all filter widget values into a MetadataSearchFilters.
connect_filter_toggle 🔒
Wire the toggle button to show/hide the filters revealer.
normalise_iso_date
Normalise a user-entered date to ISO 8601 UTC. Accepts bare YYYY-MM-DD or full RFC 3339.
opt_string
Convert a non-empty trimmed string to Some, otherwise None.
opt_true 🔒
wrap_in_scrolled_revealer 🔒