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

fix(content_delegate): Fix zip upload in district courts #348

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Nov 15, 2023

This PR fixes freelawproject/recap#352 by tweaking the extractUrl method to retrieve the URL from the script tag. During the debugging process, I noticed the absence of a message indicating that the extension was uploading the zip file. To address this, I added a loading message on the page to inform users that the extension is working on the upload task.

Here's a GIF showing the new message:

upload zip 2

Additional comments

I couldn't reproduce the issue on Windows, it seems specific to macOS.

Copy link
Collaborator

@johnhawkinson johnhawkinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regexp caught my eye

src/content_delegate.js Show resolved Hide resolved
src/content_delegate.js Outdated Show resolved Hide resolved
src/content_delegate.js Outdated Show resolved Hide resolved
Updates regex to remove invalid escape sequences and adds capturing groups to eliminate the replace method.
@ERosendo ERosendo marked this pull request as ready for review November 15, 2023 14:01
@mlissner mlissner merged commit 3455bbb into main Nov 15, 2023
8 checks passed
@mlissner mlissner deleted the 352-fix-zip-upload-in-district-court branch November 15, 2023 17:39
@mlissner
Copy link
Member

LGTM! Does this affect all zip uploads or just some of them for some reason?

@ERosendo
Copy link
Contributor Author

@mlissner I believe that all zip uploads made from a macOS device are affected. I tested the upload feature with different courts and got the same problem every time.

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

Successfully merging this pull request may close these issues.

Problems downloading docs in chrome, with recap enabled...
3 participants