auto-claude: subtask-2-3 - Create PhotoCaptureDialog component for photo confirmation

Add PhotoCaptureDialog widget component that:
- Shows captured photo preview with proper constraints
- Displays confirmation message using delivery name
- Provides Cancel and Upload action buttons
- Uses theme-aware styling with colorScheme
- Handles image loading errors gracefully
- Includes proper i18n support (EN/FR)

Added localization keys:
- confirmPhoto
- uploadPhotoConfirmation (with name placeholder)
- uploadingPhoto
- photoUploadSuccess
- photoUploadFailed
- cameraError
- uploadError
- serverError
- retake

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-20 11:30:49 -05:00
parent bcc938fde1
commit e5f267b4f7
6 changed files with 317 additions and 2 deletions
+30 -1
View File
@@ -117,5 +117,34 @@
}
},
"noNotesMessage": "Aucune note associée à cette livraison",
"close": "Fermer"
"close": "Fermer",
"confirmPhoto": "Confirmer la photo",
"uploadPhotoConfirmation": "Telecharger cette photo pour {name}?",
"@uploadPhotoConfirmation": {
"placeholders": {
"name": {"type": "String"}
}
},
"uploadingPhoto": "Telechargement de la photo...",
"photoUploadSuccess": "Photo telechargee avec succes",
"photoUploadFailed": "Echec du telechargement: {statusCode}",
"@photoUploadFailed": {
"placeholders": {
"statusCode": {"type": "int"}
}
},
"cameraError": "Erreur de camera: {message}",
"@cameraError": {
"placeholders": {
"message": {"type": "String"}
}
},
"uploadError": "Erreur de telechargement: {message}",
"@uploadError": {
"placeholders": {
"message": {"type": "String"}
}
},
"serverError": "Erreur serveur - Veuillez contacter le support",
"retake": "Reprendre"
}