- Enhanced error handling and response management in widget-related API calls.
- Added projectId parameter to widget addition services for better context in widget management.
- Created `duplicateEventStore` to manage events with actions for adding, removing, updating events, points, actions, and triggers.
- Implemented helper functions to retrieve events, points, actions, and triggers by their unique identifiers.
- Created `duplicateProductStore` to manage products and their associated events, including actions for adding, removing, updating products, events, points, actions, and triggers.
- Added renaming functions for products, actions, and triggers.
- Included comprehensive helper functions to retrieve products and their related data by various identifiers.
- Replaced direct localStorage access for email and organization with a centralized getUserData function in LineGraphComponent, PieGraphComponent, PolarAreaGraphComponent, ProgressCard1, ProgressCard2, Dropped3dWidgets, ProductionCapacity, ReturnOfInvestment, StateWorking, Throughput, and various floating widgets.
- Improved code readability and maintainability by consolidating user data extraction logic.
- Ensured consistent user data handling across multiple components to reduce redundancy.
- Removed unused pause button store from ComparisonScene.
- Added commented-out mock data setup in ComparisonScene for testing.
- Updated default values in Analysis component for production capacity and ROI calculations.
- Adjusted ProductionCapacity component to reflect monthly production capacity.
- Enhanced ROISummary to calculate payback date and improved net profit calculations.
- Modified ThroughputSummary to calculate units per hour based on shift length.
- Improved ComparisonResult to dynamically display compared products' data.
- Updated EnergyUsage to randomize data for better testing.
- Refined ROIData calculations to include labor count and adjusted cost calculations.
- Enhanced production capacity calculations in productionCapacityData.
- Updated throughput calculations in throughPutData to consider shift length and yield rate.
- Cleaned up console logs in vehicleInstance for better readability.
- Added productionCapacity field to CompareProduct interface in store.
- Minor styling adjustments in simulation.scss for better layout.