-
-
Notifications
You must be signed in to change notification settings - Fork 480
Add option to hide games from the library #1228
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
Conversation
(configStore.get('games.recent') as Array<RecentGame>) || [] | ||
const recentGamesList = recentGames.map((a) => a.appName) as string[] | ||
|
||
return library.filter((game) => recentGamesList.includes(game.app_name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While coding this feature initially I used a similar method like this one so I included this refactor. The refactor is a small improvement (we don't need to initialize the store and query it for every callback function call) but I can remove it from this PR if it adds noise, since it's not really needed for this feature at the end.
Personally, I don't like the idea of having more text on the header. Using: what do you think? with that approach, we can add a Star or Heart to show/hide favorites as well. |
I can change that to try, what I'm worried about is that an eye icon doesn't make it obvious that it will show/hide hidden games. I imagine a user clicking the icon to see what happens, if they didn't hide any game nothing will happen. I guess the tooltip would give a hint if the user leaves the mouse hovering the icon long enough, but tooltips don't show up when using the controller to navigate heroic. Maybe I'm overthinking it xD |
Yes. Let's collect some feedback on the beta. 😀 |
@@ -93,6 +93,10 @@ | |||
border-bottom-right-radius: 0; | |||
} | |||
|
|||
.FormControl--segmented > button > svg { | |||
display: block; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the svg icons where not properly centered (svg images are inline by default and it was adding a few empty pixels under it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! :D
This PR adds a the ability to mark games from the library as
hidden
so they don't show up by default. This can be toggled on/off with the new checkbox.Games can be hid/unhid using the right click context menu.
You can see it working in this video with the game A Short Hike (second to last, bottom right)
hide-games.mp4
(The total games counter changes by more than 1 because I have other hidden games outside the viewport)
This I tried and was not happy with (but accept any feedback):
Show hidden
toggle instead of text, it didn't look clear at least to meHaven't tested with Unreal Market (I don't use it, I don't know if this is expected to work there too? I understand it works but I don't know if we should ignore this feature there).
Closes #948
Use the following Checklist if you have changed something on the Backend or Frontend: