Closed Bug 1114453 Opened 10 years ago Closed 9 years ago

[Wifi] Add wifi setting UI for Allow Off function.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g-v2.2 fixed, b2g-master fixed)

RESOLVED FIXED
2.2 S5 (6feb)
blocking-b2g -
Tracking Status
b2g-v2.2 --- fixed
b2g-master --- fixed

People

(Reporter: amchung, Assigned: amchung, Mentored)

References

Details

Attachments

(3 files, 7 obsolete files)

Refer to the diagram:
https://wiki.mozilla.org/images/c/c6/WifiPowerModeState.svg
AllowOff is the flag that allows wifi off mode when screen off time out and 
unplugged.
We need to set Allow Off option on UX and write gaia setting to connect gaia/system/js/wifi.js.
Added Jenny to focus this issue.
Flags: needinfo?(jelee)
Hello Amy,

Given the major changes in plans for 2.2 (i.e. that most of UX changes will not be included in scope) and subsequent near-tearm releases, the UX team will evaluate all feature and UI requests after v3 planning, which will have a strong impact on future versions of FXOS. So I won't be able to work on this until things are more settled, but I will definitely think about it and we can have a discussion first. Thanks for understanding!

+Bruce to take a look at this feature request.
Flags: needinfo?(jelee)
Attached file Added allow off UI on Wifi Setting (obsolete) —
Dear Seinlin,
Please help me to confirm this modification.

Thanks!
Amy
Attachment #8552298 - Flags: feedback?(kli)
Summary: [Wifi] Add wifi setting UX and gaia setting for Allow Off function. → [Wifi] Add wifi setting UI for Allow Off function.
Comment on attachment 8552298 [details]
Added allow off UI on Wifi Setting

Looks good. But need confirm/correct the following:

1. The place of this setting need to be approved by UX team.

2. The string used for 'message-wifi-allowoff-details' and 'wifi-allowoff' need to be confirmed by UX team.

3. A lot of strings in apps/settings/locales/settings.en-US.properties were deleted. I think you need to rebase your patch.
Attachment #8552298 - Flags: feedback?(kli) → feedback+
Attached image wifi_setting.png (obsolete) —
Dear Jenny,
Please help me to confirm the wifi setting UI.

Thanks!
Attachment #8552355 - Flags: review?(jelee)
Bug 1084156 need this UI.
blocking-b2g: --- → 2.2?
Attached file Added allow off UI on Wifi Setting (obsolete) —
Dear Seinlin,
I modified apps/settings/locales/settings.en-US.properties,
please help me to confirm it.

Thanks!
Attachment #8552298 - Attachment is obsolete: true
Attachment #8552844 - Flags: feedback?(kli)
Attached file Added allow off UI on Wifi Setting (obsolete) —
Attachment #8552844 - Attachment is obsolete: true
Attachment #8552844 - Flags: feedback?(kli)
Attachment #8552901 - Flags: feedback?(kli)
Comment on attachment 8552355 [details]
wifi_setting.png

Hi Amy,

Please make change to string to make it clearer:

Wi-Fi Off during Sleep  [toggle]
When enabled, Wi-Fi will be automatically turned off during sleep to save battery power. 

Toggle default is set to off.  
Thanks!
Attachment #8552355 - Flags: review?(jelee) → review-
Attached image wifi_setting.png
Dear Jenny,
Please help me to confirm the UI for selecting wifi sleep mode.

Thanks!
Attachment #8552355 - Attachment is obsolete: true
Attachment #8552967 - Flags: feedback?(jelee)
Attached file Added allow off UI on Wifi Setting (obsolete) —
Dear Seinlin,
I have modified this issue, please help me to review it.

Thanks!
Attachment #8552901 - Attachment is obsolete: true
Attachment #8552901 - Flags: feedback?(kli)
Attachment #8552971 - Flags: feedback?(kli)
(In reply to Jenny Lee from comment #9)
> 
> Toggle default is set to off.  
> Thanks!

Toggle default is set to off ==> wifi will always on during sleep. This will consume more power by default.
i
How do you think set it to on by default (consume less power)?

User can turn off it if necessary.
Flags: needinfo?(jelee)
(In reply to Amy Chung from comment #11)
> Created attachment 8552971 [details] [review]

Amy, I left some comments on PR, could you have a look and update your PR accordingly?
Attached file Added allow off UI on Wifi Setting (obsolete) —
Dear Seinlin,
I have modified some mistakes in your answer, please help me to confirm it.

Thanks!
Attachment #8552971 - Attachment is obsolete: true
Attachment #8552971 - Flags: feedback?(kli)
Attachment #8553017 - Flags: feedback?(kli)
Comment on attachment 8552967 [details]
wifi_setting.png

Looks good, thanks Amy! =)
Flags: needinfo?(jelee)
Attachment #8552967 - Flags: feedback?(jelee) → feedback+
Hi Kai-Zhen,

I think under normal circumstances, user would expect Wi-Fi to stay on all the time as an environment with stable Wi-Fi usually comes with power source. So in general saving battery power would have lower priority than getting instant incoming message(or any other type of info) notification. That is to say, I suggest we set the default to off. Thanks!   

(In reply to Kai-Zhen Li [:seinlin] from comment #12)
> (In reply to Jenny Lee from comment #9)
> > 
> > Toggle default is set to off.  
> > Thanks!
> 
> Toggle default is set to off ==> wifi will always on during sleep. This will
> consume more power by default.
> i
> How do you think set it to on by default (consume less power)?
> 
> User can turn off it if necessary.
Hi Seinlin,
I have modified in your answer, please help me to review it.

Thanks!
Flags: needinfo?(kli)
If comment 6 Bug 1084156 is for 2.0M, this one should be nominated as 2.0m?
blocking-b2g: 2.2? → 2.0M?
Comment on attachment 8553017 [details] [review]
Added allow off UI on Wifi Setting

Arthur, Could you review this patch? Thanks!
Flags: needinfo?(kli)
Attachment #8553017 - Flags: review?(arthur.chen)
Attachment #8553017 - Flags: feedback?(kli)
Attachment #8553017 - Flags: feedback+
Bug 1084156 is not only for v2.0m. It is landed in m-c before v2.2 branch-out, so I think we should also have this in v2.2.
blocking-b2g: 2.0M? → 2.2?
Comment on attachment 8553017 [details] [review]
Added allow off UI on Wifi Setting

Good work! Please check my comments in github, thanks.
Attachment #8553017 - Flags: review?(arthur.chen)
Attached file Added allow off UI on Wifi Setting (obsolete) —
Dear Arthur,
I have modified by your suggestions, please help me to review the modification.

Thanks!
Attachment #8553017 - Attachment is obsolete: true
Attachment #8555075 - Flags: review?(arthur.chen)
Comment on attachment 8555075 [details] [review]
Added allow off UI on Wifi Setting

There are still lint errors, please help check them.

Flagging Alive on the system app part.
Attachment #8555075 - Flags: review?(arthur.chen) → review?(alive)
Triage: This is not a blocker. Hi Amy, please go through approval process for 2.2 uplift, thanks.
Assignee: nobody → amchung
blocking-b2g: 2.2? → -
Flags: needinfo?(amchung)
Dear Arthur,
I have modified it, please review this modification.

Thanks!
Flags: needinfo?(amchung) → needinfo?(arthur.chen)
The indention of <p> is incorrect (line 55). And I noticed that gaia-try fails [1] on wifi tests, so we should modify the test accordingly.

[1]: https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=f2a9434fc859
Flags: needinfo?(arthur.chen)
Comment on attachment 8555075 [details] [review]
Added allow off UI on Wifi Setting

r+ iff nits addressed
Attachment #8555075 - Flags: review?(alive) → review+
Dear Arthur,
I have modified the mistake of indention on wifi.html and wifi test case.
Please help me to review it.

Thanks!
Flags: needinfo?(arthur.chen)
wifi.html is looking good now, thanks!

Note that there are still lint errors in wifi_test.js and I believe the reason is the same [1]. We are ready to land the patch after all lint errors get fixed.

[1]: https://treeherder.mozilla.org/ui/logviewer.html#?job_id=465003&repo=gaia-try
Flags: needinfo?(arthur.chen)
Keywords: checkin-needed
Comment on attachment 8555075 [details] [review]
Added allow off UI on Wifi Setting

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):Improve wifi power control.
[User impact] if declined: User can use this function to allow wifi into sleep mode.
[Testing completed]: local unit test and try server are all pass.
[Risk to taking this patch] (and alternatives if risky): low, added a item to control wifi into sleep mode by user. 
[String changes made]: apps/settings/locales/settings.en-US.properties
   1. wifi-off-during-sleep=Wi-Fi Off during Sleep.
   2. wifi-off-during-sleep-description=When enabled, Wi-Fi will be automatically turned off during sleep to save battery power.
Attachment #8555075 - Flags: approval-gaia-v2.2?
blocking-b2g: - → 2.2?
Master: https://github.com/mozilla-b2g/gaia/commit/eb824cc6e228a86e7e2e8ce3d3817496f91be8ef
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S5 (6feb)
We should really try to avoid this kind of structure (long label+checkbox), given our inability to span the label on multiple lines. This is going to be extremely painful to localize. 

The case used is also confusing: why "during" lowercase?
I agree with flod, we don't have enough space.
To give you an idea, the shortest acceptable translation I can think of in French is "Wi-Fi éteint en mode veille", and that doesn't fit.
Dear Arthur,
What do you think with the problem of long label? Do I need to discuss with UX again and modify this problem?

Thanks!
Flags: needinfo?(arthur.chen)
Amy, we need a shorter name for this feature, or we have to create a new type of UI for this kind of cases.

Jenny, given we have a description of the feature below, is it possible to have a shorter name?
Flags: needinfo?(arthur.chen) → needinfo?(jelee)
Kai-Zhen, we already triaged and decided this is a feature and shouldn't block. The patch is also ready with approval flag set? Any reason why you ask for block again?
blocking-b2g: 2.2? → -
Flags: needinfo?(kli)
Hi Matej,

We need your help with some wording issue. Can you take a look at the toggle description below and see if it's possible to make the title line shorter? Thanks!

Wi-Fi Off during Sleep  [toggle]
When enabled, Wi-Fi will be automatically turned off during sleep to save battery power. 


Hi Arthur,

There's a two line title toggle design, so if there's no way to make title shorter, we can apply that layout =)
blocking-b2g: - → 2.2?
Flags: needinfo?(jelee) → needinfo?(matej)
(Reset flag)
blocking-b2g: 2.2? → -
(In reply to Jenny Lee from comment #37)
> Hi Matej,
> 
> We need your help with some wording issue. Can you take a look at the toggle
> description below and see if it's possible to make the title line shorter?
> Thanks!
> 
> Wi-Fi Off during Sleep  [toggle]
> When enabled, Wi-Fi will be automatically turned off during sleep to save
> battery power. 

I think we could just call it "Wi-Fi sleep" given the longer description below.

Does that work?

Here's also a slightly shorter version of the line:

"Enable to automatically turn off Wi-Fi during sleep to save battery power."
Flags: needinfo?(matej)
Tim, According to landing rule, https://wiki.mozilla.org/Release_Management/B2G_Landing#v2.2,
landing into v2.2, we need "approval‑mozilla‑b2g37+ / approval-gaia-v2.2+ to land (including bugs marked as blocking-b2g:2.2+ or feature-b2g:2.2+)". So I think we should set this bug as 2.2+
Flags: needinfo?(kli)
Revert the commit per comment 32.

master: 670317dc9f1ecfab238fd7930eb32b7bac7c0621
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Dear Arthur,
Please help me to review this patch for modifying the text wifi off label and checkbox.

Dear Flod,
I have modified the text on wifi off label and checkbox that following comment 39, please help me to confirm it.

Thanks!
Attachment #8555075 - Attachment is obsolete: true
Attachment #8555075 - Flags: approval-gaia-v2.2?
Attachment #8558978 - Flags: review?(arthur.chen)
Attachment #8558978 - Flags: feedback?(francesco.lodolo)
Comment on attachment 8558978 [details] [review]
Added allow off UI on Wifi Setting

Looks good to me, ++ for having changed the string IDs.
Attachment #8558978 - Flags: feedback?(francesco.lodolo) → feedback+
Comment on attachment 8558978 [details] [review]
Added allow off UI on Wifi Setting

r=me. Please use upper case for the "s" in "Wi-Fi Sleep", thanks!
Attachment #8558978 - Flags: review?(arthur.chen) → review+
Keywords: checkin-needed
Comment on attachment 8558978 [details] [review]
Added allow off UI on Wifi Setting

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):Improve wifi power control.
[User impact] if declined: User can use this function to allow wifi into sleep mode.
[Testing completed]: local unit test and try server are all pass.
[Risk to taking this patch] (and alternatives if risky): low, added a item to control wifi into sleep mode by user. 
[String changes made]: apps/settings/locales/settings.en-US.properties
   1. wifi-off-during-sleep=Wi-Fi Off during Sleep.
   2. wifi-off-during-sleep-description=When enabled, Wi-Fi will be automatically turned off during sleep to save battery power.
Attachment #8558978 - Flags: approval-gaia-v2.2?
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Attachment #8558978 - Flags: approval-gaia-v2.2? → approval-gaia-v2.2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: