-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
[UI/UX] Filters dropdown in Library. Show only installed #3266
Conversation
"hide_non_available_games": "Hide non-available games", | ||
"ignore_hidden": "Ignore Hidden", | ||
"platform": "Platform", | ||
"show_all_games": "Show all games", |
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.
these are not needed anymore
|
||
const showNonAvailableTitle = showNonAvailable | ||
? t('header.hide_non_available_games', 'Hide non-available games') | ||
: t('header.show_available_games', 'Show non-Available games') |
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.
moving all the filters from here to LibraryFilters
grid-template-columns: 1fr min-content; | ||
grid-template-areas: | ||
'search search' | ||
'filters filters'; |
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 don't need to drop into a second row now that the filters
element is smaller
@@ -17,7 +15,7 @@ export default React.memo(function LibraryHeader({ | |||
handleAddGameButtonClick | |||
}: Props) { | |||
const { t } = useTranslation() | |||
const { category, showFavourites } = useContext(LibraryContext) | |||
const { showFavourites } = useContext(LibraryContext) |
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 don't have a single category anymore (I didn't like the word category
anyway haha), so the code that depended on this was removed
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 can't change the library title based on the category cause now they are composable, so removing this
That is looking pretty great. I will do some testing during the week :D |
Testing here. Overall looks good.
If those are too much we can improve it in another PR since most of the feature is working fine :) |
I implemented that if you don't select any platform it behaves like if all platforms are selected. Same with the stores, selecting none is like selecting all. To avoid that problem of users deselecting everything and then complaining haha. the third element seems to be a bug, I'll check that later today |
Just pushed a fix with the missing windows games with nothing selected. For the other two:
|
Sounds good, lets gather some feedback. i believe this one is ready to be merged since it is not breaking anything, so it can be on the next release. |
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.
LGTM
This PR fixes #1881 and adds a filter requested in discord (show only installed games).
Now all filtering options are grouped in a dropdown that shows up when clicking/hovering the
Filters
button.filters-dropdown.mp4
This makes the UI more consistent anda easier to maintain:
I also included 2 more fixes closely related:
Show Installed Only
filter that was requested many timesShow Favourites Only
filter was not composable (turning it on was ignoring all other filters)It should honor the older filtering configurations (so if a user was filtering only GOG, only GOG will be enabled in the new filters)
Note two changes:
Epic
/GOG
/etc in the library title instead ofAll Games
but that can't be done now cause we can toggle more than 1 store at a timeUse the following Checklist if you have changed something on the Backend or Frontend: