nebraska icon indicating copy to clipboard operation
nebraska copied to clipboard

Upgrade React Redux and React

Open ervcz opened this issue 6 months ago • 0 comments

React 19 migration and dependency updates

This PR implements several changes to prepare for and complete the React 19 migration:

  1. React 19 Upgrade:

    • Updated React and React DOM to v19.1.0
    • Updated corresponding TypeScript type definitions
    • Modified test snapshots to accommodate React 19 format changes (replaced colon-based IDs with angle bracket format)
  2. TypeScript Improvements:

    • Replaced JSX.Element with more specific ReactElement type
    • Migrated PropTypes to TypeScript interfaces across multiple components
    • Removed deprecated PropTypes imports and declarations
  3. Dependency Updates:

    • Upgraded Redux Toolkit from v2.6.1 to v2.8.2
    • Updated react-redux from v7.2.4 to v9.2.0
    • Adjusted snapshot tests for MUI class name changes
  4. Cleanup:

    • Removed unused icon prop in GroupList
    • Cleaned up type definitions and component interfaces

How to use

  1. Verify all tests pass: npm test
  2. Check storybook components for rendering issues: npm run storybook
  3. Pay special attention to components that were converted from PropTypes to TypeScript

Testing done

  • Ran full test suite: npm run test (all tests pass)
  • Verified storybook rendering: npm run storybook (no visual regressions)
  • Checked application functionality:
    • Group list rendering and interactions
    • Package management flows
    • Instance list operations
    • Modal dialogs functionality

ervcz avatar Jun 05 '25 10:06 ervcz