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

Tidy up results screen statistic item flow #23718

Merged
merged 4 commits into from
Jun 4, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Jun 1, 2023

Two preliminary changes here that I wanted to make before attempting to fix up the actual screen layout.

985604f Return StatisticItems rather than StatisticRows from ruleset

There were no usages of more than one column being provided per row, so it seemed like unnecessarily complexity. I'm currently trying to reduce complexity so we can improve the layout of the results screen, which currently has up to three levels of nested GridContainers.

Of note, I can't add backwards compatibility because the method signature has not changed in Ruleset (only the return type). If we do want to keep compatibility with other rulesets, we could designate a new name for the updated method.

dc595b8 Remove unused Dimension specification from StatisticItem

Doesn't look to have been ever used. Going forward the grid container which gets this assigned to it is likely to disappear. If the goal was to allow elements to specify their width, I am fine with that but we should add it back in a more limited fashion (maybe an enum specifying "full" or "half" width). Or just use the relative size provided on the StatisticItems instead.


Should probably hold off merging until after the next build so that rulesets can have a bit longer to prepare for required changes at their end. Would still appreciate review to make sure there's no issues with this direction.

  • Next release has happened

peppy added 2 commits June 1, 2023 14:25
There were no usages of more than one column being provided per row, so
it seemed like unnecessarily complexity. I'm currently trying to reduce
complexity so we can improve the layout of the results screen, which
currently has up to three levels of nested `GridContainer`s.

Of note, I can't add backwards compatibility because the method
signature has not changed in `Ruleset` (only the return type). If we do
want to keep compatibility with other rulesets, we could designate a new
name for the updated method.
bdach added 2 commits June 3, 2023 19:40
`dimensions` would always receive exactly one item, so might as well
inline it.

And yes, at this point the grid container is mostly a glorified
`FillFlowContainer { Direction = FlowDirection.Vertical }`, but I am not
touching that in this pull pending further decisions with respect to
direction.
@bdach
Copy link
Collaborator

bdach commented Jun 3, 2023

Can agree with all of this. I'm pretty sure I voiced this exact same opinion about the results screen at some point; making a good layout that will work on all resolutions is basically impossible with the current setup and layout.

Given the fact that the next release has been branched off, is it OK to tick the checkbox in the OP and merge, or do you want a second opinion from someone else?

@bdach
Copy link
Collaborator

bdach commented Jun 4, 2023

Given that the checkbox has been checked (and it wasn't me who did it), I'll take it that it is fine to move forward with this.

@bdach bdach merged commit d0167cb into ppy:master Jun 4, 2023
@peppy peppy deleted the tidy-results-grid-usage branch June 7, 2023 07:38
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.

2 participants