markcraig / hdap-demo

Another try at an HDAP UI
MIT License
0 stars 0 forks source link

Preserve search when navigating away and back again #10

Closed markcraig closed 5 months ago

markcraig commented 6 months ago

As a user I'd like to search, view one of the results, navigate to the previous page in my browser, and find my search terms and results right there again.

If I actively reset the search terms or log out, then the search page should be blank again when I next navigate to it. If my session (JWT) expires, but I haven't actively logged out, it would nice to preserve the search state.

markcraig commented 6 months ago

The HDAP store could save the most recent search terms and search results. If so, they ought to be cleared when the user logs out.

markcraig commented 5 months ago

This should also keep the last advanced search results as well, as implemented for https://github.com/markcraig/hdap-demo/issues/15

The restored search state should depend on whether I've selected a basic search or an advanced search, and it would be nice to preserve that selection, too, when I navigate away from the search page.