Skip to content

Jmax/lg 9794 delete front end async document capture code#8396

Merged
jmax-gsa merged 13 commits intomainfrom
jmax/LG-9794-delete-front-end-async-document-capture-code
May 26, 2023
Merged

Jmax/lg 9794 delete front end async document capture code#8396
jmax-gsa merged 13 commits intomainfrom
jmax/LG-9794-delete-front-end-async-document-capture-code

Conversation

@jmax-gsa
Copy link
Copy Markdown
Contributor

No description provided.

@jmax-gsa jmax-gsa force-pushed the jmax/LG-9794-delete-front-end-async-document-capture-code branch 2 times, most recently from 920e48e to aeec0ba Compare May 17, 2023 16:47
@jmax-gsa jmax-gsa force-pushed the jmax/LG-9794-delete-front-end-async-document-capture-code branch from 5ef048f to b05f9b2 Compare May 24, 2023 18:49
changelog: Internal,Background proofing,Remove the JS/TS code for background proofing
@jmax-gsa jmax-gsa force-pushed the jmax/LG-9794-delete-front-end-async-document-capture-code branch from 328eac1 to 28862ba Compare May 24, 2023 19:38
@jmax-gsa jmax-gsa marked this pull request as ready for review May 24, 2023 19:55
@jmax-gsa jmax-gsa requested review from matthinz and zachmargolis May 24, 2023 19:56
Copy link
Copy Markdown
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

I left a few initial comments, but I'll plan to take a closer look at this in my morning.

import { useContext } from 'react';
import { t } from '@18f/identity-i18n';
import { FormError } from '@18f/identity-form-steps';
import { trackError } from '@18f/identity-analytics';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This was our only use of trackError, so we could remove it from analytics/index.ts if we wanted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll remove it if that's the team consensus, but I think it should stay for future use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I fall more on the side of removing anything that's unused and that can be brought back later, but I don't feel too strongly in this case, since it's honestly surprising this is the only error we log on the frontend, and seems like something we'd want to have easy access to.

Copy link
Copy Markdown
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

There are some conflicts on the branch and left a comment about package.json changes, but otherwise LGTM 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Were the changes in this file intended to be committed? I'd prefer to keep the Mocha colors at least, and would recommend configuration go in .mocharc.js and tsconfig.json so that it applies to single-file test runs (using yarn mocha directly).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Eeep. Thank you; those should not have been committed.

import { useContext } from 'react';
import { t } from '@18f/identity-i18n';
import { FormError } from '@18f/identity-form-steps';
import { trackError } from '@18f/identity-analytics';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I fall more on the side of removing anything that's unused and that can be brought back later, but I don't feel too strongly in this case, since it's honestly surprising this is the only error we log on the frontend, and seems like something we'd want to have easy access to.

@jmax-gsa jmax-gsa merged commit 35af6cc into main May 26, 2023
@jmax-gsa jmax-gsa deleted the jmax/LG-9794-delete-front-end-async-document-capture-code branch May 26, 2023 15:55
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.

4 participants