User Story #108
Updated by Bricklou 20 days ago
As a user, I want to upload a custom avatar, so that my identity is visually recognizable across the platform. Acceptance criteria: * [x] My avatar is a square picture, with no rounded corner. Without one, my initials are shown. * [x] [ ] I click my avatar (or drop an image on it) to choose a picture. A pen appears when I hover or focus it. * [x] I crop the picture to a square before it is sent, with a zoom and a preview. * [x] Only PNG, JPG, GIF and WebP images up to 10 MB are accepted (the picture sent is cropped and much smaller), and I am told why a file is refused. * [x] I can remove my picture to go back to my initials. * [x] My avatar shows in the top bar, in the lists of users and of group members, when I am suggested in a search, and on my details page. * [x] I cannot change it when my account signs in through a login provider. It follows the picture of my provider instead. * [x] It works the same whether the instance keeps its files on a local disk or on an S3-compatible storage. Not checked by hand yet: the pen on hover and focus, and dropping an image on the avatar. The rest is covered by tests.