pub fn repo_toggle_for(repo: &str, app: &AppState) -> boolExpand description
What: Determine whether results from a repository should be visible under current toggles.
Inputs:
repo: Name of the repository associated with a package result.app: Application state providing the filter toggles for official repos.
Output:
truewhen the repository passes the active filters; otherwisefalse.
Details:
- Normalizes repository names and applies special-handling for EOS/CachyOS/Artix classification helpers.
- Unknown repositories are only allowed when every official filter is enabled simultaneously.