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

Prepare for React v18 upgrade #16694

Merged
merged 2 commits into from
Sep 14, 2022
Merged

Prepare for React v18 upgrade #16694

merged 2 commits into from
Sep 14, 2022

Conversation

timroes
Copy link
Collaborator

@timroes timroes commented Sep 14, 2022

What

This is part of https://github.com/airbytehq/airbyte-internal-issues/issues/887.

React 18 will change the types to no longer have children being part of React.FC by default, why in the future we'll need to explicitally wrap all props in React.PropsWithChildren that should accept children.

This PR changes to this type already (it's already available in our current React version), and we should using it going forward, so that the actual update PR will have at less files touched as possible (and as less merge conflicts therefore), since the actual update PR will require to fix some more upgrade issues.

Also this updates react-intl and react-use to the newest major version, which will also be required for React 18 to function.

@timroes timroes requested a review from a team as a code owner September 14, 2022 10:44
@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Sep 14, 2022
Copy link
Contributor

@dizel852 dizel852 left a comment

Choose a reason for hiding this comment

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

Seems okay - tested locally, no errors 👍

@timroes
Copy link
Collaborator Author

timroes commented Sep 14, 2022

@edmundito setting you up for review, since the UI Tests have snapshot difference. This PR though only changes types and updates (unrelated libraries). Could you have a look why we're detecting changes in the font in the components here?

@krishnaglick
Copy link
Contributor

It looks like the modal title text is no longer bolded.

@timroes timroes merged commit ed7489c into master Sep 14, 2022
@timroes timroes deleted the tim/prepare-react-v18 branch September 14, 2022 18:08
letiescanciano added a commit that referenced this pull request Sep 15, 2022
* master: (200 commits)
  🪟 🧹 Display returned error messages on replication view (#16280)
  🎉 Source mixpanel: Use "Retry-After" header for backoff (#16770)
  🐛 Source google ads: mark custom query fields required (#15858)
  🪟 🔧Remove useRouter hook (#16598)
  CDK: improve TypeTransformer to convert simple types to array of simple types (#16636)
  CDK: TypeTransformer - warning message more informative (#16695)
  Source MySQL: Add Python SAT to detect backwards breaking changes (#16445)
  remove eager (#16756)
  bump com.networknt:json-schema-validator to latest version (#16619)
  Remove Cloud from Kafka docs (#16753)
  Normalization Summaries table and read/write methods (#16655)
  comment out flaky test suite while it is being investigated (#16752)
  Update ConfigRepository to read protocol version (#16670)
  Use LOG4J2 to wrap connectors logs to JSON format (#15668)
  Update connector catalog (#16749)
  🪟 🎨 Remove feedback modal from UI (#16548)
  Add missing env var for Kube overlays (#16747)
  Prepare for React v18 upgrade (#16694)
  🪟 🐛 Fix direct job linking to work with pagination (#16517)
  Fix formatting (#16743)
  ...
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants