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

React upgrade Part 2 #2093

Merged
merged 62 commits into from
Aug 9, 2023
Merged

React upgrade Part 2 #2093

merged 62 commits into from
Aug 9, 2023

Conversation

ValeriaReveles
Copy link
Contributor

@ValeriaReveles ValeriaReveles commented Jul 27, 2023

React upgrade Part 2

🗣 Description

Refactored code on frontend "components", "pages", and "context" .tsx files in order to support React 18 upgrade to Crossfeed.

💭 Motivation and context

The current version of React (^17.0.0) is out of date which can lead to issues with future maintenance and operability of the Crossfeed site. Additionally, certain components and libraries such as MUI v5 no longer support React 17 and below making migration to React 18 necessary.

Issues with old '@mui/styles' components addressed and updated to support new "@mui/material/styles' needed. Changes needed addressed with "Material UI JSS to Emotion migration" documentation.

This PR closses issue #2065.

🧪 Testing

Tested using existing tests on Crossfeed project through 'npm test'. Passed all build checks and able to compile successfully.

However, new tests and QA procedures will need to be created to address new changes and upgrades.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

✅ Post-merge checklist

  • Create a release.

ValeriaReveles and others added 30 commits July 6, 2023 10:24
@lfilip-ivaal
Copy link
Collaborator

We are getting there! I ran the tests with npm test -- -u and they all passed. The tests will need to be updated to use React 18 as another part of this effort coming up.

Below shows how some of the styling has changed. These will need to be fixed before we can merge into master.

Screenshot 2023-07-31 at 3 19 58 PM

@actualeyes actualeyes merged commit cef5424 into master Aug 9, 2023
18 checks passed
@actualeyes actualeyes deleted the vr/testing_branch_react_upgrade branch August 9, 2023 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file Frontend ASM-VDB User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade React Part 2
4 participants