From 6455d351ddaf5d401be8c20b31cc5279b81b5226 Mon Sep 17 00:00:00 2001 From: ronalds Date: Fri, 5 Dec 2025 05:38:05 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Frontend=20v1.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix aplicado: Ahora cuando envías una imagen en el chat: Se sube al servidor (S3) El servidor devuelve la URL permanente en attached_files El frontend actualiza el mensaje del usuario reemplazando la blob URL con la URL de S3 Se libera la blob URL antigua para evitar memory leaks --- frontend/package.json | 2 +- frontend/public/service-worker.js | 2 +- frontend/src/App.jsx | 30 ++++++++++++++++++++++++++++-- frontend/src/Sidebar.jsx | 2 +- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 6e5d99f..026c175 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "checklist-frontend", "private": true, - "version": "1.3.0", + "version": "1.3.2", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/public/service-worker.js b/frontend/public/service-worker.js index 5bd0ea7..705f31b 100644 --- a/frontend/public/service-worker.js +++ b/frontend/public/service-worker.js @@ -1,6 +1,6 @@ // Service Worker para PWA con detección de actualizaciones // IMPORTANTE: Actualizar esta versión cada vez que se despliegue una nueva versión -const CACHE_NAME = 'ayutec-v1.3.0'; +const CACHE_NAME = 'ayutec-v1.3.2'; const urlsToCache = [ '/', '/index.html' diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 7ffb3d7..bd8e2ab 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -5206,8 +5206,8 @@ function InspectionModal({ checklist, existingInspection, user, onClose, onCompl )} - {/* Photos */} - {(currentQuestion.photo_requirement !== 'none' || currentQuestion.allow_photos) && ( + {/* Photos - Solo mostrar si NO es 'none' */} + {currentQuestion.photo_requirement !== 'none' && (