-
Notifications
You must be signed in to change notification settings - Fork 71
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
Storage of Avatar Images internally (as opposed to asking for URL) #3299
Comments
Alright, @dmtrjsg, designs for both the Create and Edit Membership dialogs can be found here: https://www.figma.com/file/GlgN8uBRtvtMJtiOsdtDF7/Pioneer-Design?node-id=10799%3A567889 Notes:
|
@toiletgranny Agreed! I guess preview is also not needed here, I bet you thought about it already.. Perhaps its safe to remove the drop zone variant by this time as Choose file is perfect :) |
@toiletgranny can we pls add small preview in a circle pls for the avatar |
@dmtrjsg If we can spend a bit more time on this, then sure! I updated the designs, and here they are — https://www.figma.com/file/GlgN8uBRtvtMJtiOsdtDF7/Pioneer-Design?node-id=10804%3A577502 |
@kdembler is the backend built already? Is there a place where we could use it for our mirroring feature dev? |
Yep, yep, there is an instance at https://atlas-services.joystream.org/avatars To upload you run a POST: const formData = new FormData()
formData.append('file', croppedBlob, `upload.${croppedBlob.type === 'image/webp' ? 'webp' : 'jpg'}`)
const response = await axios.post<{ fileName: string }>(AVATAR_SERVICE_URL, formData, {
headers: {
'Content-Type': 'multipart/form-data',
},
}) As a response, you get back an object with single field called |
@WRadoslaw fyi: Discussed the implication on the design of the Externally managed Pioneer which is unlikely to point to Atlas for Avatar Storage. As a fallback scenario when the Backend URL is undefined for this module, the modal will still have Avatar URL variation. |
Tested on https://dao-git-carthage-joystream.vercel.app/ @dmtrjsg Using different env parameters I was able to see only a fallback scenario 2022-09-29.12.46.28.mov |
@ivanturlakov sorry to hear that, pls try to test on this instance: https://pioneer-2.vercel.app/ |
@dmtrjsg same results on https://pioneer-2.vercel.app/ |
Will need to sync up with @thesan to advise, thanks for trying will come back to you asap! |
@ivanturlakov pls test this on Cartahge env, and we will update the config for env to include the avatar service now. the env will be 44.201.112.198.nip.io Will be ready in an hour |
Tested on https://dao-git-carthage-joystream.vercel.app/ ✅ Creating via faucet If file size > 1Mimg path: https://atlas-services.joystream.org/avatars/b3ebb15e-4366-4a13-86c6-a9b376e7eb22.jpeg |
@WRadoslaw what's the max size we allow? We need to add to the validation error. |
Supreseded by So good to be released as is for the time being |
Context
Ensure less friction and better experience for all users, since avatar image via URL come with many problems. Atlas team is building a simple back end service
And corresponding adjustments to the onboarding flow
Scope
Info
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: