Skip to content
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

Image selection and upload #206

Closed
koke opened this issue Oct 29, 2018 · 8 comments
Closed

Image selection and upload #206

koke opened this issue Oct 29, 2018 · 8 comments

Comments

@koke
Copy link
Member

koke commented Oct 29, 2018

The user should be able insert or edit an image block, and use the media picker to select and upload an image. The image block should show progress while the image is uploading and an error if it fails.

@iamthomasbishop are there existing designs for the image upload progress and error states? I imagine we'd want to keep it close to what Aztec does, but checking just in case.

@iamthomasbishop
Copy link
Contributor

are there existing designs for the image upload progress and error states? I imagine we'd want to keep it close to what Aztec does, but checking just in case.

Yes, and yes :) The picker might end up slightly different, but I think we should utilize the existing progress + error states that we have in Aztec. Here's a recent mockup of the flow – not final, but the general flow is accurate:

screen shot 2018-10-30 at 12 29 38 pm

@koke
Copy link
Member Author

koke commented Nov 6, 2018

From @etoledom:

The bridging part should be straightforward, and the native side is already done for Aztec. From previous tests I believe that the difficulty will be on extracting the code that handles the image selection and upload to be shared between Aztec and Gutenberg.
Estimation: one week time, in case we encounter unexpected problems (that’s highly possible).

1 week per platform

@hypest
Copy link
Contributor

hypest commented Nov 6, 2018

Subtasks

Android:

  • Wire up the "Upload" button to the image picker
  • Update image upload state in editor's UI

@marecar3
Copy link
Contributor

marecar3 commented Jan 18, 2019

Hey @iamthomasbishop, do you maybe have some idea about cancel button while media/image upload it's in the progress?

cc: @SergioEstevao @koke

@iamthomasbishop
Copy link
Contributor

We can probably re-use the interaction model from Aztec.

In-Progress Upload

On iOS

If you tap on an image while it's uploading, you see an Action Sheet with the following:

  • Title: Media Options
  • Actions: Stop upload | Dismiss

On Android

If you tap on an image while it's uploading, you see a Simple Dialog with the following:

  • Title: Stop uploading?
  • Actions: No | Yes

I think in the future we could fine-tune this messaging, but let's leave that for now.

After Upload

Once an image is added to the canvas, tapping on the image itself should do the following:

On iOS

Tapping image shows an Action Sheet with the following:

  • Title: Media Options
  • Actions: Remove image | Edit | Dismiss

On Android

Tapping on the image shows individual Media Settings (Full-Screen Dialog), where the user can remove the image or edit it manually.

@marecar3
Copy link
Contributor

Thanks @iamthomasbishop !

@marecar3
Copy link
Contributor

marecar3 commented Jan 28, 2019

@marecar3
Copy link
Contributor

marecar3 commented Feb 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants