ThreeSixtyGiving / grantnav

This is a web based search tool for data in the 360 giving data format.
http://grantnav.threesixtygiving.org/
Other
9 stars 5 forks source link

GrantNav search & widget builder - don't go to top of page after applying a filter #961

Open mariongalley opened 1 year ago

mariongalley commented 1 year ago

Is your feature request related to a problem? Please describe. When I'm applying filters, GrantNav jumps to the top of the search page every time, which makes it frustrating to have to scroll back down to apply more filters

Describe the solution you'd like Remember where the user is when applying the filter and take them back on reloading the results.

michaelwood commented 1 year ago

Unfortunately a page reload is currently necessary. The length/scrolling of the page can depend on the window size and the length of content on the page, which in turn depends on what has been selected in the filters.

We might be able to store a location just before reloading in a cookie/url parameters and do a best-effort at making sure that location is still in view.

michaelwood commented 1 year ago

Related to #851

mariongalley commented 1 year ago

OK, that's fine - shall I close the issue @michaelwood ?

michaelwood commented 1 year ago

I think it would be a good design consideration if we ever do Grantnav v2. We experimented with more responsive ux/filters in our 'declared' prototype project so we know a bit more about how we would approach this.

michaelwood commented 1 month ago

The mvp suggestion is to take you to the last clicked filter item, this could be stored in the browser's storage to take to that scroll point. It might also be possible to do this with anchors too