Skip to content

Commit 17a3989

Browse files
committed
feat(profile): implement custom profile photo management with cropping
replaces the generic editable image component with a dedicated system for profile avatars. includes a context menu for viewing, uploading, and removing photos, along with a custom canvas-based cropping tool and drag-and-drop support for improved control over user profile images.
1 parent 158dc16 commit 17a3989

24 files changed

Lines changed: 1191 additions & 20 deletions

projects/client/i18n/meta/bg-bg.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Имате въпроси относно използването на нашия бранд? Свържете се с нас."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Виж снимката"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Качи снимка"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Премахни снимката"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Виж профилната си снимка"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Качи нова профилна снимка"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Премахни профилната си снимка"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Плъзни изображението, за да го наместиш идеално за големия екран"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/da-dk.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Har du spørgsmål om brugen af vores brand? Kontakt os endelig."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Se billede"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Upload billede"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Fjern billede"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Se dit profilbillede"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Upload et nyt profilbillede"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Fjern dit profilbillede"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Træk i billedet for at justere det – så er du helt klar til din næste hyggelige filmaften."
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/de-de.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Haben Sie Fragen zur Verwendung unserer Marke? Kontaktieren Sie uns."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Foto ansehen"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Foto hochladen"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Foto entfernen"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Ihr Profilfoto ansehen"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Ein neues Profilfoto hochladen"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Ihr Profilfoto entfernen"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Bild zum Anpassen ziehen"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/en-au.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Have questions about using our brand? Reach out."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "View photo"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Upload photo"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Remove photo"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "View your profile photo"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Upload a new profile photo"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Remove your profile photo"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Drag the image to adjust"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/en.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,6 +4041,62 @@
40414041
"ios"
40424042
]
40434043
},
4044+
"button_text_view_photo": {
4045+
"default": "View photo",
4046+
"description": "Text for the menu item that allows users to view their current profile photo.",
4047+
"exclude": [
4048+
"android",
4049+
"ios"
4050+
]
4051+
},
4052+
"button_text_upload_photo": {
4053+
"default": "Upload photo",
4054+
"description": "Text for the menu item and confirm button that allows users to upload a new profile photo.",
4055+
"exclude": [
4056+
"android",
4057+
"ios"
4058+
]
4059+
},
4060+
"button_text_remove_photo": {
4061+
"default": "Remove photo",
4062+
"description": "Text for the menu item that allows users to remove their current profile photo.",
4063+
"exclude": [
4064+
"android",
4065+
"ios"
4066+
]
4067+
},
4068+
"button_label_view_photo": {
4069+
"default": "View your profile photo",
4070+
"description": "Aria-label for the button that opens the full-size profile photo viewer.",
4071+
"exclude": [
4072+
"android",
4073+
"ios"
4074+
]
4075+
},
4076+
"button_label_upload_photo": {
4077+
"default": "Upload a new profile photo",
4078+
"description": "Aria-label for the button that opens the photo upload and crop dialog.",
4079+
"exclude": [
4080+
"android",
4081+
"ios"
4082+
]
4083+
},
4084+
"button_label_remove_photo": {
4085+
"default": "Remove your profile photo",
4086+
"description": "Aria-label for the button that removes the current profile photo.",
4087+
"exclude": [
4088+
"android",
4089+
"ios"
4090+
]
4091+
},
4092+
"label_drag_image_to_adjust": {
4093+
"default": "Drag the image to adjust",
4094+
"description": "Hint label in the profile photo crop dialog instructing users to drag to reposition.",
4095+
"exclude": [
4096+
"android",
4097+
"ios"
4098+
]
4099+
},
40444100
"text_private_account": {
40454101
"default": "Private account",
40464102
"description": "Text for the section that allows users to toggle privacy.",

projects/client/i18n/meta/es-es.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "¿Tiene alguna duda sobre el uso de nuestra marca? Contacte con nosotros."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Ver foto"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Subir foto"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Eliminar foto"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Ver tu foto de perfil"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Subir una nueva foto de perfil"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Eliminar tu foto de perfil"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Arrastra la imagen para ajustarla"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/es-mx.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "¿Alguna pregunta sobre el uso de nuestra marca? Escríbenos."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Ver foto"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Subir foto"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Quitar foto"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Ver tu foto de perfil"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Subir una nueva foto de perfil"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Eliminar tu foto de perfil"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Arrastra la imagen para ajustarla, ¡que quede de película!"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/fr-ca.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Besoin d'aide avec notre image de marque? Écrivez-nous."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Voir la photo"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Téléverser"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Supprimer"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Voir votre photo de profil"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Téléverser une nouvelle photo de profil"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Supprimer votre photo de profil"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Glissez l'image pour ajuster le cadrage, comme au cinéma d'ici !"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/fr-fr.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Vous avez des questions sur l'utilisation de notre marque ? Contactez-nous."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Voir la photo"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Charger une photo"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Supprimer la photo"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Voir votre photo de profil"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Charger une nouvelle photo de profil"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Supprimer votre photo de profil"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Faites glisser l'image pour l'ajuster"
29843005
}
29853006
}
29863007
}

projects/client/i18n/meta/it-it.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,6 +2981,27 @@
29812981
},
29822982
"text_branding_questions_intro": {
29832983
"default": "Hai domande sull'uso del nostro marchio? Contattaci."
2984+
},
2985+
"button_text_view_photo": {
2986+
"default": "Vedi foto"
2987+
},
2988+
"button_text_upload_photo": {
2989+
"default": "Carica foto"
2990+
},
2991+
"button_text_remove_photo": {
2992+
"default": "Rimuovi foto"
2993+
},
2994+
"button_label_view_photo": {
2995+
"default": "Visualizza la tua foto profilo"
2996+
},
2997+
"button_label_upload_photo": {
2998+
"default": "Carica una nuova foto profilo"
2999+
},
3000+
"button_label_remove_photo": {
3001+
"default": "Rimuovi la tua foto profilo"
3002+
},
3003+
"label_drag_image_to_adjust": {
3004+
"default": "Trascina l'immagine per l'inquadratura perfetta"
29843005
}
29853006
}
29863007
}

0 commit comments

Comments
 (0)