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
Fixed scroll/focus logic on close of modal #28266
Conversation
PR has failing required tests, opting not to review at this time. - Tier 2/FE COP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…department-of-veterans-affairs/vets-website into co-022824-Find-a-Rep-csrf-token
…department-of-veterans-affairs/vets-website into co-022824-Find-a-Rep-csrf-token
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentry call found
Sentry captures a lot of data, and we want to make sure that we only keep information that will be useful for troubleshooting issues. This means that PII should not be recorded.
What you can do
Review your call to Sentry and see if you can reasonably reduce any information that is included, or wait for a VSP review.
src/applications/representative-search/actions/reports/submitRepresentativeReport.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint is disabled
vets-website
uses ESLint to help enforce code quality. In most situations we would like ESLint to remain enabled.
What you can do
See if the code can be refactored to avoid disabling ESLint, or wait for a VSP review.
src/applications/representative-search/components/results/ReportModal.jsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Fixed scroll/focus logic on close of modal * Updated feature toggle references to "find_a_representative_enabled" * Refactored scroll/focus logic. Now focuses alert when reports increase * Added new feature flag * Setting csrfToken on successful fetch. Using apiRequest utility rather than fetch. * Updated error verbiage * Setting report object properties to snake case items for API * Moved formatting logic to dedicated formatReportBody. Added unit test.
Summary
Related issue(s)
Related issue(s)
New unit test written for method that formats reports