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

Offline Support: Inconsistent Overlay #11428

Closed
diegoreymendez opened this issue Apr 8, 2019 · 9 comments · Fixed by #11749
Closed

Offline Support: Inconsistent Overlay #11428

diegoreymendez opened this issue Apr 8, 2019 · 9 comments · Fixed by #11749

Comments

@diegoreymendez
Copy link
Contributor

diegoreymendez commented Apr 8, 2019

Adding media to a post - you can take a photo to add or insert one from the camera roll. An overlay is displayed over the image “failed to insert media, please tap for options.” Tapping the image brings up an action sheet with the options: remove image, retry, or dismiss. After dismissing the action sheet, the overlay disappears. Tapping on the image again brings up the action sheet.
Steps:

  1. Create new post while offline
  2. Select media to upload
  3. Tap the media to activate the action sheet
  4. Tap outside of the action sheet
  5. Return or add characters to the editing space
  6. Scroll up and down in the view -- the overlay disappears
    --
@yaelirub
Copy link
Contributor

yaelirub commented May 6, 2019

@diegoreymendez , what is the expected behavior?

@yaelirub
Copy link
Contributor

I'm unable to reproduce.
When dismissing the action sheet. I still see the overlay.
Tested in Aztec and Gutenberg.
image_ overlay

I do think however that the notice showing up with "1 post, 1 file not uploaded" is annoying as it is blocking the action sheet and not needed as the user is offered to take action from the action sheet"

@megsfulton , what do you think about removing the notice in case media upload failed?

Simulator Screen Shot - iPhone Xs - 2019-05-21 at 13 15 04

@yaelirub yaelirub added [Status] Needs Discussion The issue needs to be discussed by the team before it can be resolved. Design Needed A design solution is needed. labels May 21, 2019
@yaelirub yaelirub self-assigned this May 21, 2019
@megsfulton
Copy link

I'm still able to reproduce this. I have a video I'll share with you in slack. Here are the steps I took:

  1. Create new post while offline
  2. Select media to upload
  3. Tap the media to activate the action sheet
  4. Tap outside of the action sheet
  5. Return or add characters to the editing space
  6. Scroll up and down in the view -- the overlay disappears

--

what do you think about removing the notice in case media upload failed?

Yeah we should for sure remove that for this case.

This potentially highlights a new offline issue for discussion -- which is allowing local draft posts to be saved locally with media created or selected while offline. It feels kind of crappy to discard the media that someone tried to upload while they were offline.

@yaelirub
Copy link
Contributor

yaelirub commented May 21, 2019

Thank you so much @megsfulton! I was able to reproduce following the steps you described.
I updated this issue's description with the steps 🙏
It feels kind of crappy to discard the media that someone tried to upload while they were offline.
I agree.
I also noticed that in Gutenberg we don't give the "remove image" option in the action sheet.
IMG_4141

Is that something that we might want to do in Aztec too?

@diegoreymendez
Copy link
Contributor Author

It feels kind of crappy to discard the media that someone tried to upload while they were offline. I agree.

Yup. This is something that we should open a new issue for.

Is that something that we might want to do in Aztec too?

I think it's best for this to be defined from the UI/UX Design side. Since we're really close to the editor work, can I ask you @iamthomasbishop for your opinion?

@iamthomasbishop
Copy link

iamthomasbishop commented May 22, 2019

It feels kind of crappy to discard the media that someone tried to upload while they were offline. I agree.

I also agree – we probably shouldn't remove the media, at least until the user leaves the editor.

I also noticed that in Gutenberg we don't give the "remove image" option in the action sheet. ... Is that something that we might want to do in Aztec too?

The Remove action should already be an option – I can confirm it is on Android, but we must've missed on iOS. I wonder if something shifted as part of the Image/Video block work here: wordpress-mobile/gutenberg-mobile#979 // cc @pinarol any ideas?

@pinarol
Copy link
Contributor

pinarol commented May 23, 2019

@iamthomasbishop Actually there was never a Remove option for failed uploads on Gutenberg. User can change the failed media via Edit button from the toolbar or remove the whole block.

On the other hand on Aztec I can confirm that there is a Remove option for failed uploads and it is still there.

(Speaking for iOS)

@yaelirub
Copy link
Contributor

@pinarol , @iamthomasbishop , are we looking to keep the Remove option in Aztec?

@iamthomasbishop
Copy link

@pinarol Interesting, not sure how I missed that – I must've assumed that because it was being implemented on Android that it'd also be there on iOS. Definitely an oversight on my part, apologies! I can create a separate issue for this.

@yaelirub I would prefer to keep it in Aztec, unless there are special reasons for ditching it.

@yaelirub yaelirub removed Design Needed A design solution is needed. [Status] Needs Discussion The issue needs to be discussed by the team before it can be resolved. labels Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants