Improving the search bar
Currently the searchbar only autocompletes on values from preset quantities and these values are requested per statistics from the API on each search. This has two issues:
- we need to aggregate all values all the time
- we don't allow the user any completion on other quantities
A new searchbar would first provide completions on search quantities and then completion on values from the chosen quantity. The search quantities can be preset (e.g. from api/info
which gets them from datamodel.py
) and autocomplete could be offered right when the user focuses the searchbar without typing anything. If the quantity is selected, the searchbar can use the api's quantity search to retrieve values for the quantities and show to top n values with the highest entry count. Selecting quantity and value can result in a chip like before.
The various searchtabs now have to set/unset the shown statistics and cannot rely on the fact that most statistics are loaded all the time.