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

deps(RHINENG-3032, RHINENG-5932): Upgrade to React 18 & PatternFly 5 #2141

Merged
merged 20 commits into from
Feb 20, 2024

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Jan 24, 2024

🪩 ✨

Implements https://issues.redhat.com/browse/RHINENG-3032, https://issues.redhat.com/browse/RHINENG-5932.

This upgrades React to use version 18, PatternFly libraries to the version 5 and also bumps related packages like RTL, FEC, redux, cypress. This PR mainly ensures that the UI doesn't introduce any visual nor functional errors, the unit tests are running fine. This PR temporarily disables Cypress tests in Travis CI runs; they will be groomed in #2146.

How to test

Make sure the application is built both for development and production environment. Ensure you are able to run it locally, the components (tables, dropdown, modals, empty states, etc.) are not broken and visually are up-to-date with PF5 or stay the same.

@gkarat gkarat added the dependencies Pull requests that update a dependency file label Jan 24, 2024
@gkarat gkarat self-assigned this Jan 24, 2024
@gkarat
Copy link
Contributor Author

gkarat commented Feb 6, 2024

Waiting for RedHatInsights/frontend-components#1967 to be released so that I can continue with the cypress tests upgrade.

@gkarat gkarat changed the title chore(RHINENG-3032): Upgrade to React 18 & PatternFly 5 deps(RHINENG-3032, RHINENG-5932): Upgrade to React 18 & PatternFly 5 Feb 9, 2024
@gkarat gkarat marked this pull request as ready for review February 9, 2024 14:56
@gkarat gkarat requested a review from a team as a code owner February 9, 2024 14:56
Copy link
Contributor

@AsToNlele AsToNlele left a comment

Choose a reason for hiding this comment

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

Code looks good, went through the whole app and the federated modules and couldn't find anything out of the ordinary, well done! 😄

Copy link
Contributor

@mkholjuraev mkholjuraev left a comment

Choose a reason for hiding this comment

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

Looks great! While testing, I also did not encounter any major issues. But one small thing that caught my attention is when you select all hosts using the bulk select dropdown, there is not a loading icon inside it. But in the stage environment, we had it. Not having the icon seems to confuse users, because the selection takes time, but there is no indication that there is an action taking place.

"@redhat-cloud-services/frontend-components-utilities": "^3.7.6",
"@redhat-cloud-services/host-inventory-client": "1.2.11",
"@data-driven-forms/common": "^3.22.2",
"@data-driven-forms/pf4-component-mapper": "^3.22.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, do we still need this pf4 mapper after we migrate to version 5?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -11,7 +11,7 @@ jobs:
- stage: Lint
script: npm run lint && commitlint-travis
- stage: Test
script: npm run test && npm run test:ct
Copy link
Contributor

Choose a reason for hiding this comment

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

I see we have still some cypress tests. Should we keep cypress tests running in travis?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be re-enabled in #2146

@@ -46,19 +46,18 @@ const TopBar = ({
showTags,
}) => {
const dispatch = useDispatch();
const navigate = useInsightsNavigate();
const navigate = useInsightsNavigate('inventory');
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it is not worth it, but just an idea: can we use the appName from the package.json file? That would maybe help to have a consistent app name everywhere.

@gkarat gkarat enabled auto-merge (squash) February 20, 2024 11:05
@gkarat gkarat disabled auto-merge February 20, 2024 11:05
@gkarat gkarat merged commit 6592aad into RedHatInsights:master Feb 20, 2024
1 of 2 checks passed
@gkarat gkarat deleted the rhineng-3032 branch February 20, 2024 11:05
@gkarat
Copy link
Contributor Author

gkarat commented Feb 28, 2024

🎉 This PR is included in version 1.64.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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 released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants