-
Notifications
You must be signed in to change notification settings - Fork 53
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
Update react-scripts to 5.0.0 #3209
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
This should be ready for review now! There were 8 UI changes in Chromatic, but I honestly couldn't tell the difference by visual inspection, so I just went ahead and accepted them. I'm gonna go ahead and deploy to dev and do some smoke testing to make sure nothing looks off. |
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!
@@ -48,7 +48,7 @@ export const useFacilityValidation = (facility: Facility) => { | |||
orderingProviderIsRequired: requiresOrderProvider(facility.state), | |||
}, | |||
}); | |||
} catch (e) { | |||
} catch (e: any) { |
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.
Thanks for getting rid of these red squiggles in VSCode 🙂
@@ -4,12 +4,12 @@ describe("isValidCLIANumber::string -> boolean", () => { | |||
test("valid number returns `true`", () => { | |||
const cliaNumber = "12D4567890"; | |||
|
|||
expect(isValidCLIANumber(cliaNumber)).toBe(true); | |||
expect(isValidCLIANumber(cliaNumber, "VA")).toBe(true); |
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.
Good catch
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.
So many great improvements Nick, thanks for this! 🚀
There are some CSS changes that I can't visualize but this LGTM assuming happy results from your smoke testing & Chromatic review.
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! I also checked the terraform plan
output, and things look stable from an infrastructure perspective. Thank you for this huge amount of work!
Related Issue or Background Info
react
, 17.0.2. However, React 18 is in rc and release is imminent. I will be keeping an eye out to see if it releases in the next few days.react-scripts
, along with a slew of other packages that need updating along with it, includinguswds
Changes Proposed
react-scripts
to 5.0.0dart-sass
and use mixins at the component level #1681. I decided to remove since it reduces our build complexity, and we don't really have any sass/uswds experts on the team anymore, so it seems unlikely that we will use mixins anyways.react-scripts
upgradedjest
react-scripts
also updatedeslint
to 8.x, needed to update some eslint plugins and change some eslint configuration, including adding a typescript parser for it, see more hereuswds
to 2.13.0 as well. Along with this I had to change the way we import some uswds iconssass
to 1.47.0. Along with theuswds
upgrade this seems to have finally cleared out all the useless deprecation warnings and changelog notes we get when running the frontend!! 🎉typescript
to 4.5.4, and fixed a whole bunch of ts errors in our testsAdditional Information
Screenshots / Demos
Checklist for Author and Reviewer
Infrastructure
terraform-plan
job inside the "Terraform Checks" workflow run for this PR. Confirm that there are no unexpected changes!Design
test
,dev
, orpentest
and smoke-tested by both the engineering and design teamsContent
Support
Testing
Changes are Backwards Compatible
(including re-granting permission to the no-PHI user if need be)
./gradlew liquibaseRollbackSQL
orliquibaseRollback
Security
Cloud
test
,dev
, orpentest
environment for verification