Writing Settings: disable Mobile Theme UI when feature isn't active#37857
Writing Settings: disable Mobile Theme UI when feature isn't active#37857
Conversation
|
Test live: https://calypso.live/?branch=rm/minileven-ui |
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~413 bytes added 📈 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
|
Moving this back to "in progress" as we may want to add a feature deprecation notice in there. See conversation in the Jetpack PR to find out more. |
|
Noting that we may end up displaying things a bit differently. Reference: p6TEKc-3iM-p2 |
- If site runs Jetpack 8.1-alpha or newer, we know they have access to the new query string introduced here: Automattic/jetpack#14196 We can consequently show them a notice with a link to check if site is responsive at Google. - If site runs an older version of Jetpack, or if the Mobile Theme is disabled, show a regular deprecation notice. - Do not display mobile theme toggle or settings when module is deactivated.
6273203 to
caf1825
Compare
It did not reflect the actual section we are in.
jeffgolenski
left a comment
There was a problem hiding this comment.
@jeherve Tested both inactive and active states. Looks great and both links work wonderfully.
zinigor
left a comment
There was a problem hiding this comment.
Works well for me, the code looks good!
|
Translation for this Pull Request has now been finished. |

Fixes #36404
Matching Jetpack PR:
Automattic/jetpack#14101
Changes proposed in this Pull Request
The Mobile theme was developed 8 years ago, back when responsive themes weren't a thing. It isn't as useful today, and can even be harmful when one enables it on their site without realizing the consequences, as outlined in Automattic/jetpack#7602.
This PR comes as a first step to deprecate the Mobile Theme feature. We'll start by greying out Mobile Theme Settings from the Writing Settings UI when the feature is not active. Folks that still use the feature can access its settings and disable it. Folks who do not use it cannot turn it on via the UI.
In addition to those changes, we'll display a notice on top of the settings:
Module active
Module inactive
Testing instructions
yarn docker:wp jetpack module activate minilevento enable the module on your Jetpack site.