Commit Graph

16 Commits

Author SHA1 Message Date
Jerald-Golden-B db7b4c6f7d Refactor store imports and consolidate state management
- Updated import paths for various components to use the new builder store.
- Removed the old store file and migrated all state management logic to the new builder store.
- Ensured all components utilizing socket and visualization state are now referencing the builder store.
- This change improves organization and maintainability of the state management system.
2025-05-13 17:53:00 +05:30
Vishnu 33687b822b Merge remote-tracking branch 'origin/v2' into v2-ui 2025-05-13 17:30:41 +05:30
Jerald-Golden-B 2c67081173 Refactor success notifications to use echo instead of toast; update selection controls and duplication logic
- Changed success notifications from `toast.success` to `echo.success` in copy, duplication, move, rotate, and selection controls.
- Updated selection logic in `PostProcessing` to use `flattenChildren` for better performance.
- Enhanced `Simulator` component to handle selected product state and execution order more effectively.
- Modified `useSelectedItem` state to include `category` and `subCategory` properties for better item classification.
- Adjusted `WallItem` interface to standardize type values and added `modelfileID` for improved asset management.
2025-05-13 17:21:52 +05:30
Vishnu d66384c7a5 Refactor code structure for improved readability and maintainability 2025-05-13 15:37:06 +05:30
Jerald-Golden-B ecab03c5f0 Refactor MoveControls and TransformControls for improved asset manipulation
- Cleaned up MoveControls component by removing unused variables and optimizing event handling.
- Enhanced asset movement logic with better key event detection and state management.
- Removed deprecated transform mode state from store.
- Updated worldTypes to remove unnecessary positionY property.
- Introduced TransformControls component for handling object transformations (translate/rotate) with proper state management and backend updates.
- Implemented event handling for mouse actions and keyboard shortcuts to toggle transformation modes.
2025-05-13 12:58:04 +05:30
Poovizhi99 1d35fbe055 Merge remote-tracking branch 'origin/v2-ui' into simulation-agv-v2 2025-05-10 16:42:52 +05:30
Jerald-Golden-B 816196db1e Refactor tool and builder modules: remove unused movePoint state and related logic; enhance clarity in tool handling and state management. 2025-05-09 10:46:18 +05:30
Poovizhi99 6d45a89197 added area for room and zone 2025-05-09 09:21:54 +05:30
Jerald-Golden-B bb4d649294 Refactor builder module and distance text component; enhance trigger handler with optional materialId
- Updated the builder module to improve code readability and organization by adjusting import statements and restructuring the component.
- Enhanced the distance text component to manage lines more effectively, including the addition of room state management.
- Modified the trigger handler to accept an optional materialId parameter, ensuring more robust handling of triggers across different event types.
- Introduced a new rooms state in the store for better management of room-related data.
2025-05-08 16:56:53 +05:30
Vishnu 135633ef7a Refactor logging components and styles; remove unused CSS; enhance log icon functionality
- Removed the random color generation function from ProductionCapacity component.
- Updated ThroughputSummary component to remove unused imports.
- Simplified LogList component by removing unnecessary icons and integrating GetLogIcon for log types.
- Enhanced LoggerContext to support a new "success" log type and optimized logger methods with useMemo.
- Adjusted SimulationPlayer to conditionally render analysis components.
- Deleted index.css and removed its import from index.tsx.
- Cleaned up builder module by removing unused imports and optimizing state management.
- Removed savedTheme from Ground component.
- Changed log message from info to warning in Project component.
- Updated log color variables in SCSS files for better visibility and consistency.
- Added new log icons for success, error, info, and warning in LogIcons component.
- Created GetLogIcon utility to streamline log icon rendering based on log type.
2025-05-03 15:20:52 +05:30
Nalvazhuthi c187a07b22 updating UI 2025-05-03 10:03:39 +05:30
Nalvazhuthi 3ebadf3c10 added arm ui 2025-04-28 12:26:31 +05:30
Jerald-Golden-B a305c3c006 Refactor EventProperties component to utilize new state management for selected event data and asset selection; implement action handling based on asset type and improve action rendering logic.
Enhance Simulations component to support adding and removing events from products; integrate new asset selection store for better state management.

Fix import paths in Design component and related files to ensure correct module resolution.

Update Tools component to correct import paths for template saving functionality.

Refactor EditWidgetOption component to simplify option handling and remove unnecessary state management.

Add new mechanics components for various asset types (Conveyor, Machine, Robotic Arm, Storage, Vehicle) as placeholders for future implementation.

Implement Trigger and TriggerConnector components to manage right-click interactions and asset selection in the simulation environment.

Enhance product store with new helper functions for event and action retrieval based on UUIDs.

Introduce new selected event data and asset state management in the simulation store for improved event handling.

Update simulation types to include new action types and improve type definitions for better type safety.

Remove obsolete temp markdown file from triggers directory.
2025-04-24 16:38:42 +05:30
Jerald-Golden-B 6363d5b9af feat: Implement Zustand stores for machine, simulation, storage unit, vehicle, and visualization management
- Added `useMachineStore` for managing machine statuses, including actions for adding, removing, and updating machines.
- Introduced `useSimulationStore` to handle product and event management with actions for adding, removing, and updating products and events.
- Created `useStorageUnitStore` for managing storage unit statuses, including load tracking and state updates.
- Developed `useVehicleStore` for vehicle management, including load and state updates.
- Implemented `useChartStore` for managing measurement data and visualization settings.
- Added `useDroppedObjectsStore` for handling dropped objects in visualization zones, including object manipulation actions.
- Created `useZone3DWidgetStore` for managing 3D widget data in zones, including position and rotation updates.
- Introduced `useZoneStore` for managing selected zone states and widget configurations.
2025-04-22 14:28:29 +05:30
Jerald-Golden-B 78b9663d0f feat: Implement socket responses for collaboration features including model updates, line management, and zone handling
feat: Add temporary markdown files for simulation actions, events, products, and triggers

feat: Create events store with actions for managing events, points, actions, and triggers, including syncing with product store
2025-04-21 16:49:03 +05:30
Jerald-Golden-B 54cc3deb98 folder structure change 2025-04-21 11:53:42 +05:30