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

chore(user): add data-* attrs to game awards for userscripts [V3.2.1] #1751

Merged
merged 2 commits into from
Aug 12, 2023

Conversation

wescopeland
Copy link
Member

@wescopeland wescopeland commented Aug 12, 2023

A few of the popular userscripts for the site depended on "seeing" the mastery dates statically rendered in the user profiles site awards. This no longer occurs because of the dynamic game cards not being initially available in the template.

To retain compatibility with these scripts, data-gameid and data-date attributes have been added to the wrapper div around each award. The date is presented in the same format it was displayed as in the static cards.

Screenshot 2023-08-12 at 8 37 16 AM

NOTE: I have communicated that the preferred solution is https://retroachievements-api-js.vercel.app/v1/users/get-user-awards.html.

@wescopeland wescopeland requested a review from a team August 12, 2023 13:09
@wescopeland wescopeland changed the title chore(user): add data-* attrs to game awards for userscripts chore(user): add data-* attrs to game awards for userscripts [V3.2.1] Aug 12, 2023
@Tsearo Tsearo merged commit 96e9f59 into RetroAchievements:master Aug 12, 2023
5 checks passed
@wescopeland wescopeland deleted the game-award-data-attrs branch August 12, 2023 14:51
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.

2 participants