- Updated Line component to include point type in Tube name and modified userData structure.
- Deleted unused useAisleDragSnap helper and refactored usePointSnapping to handle both aisle and wall snapping.
- Updated Point component to utilize new snapping methods and improved snapping logic for aisles and walls.
- Enhanced wall classification logic to streamline room detection and wall flipping checks.
- Refactored Wall component to utilize new material handling and wall flipping logic.
- Updated WallCreator to manage wall creation and snapping more effectively, including handling intersections with existing walls.
- Modified useBuilderStore and useWallStore to support new wall material properties and retrieval methods.
- Adjusted TypeScript definitions for Wall interface to reflect changes in material properties.
- Enhanced error handling and response management in widget-related API calls.
- Added projectId parameter to widget addition services for better context in widget management.
- 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.
- Removed the use of deleteTool and deletePointOrLine states, replacing them with a unified toolMode state.
- Updated Point, Arrows, PointsCreator, TriggerConnector, and other components to utilize toolMode for determining delete actions.
- Cleaned up unused imports and commented-out code related to deleteTool.
- Enhanced event handling in selectionControls and trigger connections to respond to toolMode changes.
- Adjusted color and interaction logic based on the current toolMode.