-
Notifications
You must be signed in to change notification settings - Fork 228
Update React to v19.2.1 #2273
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 to v19.2.1 #2273
Conversation
Signed-off-by: katara-Jayprakash <[email protected]>
Signed-off-by: katara-Jayprakash <[email protected]>
- Update react to 19.2.1 - Update react-dom to 19.2.1 - Update @types/react to 19.2.7 - Update @types/react-dom to 19.2.3 - Update @testing-library/react to 16.2.0 for React 19 compatibility
- Fix children prop types to accept ReactNode - Remove unnecessary PropsWithChildren wrapper - Ensure compatibility with React 19's stricter type checking Signed-off-by: katara-Jayprakash <[email protected]>
Signed-off-by: katara-Jayprakash <[email protected]>
|
Hi @katara-Jayprakash. Thanks for your PR. I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@btwshivam here we go sir |
|
@katara-Jayprakash Run build locally and compile typescript.. then raise PR.. So many things are breaking You can check build checks |
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.
Pull request overview
This PR upgrades React and related dependencies from version 18.3.1 to 19.2.1, along with updating @react-three/fiber, @react-three/drei, and associated TypeScript type definitions. The changes ensure compatibility with React 19's stricter type system and updated API patterns.
Key Changes
- React and React DOM upgraded from 18.3.1 to 19.2.1
- React Three Fiber upgraded from 8.13.6 to 9.4.2 and Drei from 9.80.0 to 10.7.7
- TypeScript types updated to use stricter ref types (
RefObject<T | null>), flexible children types (React.ReactNode), and explicit React imports for dynamic component rendering
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/package.json | Updated React core (19.2.1), React Three libraries, and TypeScript type definitions |
| frontend/package-lock.json | Updated dependency tree including React reconciler, scheduler, floating-ui, and three.js ecosystem packages |
| frontend/src/pages/Dashboard.tsx | Added explicit React import and converted dynamic icon rendering to React.createElement |
| frontend/src/components/wecs_details/tabs/LogsTab.tsx | Updated terminalRef type to RefObject<HTMLDivElement | null> for React 19 compatibility |
| frontend/src/components/wecs_details/tabs/ExecTab.tsx | Updated execTerminalRef type to RefObject<HTMLDivElement | null> |
| frontend/src/components/treeView/types.ts | Added NodeLabelProps interface and changed NodeData.label to React.ReactElement |
| frontend/src/components/treeView/TreeViewNodes.tsx | Updated type casting for accessing node label props with explicit NodeLabelProps type |
| frontend/src/components/treeView/TreeViewCanvas.tsx | Updated containerRef type to RefObject<HTMLDivElement | null> |
| frontend/src/components/menu/Tooltip.tsx | Changed children prop type from React.ReactNode to optional React.ReactNode |
| frontend/src/components/login/globe/CosmicDust.tsx | Updated bufferAttribute to use args prop instead of array and itemSize props for React Three Fiber 9 |
| frontend/src/components/its/ImportCluster/QuickConnectTab.tsx | Updated successAlertRef types to RefObject<HTMLDivElement | null> |
| frontend/src/components/its/ClustersTable/dialogs/LabelEditDialog/LabelsList.tsx | Updated input ref types to RefObject<HTMLInputElement | null> |
| frontend/src/components/common/ButtonTooltip.tsx | Changed children prop type to optional React.ReactNode |
| frontend/src/components/bindingPolicy/BPTable.tsx | Removed explicit JSX.Element return type annotation |
| frontend/src/components/WecsTopology.tsx | Reorganized interfaces with NodeLabelProps defined before NodeData |
| frontend/src/components/PublicRoute.tsx | Changed children type from JSX.Element to React.ReactNode |
| frontend/src/components/ProtectedRoute.tsx | Changed children type from JSX.Element to React.ReactNode |
| frontend/src/components/LanguageSwitcher.tsx | Wrapped ref callback in explicit block to comply with React 19 requirements |
| frontend/src/components/CommandPalette.tsx | Added explicit React import and converted icon rendering to React.createElement |
Files not reviewed (1)
- frontend/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "nanoid": "^5.0.9", | ||
| "puppeteer-core": "^24.1.1", | ||
| "react": "^18.3.1", | ||
| "react": "^19.2.1", |
Copilot
AI
Dec 8, 2025
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.
The PR title states "Updating react 1.19.1" but the actual version being updated to is 19.2.1. The title should be corrected to "Updating react 19.2.1" to accurately reflect the version change.
ok bhiaya ji , |
frontend/package.json
Outdated
| "react-chatbot-kit": "^2.2.2", | ||
| "react-dom": "^18.3.1", | ||
| "react-dom": "^19.2.1", | ||
| "react-flow-renderer": "^10.3.17", |
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.
remove this dependency
| "react-flow-renderer": "^10.3.17", |
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.
and I think after removing this re run the commands to update lock file
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.
done i remove this and update the pr
Signed-off-by: katara-Jayprakash <[email protected]>
|
/ok-to-test |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: b6822e36756dbc2671950ba2a4f7b8d46ff4c736 |
|
@kunal-511 @btwshivam any idea/hint why this ci is failing now? |
|
/retest |
|
@alokdangre @Arpit529Srivastava playwright ci got huge time ig more then 60 min.. make it under 40-50 min max.. reduce wating time and flasky test |
|
if nothing changeable then optimize the ci by running the test for only change made file.. show it pass quickly |
|
you can do zero-risk optimizations like parallelization that could cut time in half. then adds smart test routing - only running relevant tests on PRs while keeping full coverage on dev branch. @alokdangre @Arpit529Srivastava make issue for it and work on it if possible |
|
@btwshivam what should i do, to pass the ci, there is no error logs |
|
@katara-Jayprakash I mentioned above.. we need to enable parallelization.. worker is 1 currently.. make it 4 and Add Test Sharding in CI to distributes load |
|
@kunal approve the PR then we can squash merge |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kunal-511 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
|
LGTM label has been added. DetailsGit tree hash: b0dee9c08d77b7c177014f1209e98ea162547435 |
|
/lgtm |
Description
Related Issue
Fixes #2272
Changes Made
Checklist
Please ensure the following before submitting your PR:
Screenshots or Logs (if applicable)
Additional Notes