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

Improve results displays in daily challenge screen #28740

Merged
merged 5 commits into from
Jul 10, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jul 4, 2024

osu_2024-07-04_13-28-53

This is borderline two pulls in one and is a bit chunky as a result but I'm PRing in one go because I'm a bit tired of the ceremony at this point. Will split on request (by commits).

The deets:

Add results screen for displaying arbitrary daily challenge scores

At this point its primary usage is the daily challenge event feed (click the "xxxx points" text to show the score), but the leaderboard will be using this too shortly.

Because the playlists results screen that exists in master is hard-coupled to showing the local user's best result on a given playlist by way of hard-coupling itself to the relevant API request, allowing show of arbitrary score by ID requires a whole bunch of subclassery as things stand. Oh well.

Class naming is... best effort, due to the above.

Replace old bad daily challenge leaderboard with new implementation

  • Actually shows scores rather than playlist aggregates (which are useful... in playlists, where there is more than one item)
  • Actually allows scores to be shown by clicking on them
  • Doesn't completely break down visually on smaller window sizes

The general appearance is not as polished as the old one in details but I wanted something quick that we can get out by next weekend.

Also includes the naive method of refetching scores once a new top 50 score is detected. I can add a stagger if required.

At this point I'd personally generally say that we can end here for an initial release of this feature by whenever next release happens (tentative date is end of next week?), but am open to feedback if there is opposition.

bdach added 3 commits July 4, 2024 13:45
At this point its primary usage is the daily challenge event feed, but
the leaderboard will be using this too shortly.

Because the playlists results screen that exists in `master` is
hard-coupled to showing the *local user's* best result on a given
playlist by way of hard-coupling itself to the relevant API request,
allowing show of *arbitrary* score by ID requires a whole bunch of
subclassery as things stand. Oh well.

Class naming is... best effort, due to the above.
- Actually shows scores rather than playlist aggregates (which are
  useful... in playlists, where there is more than one item)
- Actually allows scores to be shown by clicking on them
- Doesn't completely break down visually on smaller window sizes

The general appearance is not as polished as the old one in details but
I wanted something quick that we can get out by next weekend.

Also includes the naive method of refetching scores once a new top 50
score is detected. I can add a stagger if required.
@peppy peppy self-requested a review July 4, 2024 15:10
@peppy
Copy link
Member

peppy commented Jul 8, 2024

@bdach can you check on tests here? i think they need a fix

@peppy
Copy link
Member

peppy commented Jul 9, 2024

This is feeling pretty good.

One thing I noticed is that clicking a score from the event feed then hitting back will return to the main menu rather than the daily challenge screen.

Update: on a second try I couldn't make this happen again... although after viewing results the event feed did empty out which felt a bit weird.

Copy link
Member

@peppy peppy left a comment

Choose a reason for hiding this comment

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

Code wise I don't really have any qualms. Just one issue with results presentation.

Copy link
Member

@peppy peppy left a comment

Choose a reason for hiding this comment

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

Let's get in and keep move forward

@peppy peppy merged commit cd9973b into ppy:master Jul 10, 2024
14 of 17 checks passed
@bdach
Copy link
Collaborator Author

bdach commented Jul 10, 2024

Update: on a second try I couldn't make this happen again...

I can't make this happen either.

although after viewing results the event feed did empty out which felt a bit weird.

Well this is sort of intentional, each event is only supposed to stay on screen for a set amount of time once shown and other screens being pushed don't really affect that in any capacity.

@bdach bdach deleted the daily-challenge/better-results branch July 10, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants