Skip to content

Filter Browse view by owned maps#36732

Open
nVitius wants to merge 6 commits intoppy:masterfrom
nVitius:feat/filter-owned
Open

Filter Browse view by owned maps#36732
nVitius wants to merge 6 commits intoppy:masterfrom
nVitius:feat/filter-owned

Conversation

@nVitius
Copy link

@nVitius nVitius commented Feb 22, 2026

I ran into this use-case when trying to find a map that I had played before but did not have installed.

I've added a couple unit tests to support the feature I implemented.

Closes #15727

…lled locally

I ran into thie use-case when trying to find a map that I had played before, but did not have installed.
To support this, we're using the existing `BeatmapManager.IsAvailableLocally` to filter the API response.
It's possible for this to cause a page to be empty after the filter is applied,
so we also try to catch that case and "auto-fetch" the next page when necessary.
@peppy peppy self-requested a review February 23, 2026 08:12
@peppy
Copy link
Member

peppy commented Feb 23, 2026

Please also read through #15727 which contains some commentary from me regarding this implementation.

@nVitius
Copy link
Author

nVitius commented Feb 23, 2026

@peppy

Thanks for the review and comments. I think I've addressed them all.

After reading the issue you linked, I understand that the concern with the implementation of this is that there's no bounding on the fetching, since we continue until cursor exhaustion. Potentially this could lead to way too many requests to the API. We could:

  • Add a hard cap on internally auto-fetched filtered-empty pages
  • If cap is hit, show a small hint (“Too many downloaded results hidden; refine search”).
  • Optionally, we could add a "Load More" button that would allow the user to continue (this might be a good compromise).

Let me know if you think that's a good approach and if you have thoughts on what the cap should be.

@nVitius nVitius requested a review from peppy February 28, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to hide already-downloaded beatmaps from beatmap listing

2 participants