Closed Bug 819898 Opened 12 years ago Closed 12 years ago

[SMS] shouldn't try to send a message without a recipient

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P2)

defect

Tracking

(blocking-basecamp:+)

VERIFIED WORKSFORME
B2G C3 (12dec-1jan)
blocking-basecamp +

People

(Reporter: ttaubert, Assigned: borjasalguero)

References

Details

(Whiteboard: UX interaction)

Attachments

(1 file)

STR: 1) Open the SMS app 2) Click '+' to create a new message 3) Click the message field and type something. 4) Click 'Send' Expected: The user should probably see an error message saying that we need a recipient. Actual: The message gets sent and the throbber keeps spinning. Also the following error is in the console: E/GeckoConsole( 1470): [JavaScript Error: "NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMMozSmsManager.send]" {file: "app://sms.gaiamobile.org/js/sms.js" line: 195}]
Flags: needinfo?(aymanmaat)
Whiteboard: UX interaction
Ayman, can you please advise on the intended behavior.
blocking-basecamp: ? → +
Priority: -- → P2
Target Milestone: --- → B2G C3 (12dec-1jan)
Assignee: nobody → fbsc
Attached file PR
NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky):
Attachment #690441 - Flags: review?(francisco.jordano)
Attachment #690441 - Flags: approval-gaia-master?(francisco.jordano)
Attachment #690441 - Flags: approval-gaia-master?(francisco.jordano) → review?(fernando.campo)
Would advise to disable the 'send' button until content is added to both: 1) the 'To' field (the recipient), and 2) the message field From a UX perspective error prevention is always a far superior experience than error handling.
Flags: needinfo?(aymanmaat)
Cool! Thanks for the tip. Im gonna add it to the PR. Thanks!
Attachment #690441 - Flags: review?(francisco.jordano) → review+
Attachment #690441 - Flags: review?(fernando.campo)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
"send" button is disabled if no information entered to both: 1) the 'To' field (the recipient), and 2) the message field contact field.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: