Add a floating XR HUD with opacity, grid, render mode, measure tools, screenshot, and fine-tuning controls, plus joystick-free movement toggle and updated XR interactions integration.
X-Lovable-Edit-ID: edt-9c054839-260a-4f38-8db2-7416a1b5fdf7
Added console-based diagnostics to XRSession.tsx to help debug AR session issues on Quest 3:
- Log store initialization and XR feature support checks via navigator.xr.
- Emit runtime logs for store state changes, session activation, and session end.
- Enhanced AR button to log click and wrap store.enterAR() with console traces for resolution/rejection.
X-Lovable-Edit-ID: edt-22fab2e4-d64c-4e9b-9ef2-093ce20274d8
Refactor XRSession to instantiate a module-level XR store, remove legacy per-call store creation, ensure AR entry is triggered directly from user gesture, and adjust minor XR-related UI and state handling to align with Quest 3 browser expectations.
X-Lovable-Edit-ID: edt-ef87ec06-a98f-4ade-a9b7-e50d2d513233
Refactored XRSession to remove marker bitmap preloading and lazy async store initialization. Replaced complex getXRStore flow with a single getOrCreateXRStore, removed manual bitmap handling, and updated AR start flow to use the centralized store. Simplified UX message on successful XR start.
X-Lovable-Edit-ID: edt-a8250c81-169f-4cc7-8370-4f5068a2c078
Refactor XRSession.tsx to use lazy-initialized XR store with image-tracking via customSessionInit, remove manual navigator.xr.requestSession, and conditionally emulate Quest3 only on localhost. Adds singleton marker bitmap loading and initial XR store fallback, updates to render with updated store and AR entry flow.
X-Lovable-Edit-ID: edt-b777747a-a859-4071-93ad-831f6c0fc336
Added functionality to export inspection reports as PDF including checklist status, measurements, screenshots, and fine-tuning offsets. Integrated generateReport using jsPDF, added export button to Viewer header, and wired data from model store (checklist, measurements, screenshots, fineTuning).
X-Lovable-Edit-ID: edt-a678a22a-5fcf-4bc4-92e0-cc83aeec4537
Implemented a comprehensive Smart Snap + Hover measurement system:
- Added snapPoint and hoverInfo state to store (and related setters).
- Created SmartMeasure utilities for vertex snapping, hole diameter detection, and edge length measurement.
- Enhanced ModelViewer with SmartSnapHandler and HoverDetector, plus measurement overlay for snap ring and hover tooltips.
- Updated measurement flow to use snap point on click and show hover-based dimensions.
- Expanded UI controls to accommodate edge-related measurement features (no breaking changes to existing flows).
X-Lovable-Edit-ID: edt-573656dd-81e9-4840-8e19-32a92ce24dea
Implemented an edge-based rendering option using THREE.EdgesGeometry with a configurable threshold. Updated store to include edgeThresholdAngle and render mode cycle (solid/wireframe/edges). Enhanced ModelViewer to render edges and UI controls to switch modes and adjust edge angle, thickness, and color.
X-Lovable-Edit-ID: edt-5361ed6c-e9a3-4ef6-b7e2-40f24b7ecd18
Implemented client-side IFC support:
- Added convertIFC.ts to parse IFC files via web-ifc and export as GLB using GLTFExporter
- Extended conversion utility to handle IFC and produce GLB blob
- Updated file import flow to accept .ifc, convert to GLB, and load
- Updated UI text and accepted extensions to include IFC
- Wired IFC path into existing index page logic for seamless conversion and loading
X-Lovable-Edit-ID: edt-acd42c51-1cf4-4cbc-8e7b-c5c79ddb3d49
Implements client-side import support for OBJ and STL files with automatic conversion to GLB using OBJLoader/STLLoader and GLTFExporter. Updates include a converter utility, integration in index page to handle conversion, and UI/UX adjustments for streamlined import workflow.
X-Lovable-Edit-ID: edt-befcd392-2925-4291-bb13-0224e3ebfb0c
Enable a comparison view between 3D model and real photo, including upload, toggle, and panel integration. Added ComparePanel component, integrated into Viewer with compareMode toggle, and extended store with compareMode/compareImage support; Viewer layout now splits when comparing.
X-Lovable-Edit-ID: edt-5d8eb329-0a4c-4fdd-8480-0e4c83e2ec50
Implemented UI and state updates to toggle grid visibility and customize wireframe:
- Added Grid toggle button in ViewerControls
- Added wireframe color and thickness controls via a popover
- Integrated grid visibility and wireframe styling into ModelViewer rendering
- Updated store to manage showGrid, wireframeColor, and wireframeThickness
- Wiring ensures grid and wireframe reflect in real-time during inspection
X-Lovable-Edit-ID: edt-65af62ff-0e67-4129-96b6-0e281bfcdf91
Updated Index page to change h1 from "TrackkSteelXR" to "TrackSteelXR" by adjusting the JSX string.
X-Lovable-Edit-ID: edt-7fb1afa4-ff97-4439-b529-752ebfd45c21
Implementa anotação sobre screenshots capturados:
- Adiciona AnnotationEditor para desenhar setas, círculos e textos sobre imagens.
- Integra editor com ScreenshotGallery para editar capturas existentes.
- Atualiza gallery para suportar abertura do editor por item e salvar as annotações como URL anotado.
X-Lovable-Edit-ID: edt-c5fc57ba-5c2a-47a2-91f7-257401616673
Implementada funcionalidade de captura de screenshot da vista 3D atual, incluindo:
- Canvas com preserveDrawingBuffer e suporte a captura via toDataURL
- Botão Capturar na barra de controles para gerar screenshot
- Armazenamento de capturas no estado (ScreenshotGallery) e exibição na página de visualização
- Componente ScreenshotGallery para renderizar previews, download e opção de remoção
X-Lovable-Edit-ID: edt-d6c2e1a3-0186-467c-b6f6-4c180607d728
Implementado sistema de medições no viewer:
- Nova funcionalidade de pontos de medidas com distância em mm
- Raycasting para seleção de pontos e cálculo de distância
- Lista de medições na sidebar e possibilidade de remoção
- Integração com estado (useModelStore) para armazenar pontos, medições e ações relacionadas
X-Lovable-Edit-ID: edt-53469f4b-4c50-4b6b-b68e-72b83d7b55b1
Implement image tracking via WebXR to auto-anchor model to printed QR marker, including tracking marker generation, session handling, and UI adjustments.
X-Lovable-Edit-ID: edt-1bf2a256-cb06-4527-96ef-25bf676c3707
Implement full WebXR rendering session including passthrough, anchoring, and controls:
- Added XRSession page enhancements using @react-three/xr
- Render model inside XR via XROrigin with passthrough
- Integrated fine-tuning controls and visual HUD
- Enabled AR entry flow and updated UI structure for immersive XR mode
X-Lovable-Edit-ID: edt-87e09073-2939-41e4-a956-51b5d9e2440f
Implementei gravação de voz para itens reprovados do checklist usando Web Audio API. Adicionei áudio ao modelo de Checklist, atualizei o store para armazenar audioUrl, criei componente VoiceRecorder e integrei ao InspectionChecklist para gravar, reproduzir e excluir gravações, incluindo atualizações de UI e estado.
X-Lovable-Edit-ID: edt-6a84c183-2a41-4bc6-aa22-044b7a435a1b
Implemented the Fine Tuning system with X/Y/Z position steps of 1mm and Y rotation step of 0.1°, integrated into the 3D viewer. Added FineTuningControls component, wired to model store, updated ModelViewer to apply offsets and rotation, and inserted controls into the Viewer sidebar.
X-Lovable-Edit-ID: edt-9f467b59-61f9-45df-9093-6790b21f6d85
Add inspection checklist panel with per-item approve/reject, notes, and real-time color feedback on model, plus opacity and wireframe controls, and XR render optimizations.
X-Lovable-Edit-ID: edt-44d37583-8d98-483b-837c-6b528ecc44c2