Commit Graph

29 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
795c69a3d4 Enhance shadow handling and visibility settings across components 2025-07-28 13:05:32 +05:30
52ac89f8b7 added storage unit to human 2025-07-11 13:14:18 +05:30
6f7f6549db refactor: Comment out decal mapping in Wall component and clean up dashboard styles 2025-07-10 12:20:43 +05:30
3f59f5d2dd refactor: Clean up console log statements and improve component state management in SideBarRight, AssetProperties, WallInstances, WallCreator, and SocketResponses 2025-07-02 11:52:57 +05:30
458abdb9a5 Merge remote-tracking branch 'origin/merge/wall-collab' into main-dev 2025-07-02 11:14:18 +05:30
f17fa1f2f0 Merge branch 'main' into main-dev 2025-07-02 11:06:24 +05:30
1d70212cde Implement code changes to enhance functionality and improve performance 2025-07-01 19:32:49 +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
997775c27e feat: Implement wall asset management features including creation, instances, and rendering; enhance wall properties input validation 2025-06-30 16:21:54 +05:30
8ebd16db83 Merge remote-tracking branch 'origin/dev-r3f-wall' into merge/wall-collab 2025-06-30 15:57:56 +05:30
e589cb22b5 Refactor: Integrate activeLayer and builder store into SelectFloorPlan and LoadBlueprint components; enhance getWallPointsFromBlueprint function with additional parameters for wall creation; update wall handling in WallCreator and PolygonGenerator components. 2025-06-30 12:59:16 +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
812a4f6aef Refactor wall creator and socket responses; update nav mesh components and remove unused pillar functions
- Updated import path for getClosestIntersection in wallCreator.tsx
- Cleaned up socketResponses.dev.tsx by removing unused imports and code, simplifying the component structure
- Modified navMesh.tsx to remove lines prop and adjust NavMeshDetails accordingly
- Refactored navMeshDetails.tsx to remove lines dependency in useEffect
- Updated polygonGenerator.tsx to remove lines prop and commented out unused code
- Added getClosestIntersection helper function for better modularity
- Removed unused pillar-related functions and commented out code in addAndUpdateReferencePillar.ts, addPillar.ts, deletableHoveredPillar.ts, deletePillar.ts, and updateReferencePolesheight.ts
2025-06-27 16:54:38 +05:30
12f1dd1771 Refactor interaction handling: change click events to double-click for DecalInstance, FloorInstance, and Wall components. Prevent event propagation to ensure proper selection behavior. 2025-06-27 15:58:34 +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
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
08208528a5 Add decal management functionality and refactor wall components 2025-06-25 17:20:35 +05:30
587ed6c9d7 Refactor builder store and remove wall store
Refactor builder store and remove wall store

- Consolidated wall-related state management into the builder store by removing the useWallStore.
- Added new properties and setters for wall attributes (thickness, height, materials) in the builder store.
- Introduced SelectedWallProperties and WallProperties components for managing wall properties in the sidebar.
- Created a new floor store for managing floor-related state.
- Added a wall asset store for managing wall assets.
- Implemented a zone store for managing zones and their properties.
- Updated sidebar styles for better layout and appearance.
2025-06-25 15:26:53 +05:30
b49f431ebf Refactor error handling in API services to use console.error instead of throwing errors
- Updated various API service files to replace error throwing with console.error for better logging.
- This change affects services related to aisles, assets, cameras, collaboration, comments, environment, lines, marketplace, simulation, visualization, and zones.
- The modifications aim to improve error handling by logging errors to the console instead of interrupting the flow with thrown errors.
2025-06-24 09:31:45 +05:30
385a64d307 Remove debug log from useWallClassification and update dependencies in WallCreator effect 2025-06-23 14:11:49 +05:30
f593fcd578 Enhance builder functionality by implementing drag-and-drop for lines and points, adding hover effects, and improving wall distance display in the UI. 2025-06-23 13:38:26 +05:30
329acbe397 Refactor code by removing unnecessary lines and comments, and update wall thickness in builder store 2025-06-23 10:54:17 +05:30
54b02541c1 updated 2025-06-23 09:37:53 +05:30
e22a2dc275 first commit 2025-06-10 15:28:23 +05:30