- Updated gsap dependency in
- Refactored DraggableWidget component to utilize gsap's Draggable for improved drag-and-drop functionality.
- Enhanced the handling of widget reordering and panel capacity calculations.
- Improved the rendering logic for different widget types.
- Added new styles for better visual feedback during drag operations.
- Introduced Version and VersionHistory types for version management.
- Enhanced shortcut key handling to create new versions and manage version visibility.
- Implemented API calls for creating and retrieving version history.
- Added Zustand store for managing version history state, including version selection and updates.
- Updated MainSceneProvider to clear assets on mount using scene context.
- Replaced useAssetsStore with useSceneContext in DropDownList, List, AssetsGroup, Model, Models, SocketResponses, and various control components.
- Introduced clearAssets method in asset store for better asset management.
- Updated Project component to wrap scene providers correctly.
- Fixed naming inconsistencies in vehicle store methods.
- Removed unnecessary state management in MaterialAnimator.
- Improved code readability and organization across multiple components.
- 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.