-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user profile picture #4431
Add user profile picture #4431
Conversation
8a7309e
to
4f12d13
Compare
6debe8c
to
8acea4f
Compare
indico/migrations/versions/20200428_1807_532f0ea25bb1_add_user_profile_picture.py
Outdated
Show resolved
Hide resolved
indico/migrations/versions/20200428_1807_532f0ea25bb1_add_user_profile_picture.py
Outdated
Show resolved
Hide resolved
b37801d
to
eb6a030
Compare
When testing with my octocat avatar it somehow got completely destroyed during the conversion. Not sure why this happened though... It also looks a bit strange right now if the picture is smaller than the circle where it's displayed. When I tried it with a non-transparent version it worked fine btw and looks great! |
Regarding the upload UI, would it make sense to have a separate box for it on the page instead of including it in the "Details" box? |
I'll look into this. Probably something that I need to pass to
I've tried a few variations, but I'm not crazy about any of them.
|
True. Doesn't look super amazing. Any other ideas here @indico/development-team? |
I personally like both the top label and bottom label ideas. IMO, they look good. I would probably expect to see that on top rather than the bottom part of the page. |
Two concerns:
Personally, I would just leave it as it is, with a single box. |
Maybe it's better to leave it in the same box after all. I don't think it looks bad if it's in the same box anyway. I don't see why the picture cannot be in basic details. |
I'm sorry. I accidentally clicked "Close and comment" . :( |
@ThiefMaster, upload of transparent images is now working fine. I was removing the alpha channel. This fixes it: - if pic.mode != 'RGB':
+ if pic.mode not in {'RGB', 'RGBA'}:
pic = pic.convert('RGB') |
I like the top options, I'm not sure why but it seems straightforward to have a picture as one of the first details to be edited. Apart from that, perhaps I could suggest having the image squared (side-by-side) with the details inputs? The same way we're now using in #4408. |
234916b
to
dbdfd2f
Compare
Partially addresses #936.
This PR adds:
Functional testing instructions
Upload profile pic:
user/<user_id>/profile/
)user/<user_id>/dashboard/
)Delete profile pic:
user/<user_id>/profile/
)user/<user_id>/dashboard/
)Screenshots