Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request/Idea: #552

Open
kuhlaid opened this issue Nov 19, 2024 · 3 comments
Open

Feature Request/Idea: #552

kuhlaid opened this issue Nov 19, 2024 · 3 comments

Comments

@kuhlaid
Copy link

kuhlaid commented Nov 19, 2024

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.

image

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.)

@pdurbin
Copy link
Member

pdurbin commented Nov 19, 2024

@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.

@kuhlaid
Copy link
Author

kuhlaid commented Nov 19, 2024

Hi @pdurbin, the SPA does not work. If I visit https://beta.dataverse.org/spa/collections it says page cannot be found. If I try the search function, same thing. Login same thing...

@pdurbin
Copy link
Member

pdurbin commented Nov 19, 2024

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. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants