Skip to content

[UX] Update order in library when an install starts #3523

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

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

arielj
Copy link
Collaborator

@arielj arielj commented Feb 5, 2024

This PR fixes #2001

We have code to sort games by: installed > installing > not installed, but when an installation starts it's currently not being sorted unless a re-render is triggered.

This PR fixes that.

To test this you can start installing a game and the card doesn't move to the top, then change to another screen, go back to the library and it's now sorted.


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)

@arielj arielj added the pr:ready-for-review Feature-complete, ready for the grind! :P label Feb 5, 2024
@arielj arielj requested review from a team, flavioislima, CommandMC, Etaash-mathamsetty, Nocccer and imLinguin and removed request for a team February 5, 2024 03:36
.filter((st) => st.status === 'installing')
.map((st) => st.appName),
[libraryStatus]
)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replaced useState with useMemo to make it simpler

also removed the type since it's already inferred anyway, removes one import

@flavioislima flavioislima added this to the 2.13.0 milestone Feb 5, 2024
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.

Tested here and works and looks good 👍🏽

@arielj arielj merged commit 328a066 into main Feb 6, 2024
@arielj arielj deleted the order-installing branch February 6, 2024 19:47
@Heroic-Games-Launcher Heroic-Games-Launcher locked and limited conversation to collaborators Feb 6, 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.

Current game being installed sometimes gets reordered in the library
2 participants