open-risk-data-dashboard icon indicating copy to clipboard operation
open-risk-data-dashboard copied to clipboard

Enable users to search a country from the homepage

Open thom4parisot opened this issue 6 years ago • 0 comments

Related to #206, being able to search for a country would convey 1) the default scope of the data and 2) provide an alternative way of looking for data (all vs. my country of interest).

I see two approaches with different level of involvement:

Step 1

An autocomplete field (using Bootstrap autocomplete component or a built-in HTML dataset list) to lookup then go on the country page.

If there are no results, we offer the user to submit a dataset for this country or to contact us to see how we can help.

Step 2

The autocomplete result UI is populated with additional data (number of datasets, country scores, risks covered, etc.).

Step 3

We use a Levenshtein distance to make sure we recommend a country even though there is a typo (Frnce is close to France and would be a totally valid lookup value).

thom4parisot avatar Oct 08 '18 14:10 thom4parisot