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

Open restricted downloads in new tab to avoid blank page #346

Merged
merged 7 commits into from
Aug 6, 2024

Conversation

spilth
Copy link
Collaborator

@spilth spilth commented Aug 1, 2024

Problem

When a user attempts to download a restricted "Original Shapefile" for the first time while not being logged in, they are left on a blank page at the end of the sign-in/download process.

Solution

Force restricted "Original Shapefile" downloads to open in a new tab so they still have an SDR tab open at the end of the process. Future downloads (while now logged in) will open and close a new tab automatically, leaving you right where you were.

Additionally, I migrated the "Downloads Collapse" partial to a View Component to allow for easier view testing.

Addresses #312

Type

Bug Fix

Video

First download is an unrestricted file, second download is a restricted file.

Screen.Recording.2024-08-01.at.12.54.31.PM.mov

@spilth spilth marked this pull request as ready for review August 5, 2024 16:28
@spilth spilth requested review from ekate, nmwolf and mnyrop August 5, 2024 16:28
@nmwolf
Copy link
Collaborator

nmwolf commented Aug 5, 2024

This set up looks like a good working solution from the user point of view.

@spilth spilth merged commit f9d6dd3 into main Aug 6, 2024
1 check passed
@spilth spilth deleted the 312-open-restricted-downloads-in-new-tab branch August 6, 2024 19:26
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

Successfully merging this pull request may close these issues.

3 participants