Brisqi / issue-tracker

8 stars 0 forks source link

Ability to search for label to filter with #28

Open dormerod opened 2 years ago

dormerod commented 2 years ago

Re to #26...

Once the user has enough labels, the Search board... feature could be better if it filtered the list of labels as the user typed. This would allow a user to:

  1. click on a label to filter the board by those with the label (current functionality anyway), or
  2. click or hit enter to filter the board by cards including the typed text (as described in more detail for the first suggestion in #26).
ashgrover commented 2 years ago

@dormerod Thanks for the suggestion. I have mixed views about this one.

When I was implementing search feature for cards, I made it so that search results are displayed in a single list in the search popup view. This is so that a user doesn't have to scroll the board to the right or left if they have lot of lists/cards in a board. I consider "searching" a bit different than "filtering". Searching is often looking for a single card where as filtering can consist of one or more cards(ex. label filters) so I prefer showing search results in a single list form rather than filtering the board by the typed text.

That being said, currently the search feature shows all the labels in the search popup view so that a user can click on them and filter the board. I can look into displaying both filtered labels and search results in the search popup view when a user types something in the search box. That way a user can filter the board by the label if they want to, and they can also see the search results at the same time.

I do plan to make some changes to the search interface while keeping simplicity in mind. This feature will included as part of that revamp.

Thanks again.

dormerod commented 2 years ago

I can look into displaying both filtered labels and search results in the search popup view when a user types something in the search box. That way a user can filter the board by the label if they want to, and they can also see the search results at the same time.

That sounds like a good compromise. Thanks Ash.