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

[UX] Prefer using release dates from each runner #3446

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

imLinguin
Copy link
Member

Now we'll use release dates obtained from each runners API. We were already making a requests to obtain a store URL for example, so I just re-used that.

I skipped that for Amazon for now...
We have each game's release for each entry in nile's library.json, we'd probably need to include that data in GameInfo object.

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@imLinguin imLinguin added the pr:ready-for-review Feature-complete, ready for the grind! :P label Jan 16, 2024
@imLinguin imLinguin requested review from a team, arielj, flavioislima, CommandMC, Etaash-mathamsetty and Nocccer and removed request for a team January 16, 2024 20:05
Comment on lines +106 to +108
const releaseDate = data?._embedded.product?.globalReleaseDate?.substring(
0,
19
Copy link
Member Author

Choose a reason for hiding this comment

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

substring here ensures we ommit the timezone, it creates confusing things.

e.g 1980-01-01T00:00:00+02:00 - if we didn't ignore the timezone the date might turn out to be invalid in this context: 1979-12-31

Copy link
Member

@flavioislima flavioislima left a comment

Choose a reason for hiding this comment

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

LGTM

@imLinguin imLinguin merged commit 55ea427 into main Jan 23, 2024
9 checks passed
@imLinguin imLinguin deleted the improv/release_date branch January 23, 2024 20:43
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants