Closed Bug 1062248 Opened 11 years ago Closed 11 years ago

Change styles of notifications when battery is low

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

defect
Not set
normal

Tracking

(blocking-b2g:2.1+, b2g-v2.1 verified, b2g-v2.2 fixed)

VERIFIED FIXED
2.1 S4 (12sep)
blocking-b2g 2.1+
Tracking Status
b2g-v2.1 --- verified
b2g-v2.2 --- fixed

People

(Reporter: mancas, Assigned: mancas)

References

Details

(Keywords: late-l10n, regression, Whiteboard: [systemsfe])

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 Build ID: 20140830210659 Steps to reproduce: Have low battery Actual results: When battery low notification is displayed, the text is not showed inside the notification Expected results: the text is shown properly
Attachment #8483432 - Flags: review?(timdream)
Assignee: nobody → b.mcb
Depends on: 1046202
Attached image Notification styles
Attachment #8483435 - Flags: ui-review?(jelee)
Attached image notification_fail.png
[Blocking Requested - why for this release]: As Bug 1046202 (Copy improvement when battery is almost empty), which introduced this regression, was landed in 2.1, we need to fix the issue also in 2.1 branch.
blocking-b2g: --- → 2.1?
blocking-b2g: 2.1? → 2.1+
Whiteboard: [systemsfe]
Target Milestone: --- → 2.1 S4 (12sep)
Comment on attachment 8483435 [details] Notification styles Looks good, but I think we need Eric for styling review just in case. Thanks!
Attachment #8483435 - Flags: ui-review?(jelee)
Attachment #8483435 - Flags: ui-review?(epang)
Attachment #8483435 - Flags: ui-review+
Comment on attachment 8483432 [details] [review] Changed styles of low battery notification Why did it failed?
Attachment #8483432 - Flags: review?(timdream) → review+
Blocks: 1046202
No longer depends on: 1046202
The main problem was that the width of the container was not defined, so when the text overflows, the block jumps to the next line to fit the text
(In reply to Jenny Lee from comment #5) > Comment on attachment 8483435 [details] > Notification styles > > Looks good, but I think we need Eric for styling review just in case. Thanks! Thanks Jenny for flagging me, we've updated the styling of notification toast for 2.1. I'll add a spec with the new styling shortly. I will also need to create a new icon and get review for it first. flagging need info on myself so I don't forget to add the spec to the bug when ready.
Flags: needinfo?(epang)
Comment on attachment 8483435 [details] Notification styles Sorry I was thinking this was a notification instead of a system toast. This looks good to me, thanks! R+
Attachment #8483435 - Flags: ui-review?(epang) → ui-review+
Flags: needinfo?(epang)
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/494db904b78a271601d9d4be79ee0a7313518de7 Please request Gaia v2.1 approval on this when you get a chance.
Flags: needinfo?(b.mcb)
Keywords: checkin-needed
Comment on attachment 8483435 [details] Notification styles [Approval Request Comment] [Bug caused by] (feature/regressing bug #):1046202 [User impact] if declined: Hight impact, text is not displayed properly [Testing completed]: No [Risk to taking this patch] (and alternatives if risky): Low [String changes made]: Yes
Attachment #8483435 - Flags: approval-gaia-v2.1?
Flags: needinfo?(b.mcb)
Attachment #8483432 - Flags: approval-gaia-v2.1+
Attachment #8483435 - Flags: approval-gaia-v2.1?
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I have tested it using a flame 2.1 (Gecko f816f7e Gaia c7b55ed). The text of the alert has been modified correcly and the alert is working fine. When the battery level is below a 10% of the charge, now the alert message is "Your battery is low. Please plug in your charger". I add a screenshot to ilustrate it.
Attached image 2014-09-10-21-02-39.png
Thanks for fixing it. Bug marked as verified!
Status: RESOLVED → VERIFIED
Minor copy changes, don't need an integration test for this.
Flags: in-testsuite-
This issue has been successfully verified on Flame 2.1: Gaia-Rev 1b231b87aad384842dfc79614b2a9ca68a4b4ff3 Gecko-Rev https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/95fbd7635152 Build-ID 20141119001205 Version 34.0 Device-Name flame FW-Release 4.4.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: