Commit Graph

61 Commits

Author SHA1 Message Date
fcd924eb31 feat: Implement undo and redo functionality for 2D scene controls
- Added useRedoHandler to manage redo actions, including socket communication for wall, floor, zone, and aisle updates.
- Added useUndoHandler to manage undo actions, reversing the effects of previous actions with corresponding socket updates.
- Created UndoRedo2DControls component to handle keyboard shortcuts for undo (Ctrl+Z) and redo (Ctrl+Y).
- Established a Zustand store (useUndoRedo2DStore) to maintain undo and redo stacks, with methods for pushing, popping, and peeking actions.
2025-07-29 17:20:34 +05:30
88361b1623 human bug fix 2025-07-22 10:19:49 +05:30
2fd1cf352c schema changes 2025-07-17 13:07:06 +05:30
1d6d42b358 vehicle to human completed 2025-07-17 12:54:47 +05:30
fe09c3df56 human to conveyor, conveyor to human multiple actions completed 2025-07-17 09:44:08 +05:30
e9053ccd1b human assembly rotation and movement bug fixed 2025-07-14 10:45:24 +05:30
99b51df468 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 18:18:27 +05:30
4baef5fa77 add 2d selection and delete 2025-07-11 16:27:55 +05:30
b58cdf45b0 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-11 13:15:26 +05:30
52ac89f8b7 added storage unit to human 2025-07-11 13:14:18 +05:30
646028f39f feat: add keyboard-based mouse action helper with Zustand integration
- Implemented `mouseActionHelper.ts` to track modifier keys (e.g. CONTROL, SHIFT)
- Dynamically constructs mouse+modifier combos (e.g. left+CONTROL)
- Updates Zustand store (`useMouseNoteStore`) with appropriate notes
- Supports multi-key combinations and cleans up listeners on unmount
2025-07-11 13:06:17 +05:30
992b854e00 Merge remote-tracking branch 'origin/dev-simulation/human' into main-demo 2025-07-10 11:08:30 +05:30
3b4cdc95fc removed the human bug, i dont know if there are any new bugs though. 2025-07-09 16:34:38 +05:30
c3551ef18a Merge remote-tracking branch 'origin/dev-simulation/human' into main-demo 2025-07-08 17:33:55 +05:30
a28333f1d9 feat: Implement deletable event sphere management and refactor point instances for better event handling 2025-07-08 15:16:40 +05:30
bffb1e6037 feat: Refactor point management in PointsCreator and update product store for better event handling 2025-07-08 14:19:09 +05:30
b563fd4162 Merge remote-tracking branch 'origin/main-dev' into main-demo 2025-07-08 10:50:08 +05:30
9881346c7d Merge remote-tracking branch 'origin/dev-simulation/human' into main-demo 2025-07-08 10:32:57 +05:30
82ba6d24bc feat: Remove unused GLB models and enhance asset reset functionality 2025-07-07 16:21:21 +05:30
74094aee9f feat: Add assembly action handling and UI components
- Implemented `useAssemblyHandler` to manage assembly actions for humans.
- Enhanced `useHumanActions` to include assembly action handling.
- Updated `HumanInstance` to support assembly processes and animations.
- Modified `HumanUi` to allow for assembly point configuration and rotation.
- Created `AssemblyAction` component for setting process time and material swap options.
- Updated simulation types to include assembly action properties.
- Adjusted existing action handlers to accommodate assembly actions alongside worker actions.
- Refactored `MaterialAnimator` and `VehicleAnimator` to manage attachment states and visibility based on load.
- Updated product store types to include human point actions.
2025-07-07 15:00:16 +05:30
36421fa70a added new human ui 2025-07-07 10:11:37 +05:30
dee0a96287 Merge remote-tracking branch 'origin/main-dev' into feature/agv-edit 2025-07-05 11:20:50 +05:30
5a0978560c feat: Enhance vehicle simulation with draggable path points and interactive controls 2025-07-05 11:16:31 +05:30
ff02f01430 fix: Update asset animation state handling to ensure correct playback status 2025-07-04 14:02:44 +05:30
02490214d9 feat: Enhance InputWithDropDown to support disabled state
fix: Update Model component to manage animation states and transitions more effectively

feat: Implement worker action handling in useWorkerHandler for material management

feat: Add MaterialAnimator to HumanInstance for dynamic material loading

feat: Extend useTriggerHandler to support interactions between humans and various entities

feat: Create WorkerAction component for managing load capacity and actions

feat: Introduce MaterialAnimator for human instances to visualize material loads

refactor: Update asset store to manage animation completion state

fix: Ensure proper handling of human materials in useHumanStore
2025-07-04 13:14:39 +05:30
7cf82629e9 completed init movement for human 2025-07-03 18:01:11 +05:30
1e715cee50 feat: Enhance human event handling and animation management, including state updates and monitoring 2025-07-03 16:55:30 +05:30
8dd853dd03 feat: Implement selected animation handling and integrate with human mechanics 2025-07-03 15:18:49 +05:30
eb5683eadc feat: Refactor human action handling to replace animatedTravel with worker actions and enhance animation management 2025-07-03 14:23:57 +05:30
98f4d48db2 feat: Refactor human action handling to support animated travel and streamline action structure 2025-07-03 12:11:58 +05:30
b5c69f3335 feat: Add human mechanics and event handling, including UI components and action management 2025-07-03 12:09:31 +05:30
424df54ff7 feat: Enhance asset and human event handling with animation and loop capabilities 2025-07-02 17:31:17 +05:30
7519aa90c6 feat: Implement human simulation features
- Added human event handling in the simulation, including the ability to add, update, and remove human instances.
- Introduced a new Human store to manage human states and actions.
- Updated the simulation context to include human management.
- Enhanced the Points and TriggerConnector components to support human interactions.
- Refactored existing components to integrate human-related functionalities.
- Added HumanInstance and HumanInstances components for rendering human entities in the simulation.
- Updated TypeScript definitions to include human-related types and actions.
2025-07-02 15:07:31 +05:30
458abdb9a5 Merge remote-tracking branch 'origin/merge/wall-collab' into main-dev 2025-07-02 11:14:18 +05:30
64d086f808 feat: Implement wall asset management APIs and socket integration for create, update, and delete operations 2025-07-02 10:49:07 +05:30
d6f6c4c901 Merge remote-tracking branch 'origin/dev-collaboration' into dev-r3f-wall 2025-06-30 18:13:23 +05:30
0a039f34b1 feat: Integrate active tool management across builder components; add deletableWallAsset state and related functionality 2025-06-30 18:11:37 +05:30
364b643c72 feat: Enhance wall asset interaction and management; implement position updates and add closest point calculation utility 2025-06-30 17:48:29 +05:30
1a9aef323a feat: Add selectedWallAsset and selectedFloorAsset state management; implement corresponding setters in useBuilderStore 2025-06-30 16:59:27 +05:30
8ebd16db83 Merge remote-tracking branch 'origin/dev-r3f-wall' into merge/wall-collab 2025-06-30 15:57:56 +05:30
898179c2c1 Refactor: Update project handling and sharing functionalities; integrate shared projects retrieval; enhance user data structure and loading mechanisms; improve input handling in MultiEmailInvite component; adjust wall generation callbacks in DXF processing. 2025-06-30 15:54:41 +05:30
7124a819b6 feat: Implement zone management features including creation, deletion, and updates
- Added zone handling in the Line component for removing and updating zones based on points.
- Enhanced Point component to support snapping and updating zone positions.
- Introduced zone-related API calls for upserting and deleting zones.
- Updated zone store to manage zones more effectively, including methods for removing zones by points and getting zones by point IDs.
- Improved zone instance rendering to handle dynamic point connections.
- Refactored zone creation logic to allow for better interaction and snapping behavior.
- Updated API endpoints for zone operations to use version 1 of the API.
2025-06-30 12:22:42 +05:30
90df6c2b01 Refactor: Update useEffect dependencies to include activeLayer for ReferenceAisle, ReferenceFloor, ReferenceWall; enhance usePointSnapping with zone snapping functionality and add ReferenceZone component for zone management 2025-06-27 18:06:19 +05:30
fa6506c0be Refactor: Remove deprecated API endpoints and implement new zone management features
- Deleted obsolete API files for wall items, layers, lines, and points.
- Introduced new zone management APIs including create, delete, and update functionalities.
- Enhanced zone state management in the store with new properties for height and color.
- Implemented 2D and 3D zone rendering components for better visualization.
- Added asset fetching functionalities for marketplace integration.
- Updated types to accommodate new zone properties and API responses.
2025-06-27 17:51:57 +05:30
540bb44e0c Add floorName property to Floor interface and update related components for floor creation 2025-06-27 16:01:58 +05:30
c73bdf4556 completed floor 2025-06-27 15:44:31 +05:30
64f0cdb148 Refactor builder store and related components: update DecalInstance to manage selectedFloor state, enhance FloorInstance with improved material handling and texture application, and modify FloorGroup to remove unnecessary console log. Update Wall component for better shadow handling and adjust useBuilderStore to change default material values. 2025-06-27 11:56:54 +05:30
04c302ea4c Refactor floor management components and APIs: enhance FloorInstance for shape creation, update FloorInstances to handle floor rendering and UUID tracking, and improve FloorCreator with project and version context. Modify floor store methods for better floor management and integrate API calls for floor upsert and deletion. Adjust wall and point components to support new floor functionalities. 2025-06-27 10:48:48 +05:30
5003dc3504 Refactor floor management APIs: implement getFloorsApi, deleteFloorApi, and upsertFloorApi for enhanced floor data handling. Update FloorCreator for improved point snapping and floor creation logic. Modify ReferencePoint to include UUID and user data. Adjust usePointSnapping to handle temporary points more effectively. 2025-06-26 18:23:01 +05:30
1e88006780 Refactor aisle API services: remove createAisleApi, update deleteAisleApi to include versionId, and modify wall asset APIs for consistency in endpoint naming. Enhance floor and wall store functionality with new setters and methods for managing floors and walls, including decal handling. Introduce FloorInstance and FloorInstances components for rendering floor data, and implement FloorCreator for interactive floor creation. Add reference floor visualization with snapping capabilities. Update wall API services for improved error handling and response management. 2025-06-26 17:47:32 +05:30