pub(crate) fn project_albums<'a>(
albums: &'a [LibraryAlbum],
current_user: &str,
query: &str,
sort: AlbumsSort,
) -> (Vec<&'a LibraryAlbum>, Vec<&'a LibraryAlbum>, Vec<&'a LibraryAlbum>)Expand description
Pure projection over the cached album list. Returns the (recent, owned,
shared) buckets that drive the three Albums-view rows after applying the
active search filter and sort mode. Extracted from render_albums so the
ordering rules can be unit-tested without GTK.