ajah / sks-interface

0 stars 0 forks source link

Add new filters, including "custom search term" filters #10

Open dani-ajah opened 2 years ago

dani-ajah commented 2 years ago

As a user of the platform, I would like to use filters to narrow down the results and increase the accuracy of my searches.

Users should be able to filter by: (look at fundtracker for inspiration)

A custom search term would be created for organizations that are interested in using the SKS hub frequently and would like to create a curated term made up of multiple keywords. The custom filters should look like the image below, where the custom search terms are displayed under the organization name. Screen Shot 2022-05-19 at 4 11 44 PM The idea is that once a user selects their custom search term, the search bar would be populated with the keywords associated with that curated search term. If the user would like to add or remove any keywords from the search bar they should be able to do so before running their query.

gustavohandrade commented 1 year ago

@psdcode For the first interaction of this function, we want to add custom filters related to EFC. In that sense, we would have only the terms "Sustainability," "Climate Change," and "Climate Education." in an accordion style like the one presented in the image above.

psdcode commented 1 year ago

@gustavohandrade So selected words simply get added to the search query, and there is no need to call new api routes or use new api params on existing search route I assume?

gustavohandrade commented 1 year ago

I prefer to check that tomorrow with Jesse. Too technical language to my very limited knowledge of development.

psdcode commented 1 year ago

@gustavohandrade sounds good, I basically meant, no need for me to wait for any changes to the backend to implement this in the frontend :-)

psdcode commented 1 year ago

@gustavohandrade 2hrs

gustavohandrade commented 1 year ago

@psdcode I misinterpreted this feature. It is supposed to work by creating a new search query with a set of predetermined keywords to be searched (and the ones not to include). Sorry about that.

If we had the term "water," for example, when I click it, the new query should include river and lake and exclude "water polo." Even if I have not searched for anything yet.

psdcode commented 1 year ago

@gustavohandrade ok now I understand a bit better

"once a user selects their custom search term, the search bar would be populated with the keywords associated with that curated search term"

"and the ones not to include", "and exclude "water polo."

gustavohandrade commented 1 year ago

@psdcode for the first bullet point, I need to confirm with Jesse. But would it be possible to include the terms on the search field on the new search?

On the second bullet point, the rationale is: considering that EFC (Environment Funders Canada) is a group of environmental funders, when someone in their organization search for water, they want to learn about grants related to the environment (rivers, lakes) and not a sport (water polo).

psdcode commented 1 year ago

@gustavohandrade

gustavohandrade commented 1 year ago

@psdcode

psdcode commented 1 year ago

I will the pills this week. As for the second point, even when you have the lists, this will be implemented on the backend, so should not affect the front end

psdcode commented 1 year ago
Screen Shot 2022-12-08 at 23 49 25
psdcode commented 1 year ago

@gustavohandrade I merged in filter term display, as in the picture above