-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
[Feature] Add custom user-defined game categories #1428 #3115
[Feature] Add custom user-defined game categories #1428 #3115
Conversation
I'm worried about the |
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.
We probably want to add a button in the 3 dots menu in the game page to open the same Categories dialog
Could you also add runner for each game? To avoid issues when the same appid is found in another store, as we plan to extend Heroic to more integrations eventually |
Something weird happens with the focus when I use a mouse to control the UI, when I focus the category it goes transparent so I can't see the content, pressing Adding a category to a game with the controller also loses the position of the current focus cause the element disappears and the next movement starts from an un-focused state which is not great. Pressing A does nothing when focusing the categories.mp4Maybe using checkboxes and labels fixes these issues? we already have the toggle component that we use in the settings and it's controller friendlier. We could have:
|
@lgcavalheiro what is the current state of this PR? are you gonna fix the other comments or should we assume it? I think there is just a few small things to improve and one conflict to fix as well :) |
@flavioislima sry for the hiatus, got busy with work and college these past few weeks, i'll be resuming work on this PR this week. |
No problem! 👍 |
Hi folks, fixed the issues mentioned, here's how this feature is looking at the moment: finalforpr_2.webm
Exemple of new customCategories in store/config.json: "customCategories": {
"2D": [
"1dea8a6ddb544842a58e4b5c8675ff58_legendary",
"amzn1.adg.product.4a10b5b0-d498-4a74-8053-e31f665dc82c_nile"
],
"Action": [
"1dea8a6ddb544842a58e4b5c8675ff58_legendary",
"amzn1.adg.product.4a10b5b0-d498-4a74-8053-e31f665dc82c_nile",
"Petunia_legendary",
"1133514031_gog"
]
} |
@lgcavalheiro those are really nice improvements, thanks for that. Latest issues are just related to layout on small windows, like this: Maybe creating another row could fix that. we should have a media query for that. |
@flavioislima got a basic layout fix going for smaller screens, see if it's better now (didn´t really know how much i should pay attention to responsiveness, since it's a desktop application and stuff, sry): finalforpr_3_trimmed.webm |
In this PR #3266 I'm moving all the filter into a I also think we have to make some decisions:
What I mean is that maybe we can improve the small screens design when both things are merged and those decisions are made. I think we should merge this and #3266 after the 2.10.1 release (that should be mostly bugfixes). |
@arielj I did a quick local merge of your PR with mine and having the categories selector by the filters button made the UI look much cleaner indeed :D About supported widths, my 2 cents would be supporting a minimum between 758px (lowest width i could observe in which Heroic still looks good and nothing is visibly breaking) and 960px (half width of a FHD monitor) |
@lgcavalheiro my PR was just merged if you want to update this one against |
Hi guys i just finished merging and manually testing stuff to be sure everything is working ok, the merge process was a bit messy so i'd recommend double-checking just to be sure @arielj @flavioislima On a side note: do you think the search bar suggestions should take the filters into consideration when searching for games? Right now it is not: finalforpr_4.webm |
That is a pretty good question. I imagine the following scenario, for instance. |
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.
Tested everything here and it is working pretty fine.
Thanks a lot for adding this feature to Heroic and I believe it is safe to be on the next release ⚔️ 🛡️
<--- Put the description here --->
This should close or partially satisfy #1428
This is a very simple system for creating custom categories and adding/removing games to them, similar to how hidden and favorites work.
On the category settings modal, when a category is assigned to the game, clicking on the "X" will remove that game from the category, when a category is in the
available categories
section, clicking the body of the chip will assign the game to the category, clicking on the "X" will delete the category.On the library view there's now a dropdown selector to filter games by a category, this filter also stacks with the hidden and platform filters.
Video demonstration:
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/assets/10094385/856f5575-02a8-49cc-a727-b2b4df4b2f30
Sample of
store/config.json
:Use the following Checklist if you have changed something on the Backend or Frontend: