Closed Bug 804907 Opened 12 years ago Closed 12 years ago

[email] Create dialog to notify of send failure

Categories

(Firefox OS Graveyard :: Gaia::E-Mail, defect, P1)

x86
macOS
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
blocking-basecamp +

People

(Reporter: doliver, Assigned: steveck)

Details

Attachments

(1 file)

Because we have said V1 will not save any draft emails, we need to notify users when their attempt to send email fails, and offer them a choice to retry or discard the current message.
Casey, this is from our discussion with Chris Lee last week. Can you update wireframes with a mockup of this dialog?
Flags: needinfo?(kyee)
Blocking on this so we can remove saving drafts from v1.
blocking-basecamp: ? → +
Assignee: nobody → bugmail
Priority: -- → P1
Assignee: bugmail → schung
Status: NEW → ASSIGNED
Attachment #677291 - Flags: review?(dkuo)
Attachment #677291 - Flags: review?(bugmail)
Comment on attachment 677291 [details]
Patch for adding new dialog to notify of send failure

From the discussion (that we didn't describe on the bug, and the wireframes haven't been updated to reflect, sorry!), we don't want to discard the message if send fails.  Instead, we should return to the compose page.  That way the user can try and re-send the e-mail if they want or maybe add some more text or what not.  I believe this was the result of our discussion.  (The other possibility is to have a "Retry" or "Discard" page, but since we can effectively get the same thing from the compose page, the compose page seems the easier option.)

"Send email failed" is more properly "Sending email failed", but I think we want a string more like: "Failed to send message."  It might be best to ping jcarpenter to ask for guidance there (or I think there may be a strings expert?).
Attachment #677291 - Flags: review?(dkuo)
Attachment #677291 - Flags: review?(bugmail)
This will require a minor fix to mailapi.js to cause it to stop killing the MailComposition instance after the first call to finishCompositionSendMessage in all cases.  I'll change it so that in an error case, we leave the composition instance intact so that we can keep calling finishCompositionSendMessage until it works.  I'll try and do that tonight.
(In reply to Andrew Sutherland (:asuth) from comment #5)
> This will require a minor fix to mailapi.js to cause it to stop killing the
> MailComposition instance after the first call to
> finishCompositionSendMessage in all cases.  I'll change it so that in an
> error case, we leave the composition instance intact so that we can keep
> calling finishCompositionSendMessage until it works.  I'll try and do that
> tonight.

I discard the message because finishCompositionSendMessage will make MailComposition instance unable to resend like you said. It would be great if the change won't cost an arm and a leg. I will change the confirm button behavior to stay in compose view and you can verify it when finishCompositionSendMessage changes lands.
Attachment #677291 - Flags: review?(bugmail)
(In reply to Steve Chung from comment #6)
> I discard the message because finishCompositionSendMessage will make
> MailComposition instance unable to resend like you said. It would be great
> if the change won't cost an arm and a leg. I will change the confirm button
> behavior to stay in compose view and you can verify it when
> finishCompositionSendMessage changes lands.

Yes, this was a reasonable call given my prior feedback about the banner stuff (when we were going to implement automatic resending, etc.) and lack of a spec.

I have a review request up with a fix at:
https://github.com/mozilla-b2g/gaia-email-libs-and-more/pull/74

Once that is approved I'll change the string and land all of these together.  Thanks!
Attachment #677291 - Flags: review?(bugmail) → review+
The gaia-email-libs-and-more fix got reviewed, so I have folded that and the minor string change I proposed (we still will want to re-word most of our strings anyways) into https://github.com/mozilla-b2g/gaia/pull/6162 and landed it with merge:
https://github.com/mozilla-b2g/gaia/commit/4d3ed8fc0f88fee60742d0a521a98c0e49d9c4ac

I have filed bug 808503 to track the need to actually get this documented in wire-frames.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Flags: needinfo?(kyee)
Appears fixed in Unagi build 20121231070201.

A message now appears when attempting to send an e-mail without a connection displaying "Sending email failed".

Verifying as fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: