wpsharks / wp-kb-articles

KB Articles for WordPress; adds a new Custom Post Type.
http://wpkbarticles.com/
2 stars 1 forks source link

Show a "Clear Filter" button when filtering by tags #38

Closed raamdev closed 9 years ago

raamdev commented 9 years ago

When the article list is being filtered by one or more tags, it's impossible to know that a filter is being applied without first opening the "Filter by Tag" dropdown box.

For example, this view is being filtered by a tag, but you have no indication of that:

2015-01-16_22-35-30

Additionally, if I think some kind of filter is being applied, my instinctive reaction is to click on the selected category again (in this case, "Questions") in attempt to "clear" any filter that might be applied and just see a list of all "Questions".

However, clicking "Questions" does not do anything.

The only way I can clear the filter is to go into "Filter by Tag", click on the selected tags to unselect them, and then click the "Filter by Tags" button. That just feels very unintuitive. (I have to click "Filter by Tags" to remove the filter?)

2015-01-16_22-35-43

How this can be fixed

If we simply added a note with a "clear" button whenever the view was being filtered by tags, that would solve this issue nicely:

2015-01-16_22-45-22

raamdev commented 9 years ago

In fact, you could even replace the Search field with that message whenever the view is being filtered by Tag, i.e., make the search field only visible when no filter is being applied. That would save some space on the UI. It also makes sense, as filtering by tag is a type of "search", so replacing the Search box with a message about the view currently being filtered would make sense.

raamdev commented 9 years ago

Related to #39.

jaswrks commented 9 years ago

There have been several improvements to the styles and functionality associated with the Filter by Tag functionality and the other filters that one can apply while navigating the list and/or via URL formulations. I'm going to leave this open for now and let you close it after you've had some time to inspect the latest.

I updated zencache.com with the latest dev branch.

2015-01-19_02-47-19

raamdev commented 9 years ago

I played around with the new functionality a bit and it's fantastic. Great job implementing this!

Aside: At first I was concerned with how category filters are additive to other filters (i.e., you can filter by Category and Tag/Author/etc), but I realized after using the new interface for a bit that it makes total sense and it's not unintuitive. It especially makes sense if you consider that a common workflow when visiting the KB will likely be Tag → Category or Category → Tag.

Anyway, I just wanted to share that aside. I think the implementation is fantastic and I wouldn't change a thing!

jaswrks commented 9 years ago

Awesome! Thanks for testing this for me.