You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What kind of user is the feature intended for?
Everyone
What inspired the request?
Trying to filter a dataset but keep getting redirected to the top of the page and needing to scroll back down to the files.
What existing behavior do you want changed?
When a file filter is applied, for example if a user selects a different file type, file tag or even the file sorting option, this refreshes the page with the filtered content. The problem is that it sends the user back to the top of the page and thus loses focus on the file list, so the user if forced to scroll back down to the bottom of the page where the files are located. Ideally the file list would retain focus when filters selections changed by a user.
Any brand new behavior do you want to add to Dataverse?
One option would be to add an anchor tag at the dataset 'tabs' (Files, Metadata, Terms, Version) and when a filter is applied, the URL will include the anchor so that the page refresh keeps the files in focus (see screenshot below of the dataset tabs I am referring to). If the file list can be refreshed without redrawing the entire HTML page that would work as well but it depends on how you are choosing to handle content changes on a page.
@kuhlaid sorry, sorry, I only just noticed the "xhtml" in the URL you tried. It's confusing. The beta server has both the old UI (JSF) and the new UI (React) on it.
Can you you please try again at https://beta.dataverse.org/spa ? To see if you can reproduce this in the React app, I mean.
D'oh! Bad timing. I believe the beta server is having trouble at the moment! I'll try to remember to post something here when it's happy and healthy again. 😅
What kind of user is the feature intended for?
Everyone
What inspired the request?
Trying to filter a dataset but keep getting redirected to the top of the page and needing to scroll back down to the files.
What existing behavior do you want changed?
When a file filter is applied, for example if a user selects a different file type, file tag or even the file sorting option, this refreshes the page with the filtered content. The problem is that it sends the user back to the top of the page and thus loses focus on the file list, so the user if forced to scroll back down to the bottom of the page where the files are located. Ideally the file list would retain focus when filters selections changed by a user.
Any brand new behavior do you want to add to Dataverse?
One option would be to add an anchor tag at the dataset 'tabs' (Files, Metadata, Terms, Version) and when a filter is applied, the URL will include the anchor so that the page refresh keeps the files in focus (see screenshot below of the dataset tabs I am referring to). If the file list can be refreshed without redrawing the entire HTML page that would work as well but it depends on how you are choosing to handle content changes on a page.
If you are on the dataset page under Table View and you choose a different File Tag (on page https://beta.dataverse.org/dataset.xhtml?persistentId=doi%3A10.5072%2FFK2%2FK8E7PV&version=&q=&fileTypeGroupFacet=%22Tabular+Data%22&fileAccess=&fileTag=%22Data%22&fileSortField=&fileSortOrder=&tagPresort=true&folderPresort=true for example), the page refreshes and takes you back to the top of the page. Maybe simply use anchor tags in the URL (e.g. #tabs to pull the focus back down to the tabbed section). Thank you.
(This issue was originally submitted under IQSS/dataverse#9917.)
The text was updated successfully, but these errors were encountered: