Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement component for displaying running totals in daily challenge #29099

Merged
merged 5 commits into from
Jul 26, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jul 26, 2024

Total pass count and cumulative total score, to be more precise.

2024-07-26.09-50-34.mp4

Total pass count and cumulative total score, to be more precise.
{
Id = 2,
Username = "peppy",
CoverUrl = "https://osu.ppy.sh/images/headers/profile-covers/c3.jpg",
Copy link

Choose a reason for hiding this comment

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

just passing by and very unrelated but this file doesn't exist anymore

Copy link
Collaborator Author

@bdach bdach Jul 26, 2024

Choose a reason for hiding this comment

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

There's a whole bunch of this in other tests too so I'd rather fix separately in one fell swoop.

Is there even a static URL for a cover that we can use for a test like this anymore? I was probably going to yoink something like https://assets.ppy.sh/user-cover-presets/1/df28696b58541a9e67f6755918951d542d93bdf1da41720fcca2fd2c1ea8cf51.jpeg randomly, is that gonna break?

Copy link

Choose a reason for hiding this comment

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

that one should be fine yeah. alternatively can put some static assets like osu-web's placeholder I guess (opening that link is not recommended)

@peppy peppy self-requested a review July 26, 2024 09:57
Comment on lines 29 to 33
/// <summary>
/// The cumulative total of all passing scores (across all users) in the playlist so far.
/// </summary>
[Key(2)]
public long TotalPlaylistScore { get; set; }
Copy link
Collaborator Author

@bdach bdach Jul 26, 2024

Choose a reason for hiding this comment

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

@peppy Slight naming nit but the class is named MultiplayerPlaylistItemStats because it was kinda designed to potentially be usable for standard playlists. So being hypercorrect this could probably be better named as TotalPlaylistItemScore, but not sure it's a huge deal.

Copy link
Member

Choose a reason for hiding this comment

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

Fair, are you okay with CumulativeScore instead to better clarify and remove redundant item part (see class name)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, works for me.

@bdach bdach added the next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! label Jul 26, 2024
@peppy peppy merged commit 1607075 into ppy:master Jul 26, 2024
8 of 9 checks passed
@bdach bdach deleted the daily-challenge/totals-display branch July 26, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:daily-challenge next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! size/L
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants