diff --git a/frontend/package.json b/frontend/package.json
index e0838da..104e62f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "checklist-frontend",
"private": true,
- "version": "1.0.81",
+ "version": "1.0.82",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx
index 11ae342..47b55e7 100644
--- a/frontend/src/App.jsx
+++ b/frontend/src/App.jsx
@@ -4737,44 +4737,48 @@ function InspectionModal({ checklist, existingInspection, user, onClose, onCompl
- {/* Answer input based on type */}
-
-
-
- {
- setAnswers(prev => ({
- ...prev,
- [currentQuestion.id]: { ...prev[currentQuestion.id], value: newValue }
- }))
- }}
- onSave={() => setTimeout(() => saveAnswer(currentQuestion.id), 500)}
- />
-
+ {/* Answer input based on type - NO mostrar para photo_only */}
+ {currentQuestion.options?.type !== 'photo_only' && (
+
+
+
+ {
+ setAnswers(prev => ({
+ ...prev,
+ [currentQuestion.id]: { ...prev[currentQuestion.id], value: newValue }
+ }))
+ }}
+ onSave={() => setTimeout(() => saveAnswer(currentQuestion.id), 500)}
+ />
+
+ )}
- {/* Observations */}
-
-
-
+ {/* Observations - NO mostrar para photo_only */}
+ {currentQuestion.options?.type !== 'photo_only' && (
+
+
+
+ )}
{/* Photos */}
{currentQuestion.allow_photos && (
@@ -4864,13 +4868,6 @@ function InspectionModal({ checklist, existingInspection, user, onClose, onCompl
)}
-
- {/* Comentarios removidos que revelaban IA */}
- {checklist.ai_mode === 'assisted' && answers[currentQuestion.id]?.observations.includes('[IA Sugiere') && (
- ✓ Sugerencia generada
- )}
-
- )}
)}
diff --git a/frontend/src/QuestionAnswerInput.jsx b/frontend/src/QuestionAnswerInput.jsx
index 853b811..36fdce0 100644
--- a/frontend/src/QuestionAnswerInput.jsx
+++ b/frontend/src/QuestionAnswerInput.jsx
@@ -281,6 +281,17 @@ export function QuestionAnswerInput({ question, value, onChange, onSave }) {
)
}
+ // PHOTO_ONLY (solo foto, sin campo de respuesta)
+ if (questionType === 'photo_only') {
+ return (
+
+
+ 📸 Esta pregunta solo requiere fotografías. Adjunta las imágenes en la sección de fotos abajo.
+
+
+ )
+ }
+
// Fallback para tipos desconocidos
return (
diff --git a/frontend/src/QuestionTypeEditor.jsx b/frontend/src/QuestionTypeEditor.jsx
index 82d48c1..f9ae8a2 100644
--- a/frontend/src/QuestionTypeEditor.jsx
+++ b/frontend/src/QuestionTypeEditor.jsx
@@ -22,7 +22,8 @@ const QUESTION_TYPES = [
{ value: 'text', label: '📝 Texto Libre', icon: '✏️' },
{ value: 'number', label: '🔢 Número', icon: '#️⃣' },
{ value: 'date', label: '📅 Fecha', icon: '📆' },
- { value: 'time', label: '🕐 Hora', icon: '⏰' }
+ { value: 'time', label: '🕐 Hora', icon: '⏰' },
+ { value: 'photo_only', label: '📸 Solo Fotografía', icon: '📷' }
]
const STATUS_OPTIONS = [