feat(pet): circular avatar cropping with zoom before upload

Adds an AvatarCropDialog step (react-easy-crop, cropShape="round")
between file selection and the presigned-URL upload in AvatarUpload:
the user crops/zooms a circular region, which is re-encoded via canvas
to the original file's mime type before the existing upload flow runs.
File-size/type validation moved from uploadFile into the new
selectFile gate that opens the dialog.

Gitea #13
This commit is contained in:
admin committed 2026-08-12 12:52:32 +02:00
1 parent 5fbf39593d
commit 6fd5f2dff8
5 files changed
+256 -21

No files matched your search

+1
View File
@@ -39,6 +39,7 @@
"prisma": "^7.8.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-easy-crop": "^6.2.3",
"react-hook-form": "^7.77.0",
"react-intersection-observer": "^10.0.3",
"server-only": "^0.0.1",