Open dani-ajah opened 2 years 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.
@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?
I prefer to check that tomorrow with Jesse. Too technical language to my very limited knowledge of development.
@gustavohandrade sounds good, I basically meant, no need for me to wait for any changes to the backend to implement this in the frontend :-)
@gustavohandrade 2hrs
@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.
@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."
thanks for clarifying
@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).
@gustavohandrade
For the first point it might make more sense to add the term as a pill (with the x close button) above the search field, like we already do with search terms that were already entered
it is still unclear to me how do we the determine the "ones not to include" and exclude: do we have a list of terms to include(eg for "water": "rivers", "lakes") and exclude for every checkbox (eg for "water": no "polo", "park") ?
@psdcode
It makes sense
we don't have a list yet, but Jesse asked about the possibility of making the feature first and determining the keywords after. We can create it with some random/mockup words and update the list when we have the words defined.
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
@gustavohandrade I merged in filter term display, as in the picture above
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. 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.