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

feat(game): make some minor ux adjustments #1441

Merged
merged 10 commits into from Apr 8, 2023

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Mar 19, 2023

This PR makes a handful of tiny adjustments to the game page UX. The majority of these are targeted at mobile, though some impact all breakpoints.


  • If a breadcrumb is going to line break, it is automatically moved to the next line.
  • Breadcrumbs now have a slightly increased line-height.

These changes largely only impact mobile.

BEFORE
Screenshot 2023-03-19 at 9 51 46 AM

AFTER
Screenshot 2023-03-19 at 9 52 10 AM


  • Console names are now separated from game names.

The idea is in a subsequent PR, console icons from #1432 can also be added for design uniformity.

BEFORE
Screenshot 2023-03-19 at 9 53 35 AM

AFTER
Screenshot 2023-03-19 at 9 54 14 AM


  • Game metadata no longer uses a table layout.

This makes the content much more readable on mobile displays. Desktop is largely unaffected.

BEFORE
Screenshot 2023-03-19 at 9 55 05 AM

AFTER
Screenshot 2023-03-19 at 9 55 14 AM


  • On mobile, screenshots now span the entire width of the screen rather than having dead margin space on the edges.

BEFORE
Screenshot 2023-03-19 at 9 56 11 AM

AFTER
Screenshot 2023-03-19 at 9 56 28 AM


  • On mobile, achievement progress bars are now full-width rather than using a hard-coded width which doesn't span the row.
  • The copy underneath the progress bars has been slightly tweaked to include number separators (X,XXX) and to change "(N%) players" to "N% earn rate". The percentage has been removed from parens to reduce ambiguity with the hardcore parens number on the previous line of the copy.

BEFORE
Screenshot 2023-03-19 at 9 57 57 AM

AFTER
Screenshot 2023-03-19 at 9 57 10 AM


  • On mobile, recent comments no longer has a line break on the hyperlink.

BEFORE
Screenshot 2023-03-19 at 10 03 26 AM

AFTER
Screenshot 2023-03-19 at 10 03 41 AM


  • The game's progress bar now no longer displays if the user has no progress for the game.

It is redundant given the label "You have not earned any achievements for this game" is already on the screen.

BEFORE
Screenshot 2023-03-19 at 10 07 14 AM

AFTER
Screenshot 2023-03-19 at 10 07 21 AM


  • On mobile, the game progress bar has been relocated to be closer to the achievements and now stretches the full width of the screen.

BEFORE
Screenshot 2023-03-19 at 10 08 09 AM

AFTER
Screenshot 2023-03-19 at 10 08 26 AM


  • Active claims metadata now additionally displays a relative date for when the claim will expire (or how long ago it was since the active claim expired).

BEFORE
Screenshot 2023-03-19 at 10 10 04 AM

AFTER
Screenshot 2023-03-19 at 10 10 10 AM


  • If there are no leaderboards for a game, the "why not suggest some" label now links to the game's forum topic.

BEFORE
Screenshot 2023-03-19 at 10 10 53 AM

AFTER
Screenshot 2023-03-19 at 10 11 01 AM

@Soulsderfuchs
Copy link

Soulsderfuchs commented Mar 19, 2023

I have an issue with

On desktop, game screenshots fill their divs and have an extremely subtle 4px corner radius.

and this is a retroactive issue and not on newer screenshots after this change. The fact is these screenshots are bad ratio because they are bad screenshots that need replacing, This change would not only obfuscate the screenshots that are in clear need of replacing inturn leting them stay that way longer but also would make them look even worse when trying to upscale them to their proper counterparts that are correctly scaled.

So I think this change is bad for the overall quality of the site as is and would make the site clean up job harder.

A suggestion I could think of would be that newer screenshot uploads would downsize to a div size properly and every scheenshot thereafter would stay consistent, but retroactively leaving the bad size images alone so they are clearly visable as sign to fix them.

@wescopeland
Copy link
Member Author

wescopeland commented Mar 19, 2023

The fact is these screenshots are bad ratio because they are bad screenshots that need replacing, This change would not only obfuscate the screenshots that are in clear need of replacing inturn leting them stay that way longer but also would make them look even worse when trying to upscale them to their proper counterparts that are correctly scaled.

Thank you for your feedback. I understand your concerns about the impact of this change on the overall quality of the site.

Regarding the bad ratio of some screenshots, I agree that they need to be replaced. How do you detect bad screenshots currently? Visual observation?

I think this change is bad for the overall quality of the site

The argument I'm reading is this:

is better than this:

I don't think these particular reservations should prevent us from improving the overall design consistency of the site. My perception is while this change could raise the floor for how hard it is to detect bad-ratio screenshots for the purposes of site cleanup, it also raises the floor of UX for that section to everyday users.

If there is currently no good way to detect bad-ratio screenshots, we should discuss building that and adding validation for newly uploaded screenshots in a separate issue. I would be more than happy to help out with this.

Edit: I have started a discussion for this here.

@wescopeland
Copy link
Member Author

Had a good discussion with @Soulsderfuchs here. The plan is to rip out the image scaling changes from this PR and open a separate PR for validating those game images. The scaling changes will be included in that PR.

@Soulsderfuchs
Copy link

Had a good discussion with @Soulsderfuchs here. The plan is to rip out the image scaling changes from this PR and open a separate PR for validating those game images. The scaling changes will be included in that PR.

This sound great!, thank you for the friendly discussion on the matter, this would solve my original issue that I brought up.

@wescopeland
Copy link
Member Author

wescopeland commented Mar 19, 2023

The image auto-scaling changes for desktop have been removed. They will resurface in a PR which also adds upload validation for those images, per discussion here.

app_legacy/Helpers/render/comment.php Show resolved Hide resolved
public/gameInfo.php Outdated Show resolved Hide resolved
@Jamiras
Copy link
Member

Jamiras commented Mar 20, 2023

Noticed an oddity on the user page:
image

@wescopeland
Copy link
Member Author

Noticed an oddity on the user page

Great catch, addressed by 9bbc4af.

@Jamiras
Copy link
Member

Jamiras commented Mar 20, 2023

Noticed an oddity on the user page

Great catch, addressed by 9bbc4af.

Still seeing the same behavior.

@wescopeland
Copy link
Member Author

Still seeing the same behavior.

You're right - my mistake. I believe this was a PurgeCSS issue caused by me using string concatenation for a Tailwind classname. I was seeing the problem resolved while in dev mode, but it reappeared after doing a full build.

I've made a more assertive change to resolve the issue in ab861aa.

Copy link
Member

@Jamiras Jamiras left a comment

Choose a reason for hiding this comment

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

Can't speak to mobile, but desktop seems to be working fine.

@Jamiras Jamiras merged commit b6eca08 into RetroAchievements:master Apr 8, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants