-
Notifications
You must be signed in to change notification settings - Fork 69
profile photo for users #635
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
Conversation
they can also crop the photos (Implemented using Minimagick and JavaScript) into a square shape. Issue #627.
On the mobile if you go to back without selecting photo the modal opens and you can send it without selecting photo.
@markets the problem with codeclimate coverage is that "avatar.js" is not covered? |
hello @franpb14 looks cool! I just made a quick review and I have some comments:
|
Yes, I was looking for a way to mark that dragging from those edges made the resize, but yes, it looks a bit weird. Do I just put them normal or do I look for a way to mark it? @markets |
How it will look "normal"? |
As top and left edge |
Ah! got it, then I'd say yes 😃 |
I've also deleted the minimagick gem and all edges have the same width. Issue #635.
@franpb14 I pushed some clean up here: 608680f Pending stuff before testing:
@sseerrggii maybe Pau can help us with that? |
@sauloperez could you help with that? Prepare ENV vars for AWS in infra: https://github.com/coopdevs/timeoverflow-provisioning (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_BUCKET, AWS_REGION) for staging and production |
it will work on staging? or I should wait @markets ? |
We should wait @sseerrggii, we'll need to create the bucket and provision the ENV vars first. |
@sseerrggii and I thought this could be a good fit for @konykon with the help of @danypr92 |
Ok we will do it. |
@sseerrggii @markets ENV vars for AWS added. |
Nice! thanks @konykon 👍🏼 @sseerrggii if staging server is provisioned, we can deploy this branch to staging. |
When I tested on staging I got an error, details from Rollbar:
Maybe we need to install ImageMagick on staging and production too? @markets |
Ah right! we'll also need |
|
sounds like something you could also do if you have some room @konykon . It's basically installing the |
@sseerrggii Installed, can you try again? |
@sseerrggii @konykon now that I see this screenshot, I'd like to suggest to create 2 different buckets:
|
@markets I created to buckets but with "-" insted of "_" because it's a not allowed character
What is the next step? |
ok! thanks @sseerrggii! Now, ideally the |
@markets I adapted the bucket and region variables but the same error appears. After the last intent another error appeared as well, it seems to be related with the Ruby app. |
Maybe we just need to re-deploy (or re-start) the app? Because the Rails master process doesn't know about those new ENV vars added (they are read here at boot time: https://github.com/coopdevs/timeoverflow/pull/635/files#diff-188abe2a4493506d81577fbbee0b279b889e59f50d509402fbbfb620c8e58780R9-R14), so probably a process re-start will pick them up. |
That's it @markets restarting the app works fine! 🎉 |
👋🏼 @sseerrggii @konykon I just checked in production, and I got this error message: So, it seems a miss-configuration of the bucket region?
Not sure why 🤔 , as this seems ok: https://github.com/coopdevs/timeoverflow-provisioning/pull/192/files Did you provision the production server with latest changes? |
Thank you so much to everybody involved in this project! 👏🏼 ⌛ 🚀 |
The feature #627 is finished, now the users can upload and crop their phots from their computer. I used "ActiveStorage" to store the photos and is configured to use /storage on local, to crop the photos I used "MiniMagick" and JavaScript. For the resize I used "image_processing".
Here is the video with the feature working:
Issue_627_PC.mp4
And here is the video with the feature working on mobile (I implemented more front-end, so I saw it as appropriate):
Issue_627_mobile.mp4
Note: the responsive works like this in develop that's why I haven't changed it, it seems that reaching the xs size doesn't collapse as it should.
closes #627.