Skip to main content

Module explore_view

Module explore_view 

Source
Expand description

Sectioned landing page mirroring Immich web’s Explore tab.

Four rows: People (round avatars), Recently Added (date tiles), Places (city tiles), Things (tag tiles). Tile clicks invoke caller-provided closures so dispatch lives in mod.rs.

StructsΒ§

ExploreViewParts
Contains references to individual grid widgets of the explore tab dashboard display.

ConstantsΒ§

INITIAL_TILE_COUNT πŸ”’
RECENTS_EXPANDED_COUNT πŸ”’

FunctionsΒ§

append_action_button πŸ”’
append_see_more_button πŸ”’
Append a card-sized β€œSee More” tile to a FlowBox grid.
append_show_less_button πŸ”’
Append a card-sized β€œShow Less” tile to collapse an expanded section.
build_explore_view
Construct the hierarchical panels and containers for the explore dashboard view.
build_people_section πŸ”’
Build a horizontal scrolled gallery row dedicated to recognized people circles.
build_tile_section πŸ”’
Build a flow grid section mapping image tiles for Places or Things category.
clone_parts_handles πŸ”’
Build a lightweight ExploreViewParts snapshot containing only the widget/handle references render_people needs, sharing the same Rc data with the original.
compute_epoch_seconds πŸ”’
explore_tile πŸ”’
Construct a rectangular tile representation for a specific explore category node.
format_relative_date πŸ”’
Format an ISO 8601 timestamp into a human-readable relative label.
has_cached_places
Check if places are already cached and render them without fetching.
heading πŸ”’
Helper to create a styled section heading label.
parse_iso_date πŸ”’
person_tile πŸ”’
Construct an individual circular avatar widget representing a recognized person face.
populate_explore
Populate explore sections: Things tiles + Recently Added tiles.
populate_people
Populate the round avatar buttons for recognized people in the dashboard section.
populate_places
Populate the city tiles representing locations in the places dashboard section.
render_cached_places
Re-render places from cache (used when navigating back to explore).
render_people πŸ”’
render_places πŸ”’
render_places_filtered πŸ”’
Re-render the places section applying the current search query.
render_recents_tiles πŸ”’
Render recently-added tiles into the recents grid.
set_people_search
Apply (or clear) the search filter on the people row. Pass an empty string to disable filtering. Caller drives this from the header-bar search entry when the Explore view is the active content stack child.
show_loading
Reveal each section with its spinner active, so the user gets immediate visual feedback that data is on the way. Each populate_* call clears its own spinner when results arrive.
spawn_asset_thumbnail πŸ”’
Helper to asynchronously request and bind an asset cover art thumbnail image.
spawn_person_thumbnail πŸ”’
Helper to asynchronously request and render a round avatar person face thumbnail.
stop_spinner πŸ”’
wire_people_filter
Wire the filter MenuButton popover. Called once after the explore view is built. on_change is invoked when a toggle flips so the caller can re-fetch with a different include_hidden flag if needed.

Type AliasesΒ§

ExploreClick πŸ”’
PersonClick πŸ”’