Skip to content

Add "osu! original" beatmap badge and search filter#12634

Open
Hiviexd wants to merge 4 commits intoppy:masterfrom
Hiviexd:osu-original-beatmap-badge
Open

Add "osu! original" beatmap badge and search filter#12634
Hiviexd wants to merge 4 commits intoppy:masterfrom
Hiviexd:osu-original-beatmap-badge

Conversation

@Hiviexd
Copy link
Copy Markdown
Member

@Hiviexd Hiviexd commented Dec 30, 2025

image

Resolves #9864.

The osu! original badge is prioritized over the FA one in terms of rendering because it'd be redundant given all original tracks are FA, alongside the limited beatmap card space.

Also made the explicit badge link to its relevant wiki page.

@iSlodinxOsu
Copy link
Copy Markdown

Not sure if this is also necessary but what if you add osu! originals button next to Featured Artist button as shown on the screenshot below

Screenshot_20251231_125539_Chrome.jpg

Maybe its easier for players to try to find their favorite osu! original song

@Hiviexd Hiviexd changed the title Add "osu! original" beatmap badge Add "osu! original" beatmap badge and search filter Dec 31, 2025
'title' => $beatmapset->title,
'title_unicode' => $beatmapset->title_unicode,
'track_id' => $beatmapset->track_id,
'is_exclusive_track' => $beatmapset->track?->exclusive ?? false,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just can't be here as it'll cause one additional query for each beatmapset

private function addExclusiveTracksFilter($query)
{
if ($this->params->showExclusiveTracks) {
$trackIds = ArtistTrack::where('exclusive', true)->pluck('id');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add another field to the es index instead of passing hundreds of id every time

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.

Proposal: Giving "osu! original" tracks the attention they deserve.

4 participants