Commit Graph

9 Commits

Author SHA1 Message Date
Jerald-Golden-B d3ea36d1ba feat: Refactor product selection and comparison functionality
- Created a new store for selected products using Zustand and immer for state management.
- Introduced `useMainProduct` and `useComparisonProduct` hooks to manage main and comparison products.
- Implemented `ComparisonScene` and `ComparisonSceneProvider` components to handle product comparisons.
- Updated `MainScene` to allow selection of main products with a dropdown.
- Enhanced styles for comparison layout and product selection UI.
- Established a context for product management to streamline state access across components.
2025-05-29 12:00:16 +05:30
Jerald-Golden-B 5e58606f8f Refactor store creation for Conveyor, Machine, Storage Unit, and Vehicle
- Changed the store creation functions to `createConveyorStore`, `createMachineStore`, `createStorageUnitStore`, and `createVehicleStore` for better clarity and consistency.
- Updated the internal state management methods to maintain functionality while improving readability.
- Ensured that all stores now return their respective types for better type safety.
2025-05-28 16:24:08 +05:30
Jerald-Golden-B 5c37d40733 Refactor material store usage to integrate with scene context
- Removed direct usage of useMaterialStore in various components and replaced it with useSceneContext to access materialStore.
- Introduced SceneProvider to encapsulate materialStore creation and provide it through context.
- Updated components such as CompareLayOut, Scene, and various action handlers to utilize the new context structure.
- Cleaned up imports and removed unnecessary console logs.
- Adjusted Project component to conditionally render ComparisonResult based on a boolean flag.
2025-05-28 15:26:08 +05:30
Vishnu bdde20a611 refactor: remove unused imports from ROISummary and ThroughPutData components 2025-05-19 16:13:03 +05:30
Gomathi 28e11d04b4 Enhance analysis components with input values integration and improve state management for production capacity and ROI calculations 2025-05-15 18:00:07 +05:30
Gomathi d88e93395f Refactor loading state management and enhance data handling in analysis components 2025-05-14 18:21:49 +05:30
Gomathi e4be4505a9 Enhance analysis components with new state management for production capacity and ROI data 2025-05-14 14:25:54 +05:30
Gomathi 3ccfc54922 Refactor imports to use the builder store for state management across analysis components 2025-05-14 10:08:55 +05:30
Gomathi d0eaf3031d analysis data 2025-05-14 09:57:31 +05:30