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

Use live API on cloud.gov for parsing #90

Merged
merged 12 commits into from
Apr 5, 2024
Merged

Use live API on cloud.gov for parsing #90

merged 12 commits into from
Apr 5, 2024

Conversation

jimmoffet
Copy link
Contributor

@jimmoffet jimmoffet commented Apr 2, 2024

Parsing now fires for all pdfs using the cloud.gov parser instead of a hard-coded cache 🎉

There's a few hundred millisecond delay because the API server is making an external API call to guess the title and produce a description. A good next step would be to split parsing into one endpoint and title/description auto-suggest into another (parsing alone is v fast).

Works reasonably well for AL Name Change. Parsing API needs be tested against a variety of pdfs, there be dragons 🐉 🐲 etc...

Also, removed the input edit button non-input elements.

@@ -104,31 +104,35 @@ const createPatternPreviewComponent = (
? 'form-group-row field-selected'
: 'form-group-row';

const editButton = pattern.type === 'input' ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only show the edit button if it's an input, skip for purely presentational elements.

Copy link
Contributor

@danielnaab danielnaab Apr 5, 2024

Choose a reason for hiding this comment

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

I updated to hide when there is no edit component for the pattern defined.

@jimmoffet jimmoffet changed the title Jim/api setup Use live API on cloud.gov for parsing Apr 2, 2024
@jimmoffet jimmoffet requested a review from danielnaab April 2, 2024 04:33
@danielnaab danielnaab merged commit f9b8afa into main Apr 5, 2024
2 checks passed
@danielnaab danielnaab deleted the jim/api-setup branch April 5, 2024 21:25
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.

2 participants