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

Improve Document Selection Menu page matching #335

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

ttys0dev
Copy link
Contributor

The existing match conditions for attachment pages doesn't seem to be reliable(ie for example on cacd), lets just add a match condition for the "Document Selection Menu" text at the top as well which seems to fix these issues.

@mlissner mlissner requested a review from ERosendo July 10, 2023 13:25
@mlissner
Copy link
Member

This LGTM, but sending to @ERosendo to make sure he's happy too.

@ERosendo
Copy link
Contributor

This looks good.

I tested your code using a few attachment pages from cacd ( like entry #1 from 2:23-cv-05413), and It works great.

Our current approach is failing because those attachment pages don't have buttons to download/view the documents as they usually do, which is odd since the checkboxes remain there, and the page still contains all the JS code that computes the total number of pages and the total size of the selected documents. The console is showing a lot of errors related to those missing HTML elements.

@ttys0dev Thanks!

@mlissner we can merge this 👍

@mlissner
Copy link
Member

Should we fix all those errors while we're looking at this part of the code?

@ERosendo
Copy link
Contributor

We could try, but it's the JS code from PACER that's creating those errors, not the extension.

The extension works properly using this approach to identify attachment pages with this issue. It attaches the Recap icon to documents that we have in the RECAP archive and it can upload new ones. I uploaded attachment 3 of entry #1 from 2:23-cv-05413.

@mlissner
Copy link
Member

Got it, thanks. Merging, but we need release notes too. :)

@mlissner mlissner merged commit 372a927 into freelawproject:main Jul 10, 2023
3 checks passed
@ttys0dev ttys0dev deleted the document-selection-menu branch July 10, 2023 20:39
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.

3 participants