This PR provides an action to set the attributes value used in Timur Search requests to the Magma /retrieve API. It replaces the values used in the current search and tsv buttons to use the attributes from state, instead of the hardcoded all. This hook should enable new UI components from @corps that set different attributes values.
This also adds a spinner to display on the Search screen while fetching data, and disables the buttons while fetching to prevent multiple requests. This kind of UI delay could be seen when making a longer-lasting request, like samples with page size of 200.
Note that these changes should result in the same current behaviour -- no new / different functionality is expected.
This PR provides an action to set the
attributes
value used in Timur Search requests to the Magma/retrieve
API. It replaces the values used in the currentsearch
andtsv
buttons to use theattributes
from state, instead of the hardcodedall
. This hook should enable new UI components from @corps that set differentattributes
values.This also adds a spinner to display on the Search screen while fetching data, and disables the buttons while fetching to prevent multiple requests. This kind of UI delay could be seen when making a longer-lasting request, like
samples
with page size of 200.Note that these changes should result in the same current behaviour -- no new / different functionality is expected.