Sorting / Filtering
olaris-react#49 is blocked as there's no filtering available on the server yet.
So part of the bigger picture related to #256:
Sorting
New Functionality
I propose the addition of a GraphQL query to return all the sorting options for a type and return:
- actual value to pass to the appropriate query (eg
releaseDate
that gets passed to themovies
query) - proper label (eg "Release Date")
This means no code needs to be updated on the frontend clients as the server gains new sorting options, just spit out a list from the query to a dropdown and pass that value to the query and voila.
New Value Types
Based on what is already stored for movies I'd like to see sorting by:
- Date Added
- Date Watched
- Resolution
- Length
For series:
- Unwatched episode count
- Date Added
- Date Watched (this would be in order of the last time a single episode was watched)
- Number of episodes
Filtering
Currently don't have filtering so this would be new functionality (already brought up in #256).
The big draw here for now is for those with large libraries, even with sorting it can be cumbersome. So being able to limit based on some criteria is nice, for browsing and just picking something.
Starting filters for movies:
- Duplicates (for matching woes / just visibility to delete on your filesystem)
- Resolution (eg only 4k / 1080p etc)
- Watched / Unwatched
- In Progress
TV Filtering is less of an issue until we get more metadata like genre, network, rating etc.
So would like to see more metadata stored / queryable (see #170) which could all be added to sorting / filtering eventually.
And as always, happy to hear thoughts / discuss.