Page MenuHomePhabricator

Feature flag font-changer
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
bmansurov
Oct 14 2016, 4:10 PM
Referenced Files

Description

As part of removing SkinMinervaBeta, we should feature flag the font-changer code.

Test Plan

Screen Shot 2016-12-21 at 3.41.30 PM.png (294×1 px, 26 KB)

  • Opt into the beta mode and go back to the settings page.
  • Verify that you see an option to change the font size.
  • Increase (or decrease) the font size and go to some page (e.g. Main page) and verify that the site font size has indeed changed.

Event Timeline

Change 326839 had a related patch set uploaded (by Bmansurov):
Feature flag FontChanger

https://gerrit.wikimedia.org/r/326839

Change 326839 merged by jenkins-bot:
Feature flag FontChanger

https://gerrit.wikimedia.org/r/326839

Moved back to "Needs more work" as Font switcher option on Special:MobileOptions is alway visible, even FontChanger is disabled.
Reason: When rendering MobileOptions we show FontChanger for all beta members - corresponding code: https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/resources/mobile.special.mobileoptions.scripts/mobileoptions.js#L44.

Because of that even we disable FontChanger the settings will still appear.

Change 328314 had a related patch set uploaded (by Bmansurov):
Extract checkbox from an init module

https://gerrit.wikimedia.org/r/328314

Change 328318 had a related patch set uploaded (by Bmansurov):
Special:MobileOptions: don't load font changer module unconditionally

https://gerrit.wikimedia.org/r/328318

Change 328314 abandoned by Bmansurov:
Extract checkbox from an init module

Reason:
not needed for now

https://gerrit.wikimedia.org/r/328314

Change 328318 merged by jenkins-bot:
Special:MobileOptions: don't load font changer module unconditionally

https://gerrit.wikimedia.org/r/328318

Change 328485 had a related patch set uploaded (by Phuedx):
Hygiene: Tidy SpecialMobileOptions module listing

https://gerrit.wikimedia.org/r/328485

I've tested @bmansurov's changes locally and can verify it works as expected. My change tidies up the code just a little.

Change 328485 merged by jenkins-bot:
Hygiene: Tidy SpecialMobileOptions module listing

https://gerrit.wikimedia.org/r/328485

Testing devices:
Samsung-SM-J120A Galaxy Express 3 (Android 6.0.1)
iPhone 6s (iOS 10.1.1)

This looks fixed according to the following screencaps:

Android 6.0.1 with Chrome before Beta mode

T148193 Android Chrome on Before Beta Mode.png (800×480 px, 57 KB)
after Beta mode
T148193 Android Chrome Font Size Increase After Beta Mode.png (800×480 px, 64 KB)

Android 6.0.1 with Internet browser before Beta mode
T148193 Android Internet No Font Size Option Before Beta Mode.png (800×480 px, 38 KB)
after Beta mode
T148193 Android Internet Font Size Increase After Beta Mode.png (800×480 px, 41 KB)

iOS 10.1.1 with Firefox before Beta mode
T148193 iOS Firefox No Font Size Option Before Beta Mode.PNG (1×750 px, 99 KB)
after Beta mode
T148193 iOS Firefox Font Size Increase After Beta Mode.PNG (1×750 px, 130 KB)

iOS 10.1.1 with Chrome before Beta mode
T148193 iOS Firefox No Font Size Option Before Beta Mode.PNG (1×750 px, 99 KB)
after Beta mode
T148193 iOS Firefox Font Size Increase After Beta Mode.PNG (1×750 px, 130 KB)

iOS 10.1.1 with Safari before Beta mode
T148193 iOS Safari No Font Size Option Before Beta Mode.PNG (1×750 px, 167 KB)
after Beta mode
T148193 iOS Safari Font Size Increase After Beta Mode.PNG (1×750 px, 199 KB)