Skip to content

Conversation

@katara-Jayprakash
Copy link
Contributor

@katara-Jayprakash katara-Jayprakash commented Dec 8, 2025

Description

Related Issue

Fixes #2272

Changes Made

  • Updated ...
  • Refactored ...
  • Fixed ...
  • Added tests for ...

Checklist

Please ensure the following before submitting your PR:

  • I have reviewed the project's contribution guidelines.
  • I have written unit tests for the changes (if applicable).
  • I have updated the documentation (if applicable).
  • I have tested the changes locally and ensured they work as expected.
  • My code follows the project's coding standards.

Screenshots or Logs (if applicable)

Additional Notes

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]>
@kubestellar-prow kubestellar-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 8, 2025
@kubestellar-prow
Copy link

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@katara-Jayprakash
Copy link
Contributor Author

@btwshivam here we go sir

@btwshivam
Copy link
Contributor

@katara-Jayprakash Run build locally and compile typescript.. then raise PR.. So many things are breaking You can check build checks

Copy link
Contributor

Copilot AI left a 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",
Copy link

Copilot AI Dec 8, 2025

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.

Copilot uses AI. Check for mistakes.
@katara-Jayprakash
Copy link
Contributor Author

katara-Jayprakash commented Dec 8, 2025

@katara-Jayprakash Run build locally and compile typescript.. then raise PR.. So many things are breaking You can check build checks

ok bhiaya ji ,

"react-chatbot-kit": "^2.2.2",
"react-dom": "^18.3.1",
"react-dom": "^19.2.1",
"react-flow-renderer": "^10.3.17",
Copy link
Member

Choose a reason for hiding this comment

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

remove this dependency

Suggested change
"react-flow-renderer": "^10.3.17",

Copy link
Member

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

Copy link
Contributor Author

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

@github-project-automation github-project-automation bot moved this from In Progress to Changes Required in KubeStellar UI Project Dec 8, 2025
@kunal-511 kunal-511 changed the title ✨Updating react 1.19.1 Update React to v19.2.1 Dec 8, 2025
Signed-off-by: katara-Jayprakash <[email protected]>
@kunal-511
Copy link
Member

/ok-to-test

@kubestellar-prow kubestellar-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 8, 2025
@kunal-511
Copy link
Member

/lgtm
/approve

@kubestellar-prow kubestellar-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 8, 2025
@kubestellar-prow
Copy link

LGTM label has been added.

DetailsGit tree hash: b6822e36756dbc2671950ba2a4f7b8d46ff4c736

@kubestellar-prow kubestellar-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 8, 2025
@katara-Jayprakash
Copy link
Contributor Author

katara-Jayprakash commented Dec 8, 2025

@kunal-511 @btwshivam any idea/hint why this ci is failing now?

@kunal-511
Copy link
Member

/retest

@btwshivam
Copy link
Contributor

btwshivam commented Dec 9, 2025

@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

@btwshivam
Copy link
Contributor

if nothing changeable then optimize the ci by running the test for only change made file.. show it pass quickly

@btwshivam
Copy link
Contributor

btwshivam commented Dec 9, 2025

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

@katara-Jayprakash
Copy link
Contributor Author

@btwshivam what should i do, to pass the ci, there is no error logs

@btwshivam
Copy link
Contributor

@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

@btwshivam
Copy link
Contributor

btwshivam commented Dec 9, 2025

@kunal approve the PR then we can squash merge

@kunal-511
Copy link
Member

/approve
/lgtm
cc : @btwshivam we can safely merge this one

@kubestellar-prow
Copy link

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@katara-Jayprakash
Copy link
Contributor Author

/approve /lgtm cc : @btwshivam we can safely merge this one
@btwshivam can you review it last time and merge it, or is there anything i need to do?

@kubestellar-prow kubestellar-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Dec 10, 2025
@clubanderson clubanderson self-requested a review December 10, 2025 19:14
@kubestellar-prow kubestellar-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 10, 2025
@kubestellar-prow
Copy link

LGTM label has been added.

DetailsGit tree hash: b0dee9c08d77b7c177014f1209e98ea162547435

@clubanderson
Copy link
Contributor

/lgtm

@clubanderson clubanderson added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Dec 10, 2025
@btwshivam btwshivam merged commit 5078460 into kubestellar:dev Dec 10, 2025
11 of 13 checks passed
@github-project-automation github-project-automation bot moved this from Changes Required to Done in KubeStellar UI Project Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. frontend lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

⚠️ Upgrade React Version Due to Critical Vulnerability

4 participants