You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, only one value can be selected in each filter category (i.e. only one format, one topic, one author and one source). We should make it possible to select multiple values from each category (e.g. filter for tutorials that match 3 topics).
Motivation
Combinations of filters make it easier to narrow the list to exactly what you're looking for
For topics in particular, I've often tried to use this feature (forgetting I haven't build it yet 🤣)
Approach
Convert filter category states from string values to array values
When a topic is clicked, add it to that filter category's array
To filter the list, we'll check if each item's filter values contains every item in the related filter arrays in state
While this would most useful for topics (and maybe useless for sources), I think we might as well enable this behaviour for all filter categories to be consistent.
If you have suggestions for how to improve this approach, feel free to share!
Related
#28 is also exploring how to improve the filter logic implementation.
The text was updated successfully, but these errors were encountered:
Summary
Currently, only one value can be selected in each filter category (i.e. only one format, one topic, one author and one source). We should make it possible to select multiple values from each category (e.g. filter for tutorials that match 3 topics).
Motivation
Approach
string
values toarray
valuesarray
While this would most useful for topics (and maybe useless for sources), I think we might as well enable this behaviour for all filter categories to be consistent.
If you have suggestions for how to improve this approach, feel free to share!
Related
#28 is also exploring how to improve the filter logic implementation.
The text was updated successfully, but these errors were encountered: