Commit Graph

44 Commits

Author SHA1 Message Date
gpt-engineer-app[bot] 973e7219a8 Save plan in Lovable 2026-02-27 19:43:09 +00:00
gpt-engineer-app[bot] 1e3911ba0a Code edited in Lovable Code Editor
Edited UI in Lovable
2026-02-27 03:15:10 +00:00
gpt-engineer-app[bot] 5c98b53fe1 Export PDF report
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
2026-02-27 03:00:17 +00:00
gpt-engineer-app[bot] 407e6c9f13 Changes 2026-02-27 03:00:17 +00:00
gpt-engineer-app[bot] 2d39fcf68d Add smart measurement tools
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
2026-02-27 02:58:19 +00:00
gpt-engineer-app[bot] d367d2d1c9 Changes 2026-02-27 02:58:18 +00:00
gpt-engineer-app[bot] 7d4fd06bb0 Save plan in Lovable 2026-02-27 02:55:47 +00:00
gpt-engineer-app[bot] f258de525a Add edges render mode
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
2026-02-27 02:47:55 +00:00
gpt-engineer-app[bot] c9a91ebc7a Changes 2026-02-27 02:47:54 +00:00
gpt-engineer-app[bot] 9d9018d83a Save plan in Lovable 2026-02-27 02:46:40 +00:00
gpt-engineer-app[bot] 7b08ed5ad3 Add IFC to GLB conversion
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
2026-02-27 02:36:50 +00:00
gpt-engineer-app[bot] 11f16eff5a Changes 2026-02-27 02:36:49 +00:00
gpt-engineer-app[bot] 09d6b381a4 Add OBJ/STL to GLB conversion
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
2026-02-27 02:31:30 +00:00
gpt-engineer-app[bot] 57b38437e7 Changes 2026-02-27 02:31:29 +00:00
gpt-engineer-app[bot] a16b373c1f Add side-by-side compare mode
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
2026-02-27 02:16:41 +00:00
gpt-engineer-app[bot] de0565dac1 Changes 2026-02-27 02:16:40 +00:00
gpt-engineer-app[bot] 6745b0ec64 Update site info for publish
Edited UI in Lovable
2026-02-27 02:13:52 +00:00
gpt-engineer-app[bot] 060c6230e1 Add grid and wireframe controls
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
2026-02-27 02:04:22 +00:00
gpt-engineer-app[bot] c0f153df1c Changes 2026-02-27 02:04:21 +00:00
gpt-engineer-app[bot] 9dd45c96de Fix header text
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
2026-02-27 01:58:16 +00:00
gpt-engineer-app[bot] b326d9194f Changes 2026-02-27 01:58:16 +00:00
gpt-engineer-app[bot] 86edacd7cc Visual edit in Lovable
Edited UI in Lovable
2026-02-27 01:57:29 +00:00
gpt-engineer-app[bot] c47b576caa Adiciona anotações visuais
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
2026-02-27 01:55:52 +00:00
gpt-engineer-app[bot] fbc279ff0a Changes 2026-02-27 01:55:52 +00:00
gpt-engineer-app[bot] fbc20ae717 Adicionar captura de screenshot
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
2026-02-27 01:14:49 +00:00
gpt-engineer-app[bot] cb912b8f62 Changes 2026-02-27 01:14:49 +00:00
gpt-engineer-app[bot] 8cced1a146 Adicionado medição 3D
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
2026-02-27 01:13:10 +00:00
gpt-engineer-app[bot] 379f3f96e6 Changes 2026-02-27 01:13:10 +00:00
gpt-engineer-app[bot] 1709a8e9e4 Add QR image tracking
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
2026-02-27 01:10:09 +00:00
gpt-engineer-app[bot] eb44d8352d Changes 2026-02-27 01:10:09 +00:00
gpt-engineer-app[bot] 83720b785d Render XR 3D with passthrough
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
2026-02-27 01:07:02 +00:00
gpt-engineer-app[bot] c83f6ba9af Changes 2026-02-27 01:07:02 +00:00
gpt-engineer-app[bot] 769dc36e03 Adicionar gravação de voz no checklist
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
2026-02-27 01:04:27 +00:00
gpt-engineer-app[bot] 39943064a3 Changes 2026-02-27 01:04:27 +00:00
gpt-engineer-app[bot] e4447604b8 Fine tuning controls added
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
2026-02-27 01:00:36 +00:00
gpt-engineer-app[bot] 7554caa217 Changes 2026-02-27 01:00:36 +00:00
gpt-engineer-app[bot] b8186e6677 Implement checklist UX features
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
2026-02-27 00:55:33 +00:00
gpt-engineer-app[bot] 96e316aa8e Changes 2026-02-27 00:55:33 +00:00
gpt-engineer-app[bot] f6023e3cb3 Add procedural I-beam demo
Implements a GLB demo generator for a steel I-beam (IPE 200) and a UI button to load it as a sample model. Adds generateDemoBeamGLB utility, integrates with Index.tsx to generate and load the demo GLB, and updates UI state to handle loading.

X-Lovable-Edit-ID: edt-5a8e10ef-027a-40be-9853-f8bc55818d44
2026-02-27 00:48:39 +00:00
gpt-engineer-app[bot] 75f80bb7fe Changes 2026-02-27 00:48:39 +00:00
gpt-engineer-app[bot] 30c8ea4681 Implement XR viewer scaffolding
Adds WebXR industrial inspection UI with 3D model viewer and XR session scaffolding:
- Implemented ModelViewer.tsx using Three.js (GLTF loading, grid, orbit controls)
- Enabled Viewer page to display model info and XR entry
- Added XRSession page with placeholder passthrough and manual placement logic
- Introduced Zustand store for model state and tuning parameters
- Updated App routing to include /viewer and /xr routes
- Updated index UI to support GLB import and progress indicators
- Integrated design system and Tailwind config enhancements
- Updated index.css with industrial theme and font stacks

X-Lovable-Edit-ID: edt-62015b02-7bf3-4880-954d-fc8aceb69418
2026-02-27 00:41:07 +00:00
gpt-engineer-app[bot] 1cc84fb1f1 Changes 2026-02-27 00:41:06 +00:00
gpt-engineer-app[bot] dc6b44fef9 Save plan in Lovable 2026-02-27 00:38:36 +00:00
Lovable b331aa1a7d template: new_style_vite_react_shadcn_ts_testing_2026-01-08 2025-01-01 00:00:00 +00:00