ClimateTown / knowledge-hub

Your one-stop shop in the fight against climate change, containing important climate resources you wish you knew about yesterday.
https://hub.climatetownproductions.com
Creative Commons Attribution 4.0 International
36 stars 26 forks source link

[BUG] Text search and filter search not independent in UI #365

Open VeckoTheGecko opened 10 months ago

VeckoTheGecko commented 10 months ago

Describe the bug Free text search and filter tag search operate completely independently, but this isn't clear in the UI. Text searching doesn't clear the tags in the UI, and tag searching doesn't clear the search box. Clearing these would make things cleaner (especially for #361 with the URLs).

To Reproduce Steps to reproduce the bug:

  1. Go to the resources page
  2. Make a text search, then make a tag search.
  3. Note the text search query wasn't cleared, but also has no bearing on the displayed resources.
  4. Make a tag search, then make a text search.
  5. Note the tag search query wasn't cleared, but also has no bearing on the displayed resources.

Expected behavior Clear tags when doing text search, clear search term when doing tag search.

Additional comments Open to discussion on this.

dmlb commented 10 months ago

was wondering about this 👍