Commit graph

7 commits

Author SHA1 Message Date
Gabriel Santana de Menezes
59a5c61585 feat: add MinIO image server and profile photo upload
Infrastructure: MinIO service added to docker-compose (prod + dev) with
minio-init container that creates the avatars bucket with public read
policy. Traefik routes minio.task.beetech.dev → port 9000.

Backend: native MinIO SDK integration via MinioStorageService;
UploadUserPhotoUseCase validates 5 MB limit and image content-type;
new POST /auth/profile/photo endpoint (multipart). All hardcoded
ui-avatars.com fallback URLs removed from 6 use cases — backend now
returns null when user has no photo.

Frontend: ProfilePage gains clickable avatar with camera overlay,
file picker, preview, and photo upload on save. UserAvatar gains
onError handler for broken URLs and xs size. OrganizationAdminPage
replaces hardcoded ui-avatars.com with UserAvatar component.

CI/CD: deploy-main.yml passes 5 new MinIO secrets to the server and
writes them to .env.production.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 18:01:59 -04:00
Gabriel Santana de Menezes
3c8f843be9 tentando outra forma de ler os dados 2026-05-13 19:07:50 -04:00
Gabriel Santana de Menezes
7b33b539b0 savepoint 2026-05-13 18:56:56 2026-05-13 18:56:56 -04:00
Gabriel Santana de Menezes
4619ed6d38 savepoint 2026-05-13 18:52:36 2026-05-13 18:52:36 -04:00
Gabriel Santana de Menezes
b510246eb5 adicionando variaveis faltantes 2026-05-13 18:47:25 -04:00
Gabriel Santana de Menezes
5620c71ed3 fix: removing dockerignore 2026-05-12 20:06:44 -04:00
Gabriel Santana de Menezes
b87ab63ac2 chore: deploy 2026-05-12 20:06:44 -04:00