Commit Graph

21 Commits

Author SHA1 Message Date
Poovizhi99 fcd67f4528 Refactor user data retrieval across visualization components
- 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.
2025-06-13 17:11:28 +05:30
Gomathi 0d98892dff updated api and socket for builder and visualization 2025-06-04 11:55:59 +05:30
Vishnu 76f0c04844 Add id attribute to real-time visualization canvas for improved accessibility 2025-05-12 09:11:53 +05:30
Nalvazhuthi 307d2eabee Refactor API service functions for improved error handling and code consistency
- Updated signUpApi, deleteZonesApi, getZonesApi, setZonesApi, and other API functions to enhance error logging with echo.error statements.
- Reformatted function parameters for better readability.
- Removed unnecessary comments and console logs.
- Ensured consistent error messages across all API functions.
- Improved code structure for better maintainability.
2025-05-08 15:19:21 +05:30
Vishnu ccd6298d17 Refactor canvas element references to use consistent ID for workspace 2025-05-08 14:18:02 +05:30
Vishnu ad2b6b96f3 Add tooltips to various components and improve styling for better user experience 2025-05-07 13:56:31 +05:30
Nalvazhuthi bdfe0900d1 Refactor styles across components to utilize variable-based border-radius for consistency and improved maintainability. Added SkeletonUI component and corresponding styles for loading states. 2025-05-05 18:02:04 +05:30
Vishnu fb0da32504 Merge remote-tracking branch 'origin/v2' into v2-ui 2025-05-02 18:52:30 +05:30
Vishnu 44e3f5c207 Refactor RealTimeVisualization component and handle widget drop functionality
- Commented out the handleDrop function in RealTimeVisualization.tsx and moved its logic to a new utility function createHandleDrop for better separation of concerns.
- Updated Project.tsx to utilize the new createHandleDrop function, improving readability and maintainability.
- Enhanced styling for the scene container and real-time visualization components to improve layout and responsiveness.
- Removed unnecessary styles and consolidated button and input styles for consistency.
- Cleaned up unused imports and variables in various files to streamline the codebase.
2025-05-02 17:39:11 +05:30
Vishnu db162c9ffa refactor: Update icon imports and improve UI components; enhance styles for better layout and responsiveness; modify event properties and simulation player functionality 2025-05-02 16:43:43 +05:30
Jerald-Golden-B 01a03f5166 Refactor action updates to include productId in updateAction calls across mechanics components; enhance event handling in product store and trigger management. Add clear functions for various stores to reset state. Update action and trigger management to prevent duplicates and ensure integrity. Adjust initial load actions to use consistent naming conventions. 2025-05-02 13:13:41 +05:30
Nalvazhuthi 6a51fbca61 updated realTime vis panel smooth transition 2025-04-30 18:20:36 +05:30
Vishnu 328b045a7c Merge remote-tracking branch 'origin/v2' into v2-ui 2025-04-28 09:30:13 +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
Vishnu d7f1c5224d feat: Refactor icon components and update button elements for improved accessibility and consistency 2025-04-24 14:05:55 +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 54cc3deb98 folder structure change 2025-04-21 11:53:42 +05:30
Nalvazhuthi 7b2d77e273 updated donut chart 2025-04-14 18:14:40 +05:30
Nalvazhuthi 5066638782 bug fix 2025-04-14 18:09:36 +05:30
Nalvazhuthi 513d4d0958 merged to main 2025-04-11 18:44:48 +05:30
Nalvazhuthi 4edb3cfd7d updated folder structure 2025-04-11 18:08:47 +05:30