Page MenuHomePhabricator

Remove MobilePreferences from MobileFrontend
Closed, ResolvedPublic3 Estimated Story Points

Description

When speaking to @Samwilson during all hands he commented how MobileFrontend was creating problems for the global preferences work. When reviewing the state of the MobilePreferences code, I concluded that it's probably not necessary any more.

I suggest we load the core JavaScript on this page and remove our override in MobileFrontend. This will mean less code to maintain, we're unblock Sam's work.

The biggest issue with rendering the desktop preferences page on mobile is the horizontal menu at the top of the page (which does not scale well to a mobile skin) but given we do not link to preferences on mobile, making this horizontally scrollable should be an acceptable compromise.

QA steps

Visit https://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences and https://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Preferences and verify the forms are functional (not necessarily usable/mobile friendly)

Event Timeline

Change 406123 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/extensions/MobileFrontend@master] Remove MobilePreferences in favor of core

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

Change 406640 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/skins/MinervaNeue@master] Do not add non-existent skins.minerva.special.preferences.scripts

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

Thanks @Jdlrobson.

Just to clarify, it's not blocking GlobalPreferences, it's just that because of GlobalPreferens we've deprecated some things that MobileFrontend uses. Much better to delete it rather than fixing it though! :-)

The other problem with the normal Special:Preferences is that it's a table-based layout, and so the label column can get pretty narrow on small screens and make some things pretty ugly. But as you say, it's unlikely to be used much on mobile — and ultimately (soon?) this will be fixed by switching to OOUI.

pmiazga subscribed.

Bringing into sprint for visibility

@pmiazga I'm not sure this "needs more work". All patches seem to have +1s now. Let me know if I'm missing something.

@Jdlrobson, I left some optional feedback on a couple of the patches but functionally they're fine.

Change 406123 merged by jenkins-bot:
[mediawiki/extensions/MobileFrontend@master] Remove MobilePreferences in favor of core

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

Change 406640 merged by jenkins-bot:
[mediawiki/skins/MinervaNeue@master] Do not add non-existent skins.minerva.special.preferences.scripts

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

ovasileva subscribed.

looks good!