Open johnmarkredding opened 2 months ago
This pull request introduces significant refactoring and enhancements to the codebase, primarily focusing on the creation of slices for Redux state management, TypeScript type improvements, and various configuration updates. The changes include the addition of new Redux slices, updates to ESLint and Rollup configurations, and the refactoring of several components and utility functions to improve type safety and maintainability.
Files | Changes |
---|---|
src/features/plugin/pluginSlice.ts src/features/model/modelSlice.ts src/features/metric/metricSlice.ts src/features/index.ts src/features/wind/windSelector.ts src/features/skewt/skewtSlice.ts src/features/wind/windSlice.ts |
Created new Redux slices for plugin, model, metric, skewT, and wind state management. Combined all slices into a root reducer and exported actions and selectors. |
src/util/store.ts src/containers/containers.tsx src/components/wind.tsx src/sounding.tsx src/util/math.ts src/components/favorites.tsx src/selectors/sounding.ts src/selectors/skewt.ts src/util/clouds.ts src/components/pure.ts src/components/loading.tsx src/components/skewt.tsx src/components/parcel.tsx |
Refactored components, selectors, and utility functions to use new Redux slices and TypeScript types. Updated import paths and removed deprecated functions. |
.eslintrc.cjs rollup.config.js tsconfig.json |
Updated ESLint, Rollup, and TypeScript configurations for better readability, maintainability, and type safety. |
src/reducers/sounding.ts src/actions/sounding.ts src/selectors/wind.ts src/reducers/skewt.ts src/actions/skewt.ts src/reducers/wind.ts |
Deleted old reducers, actions, and selectors for sounding, skewT, and wind state management. |
This is too big of a pull, I'm sure. Let me know how you'd prefer to do this. I've tried to test each of the affected files as I've made changes. There are a couple things in the math files and selectors that I haven't figured out, so I haven't updated those fully yet.
Summary by Sourcery
This pull request introduces significant refactoring and enhancements to the state management of the application by implementing Redux slices and TypeScript types. It also updates the ESLint and Rollup configurations for improved code quality and build process. Additionally, it removes deprecated Redux actions, reducers, and selectors.