Add filtering/sorting for labels on labels page
Problem to solve
Right now, it's not possible to filter for and sort the labels list shown on the labels page. I might be interested in last created, last edited, subscribed, … labels.
For subscribed labels, I currently only see an alternate button text "Unsubscribe" which is hard to differentiate.
Let's add filter and sorting forms to allow for searching via label name and sort via Name, last created, last updated, oldest created, oldest updated. In addition, we should add a sorting option to show labels I am subscribed to first. Attached screenshot from project dashboard for reference.
Changes to be made:
- add a dropdown for sorting
- the dropdown has the ascending/descending switch, inspired by Pedro's suggestion
- add the 'Sort by' label left of the sorting dropdown
- inside the dropdown, the 'Show' section is separated with a divider and is 'All' checked by default.
We will revisit filtering of labels as a separate issue where we'll try to find a consistent and holistic solution for all filtering cases.