-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Conversation
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.
@bdach can you check on tests here? i think they need a fix |
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. |
There was a problem hiding this 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.
There was a problem hiding this 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
I can't make this happen either.
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. |
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
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.