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:
+30
-1
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user