Skip to content

Conversation

@dcalhoun
Copy link
Member

@dcalhoun dcalhoun commented Oct 23, 2025

Description

Ref CMM-869.

Relocate editor's "Use theme styles" toggle to Site Settings rather than Experimental Features, as this is a better long-term location.

Enable theme styles by default to align with the web editor.

site-settings-theme-styes

Testing instructions

  1. Navigate to My SiteMoreSite Settings.
  2. Verify the toggle is visible for all site types:
    1. WPCOM Simple: displayed alone
    2. Non-WPCOM Simple: displayed alongside "Use block editor"
  3. Verify the toggle is only present when GutenbergKit is enabled.
  4. Verify the toggle state correctly influences GutenbergKit's appearance.

This is a more appropriate long-term location rather than experimental
features.
This preference only impacts GutenbergKit.
The theme styles preference shares a parent preference section with the
toggle for enabling the block editor.
The value is not tracked on the server, nor returned by the API
response.
@dcalhoun dcalhoun added this to the 26.4 milestone Oct 23, 2025
@dcalhoun dcalhoun added [Type] Enhancement Posting/Editing Gutenberg Editing and display of Gutenberg blocks. labels Oct 23, 2025
@dangermattic
Copy link
Collaborator

dangermattic commented Oct 23, 2025

1 Warning
⚠️ strings.xml files should only be updated on release branches, when the translations are downloaded by our automation.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Oct 23, 2025

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
FlavorJalapeno
Build TypeDebug
Versionpr22306-00afd40
Commit00afd40
Direct Downloadwordpress-prototype-build-pr22306-00afd40.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Oct 23, 2025

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
FlavorJalapeno
Build TypeDebug
Versionpr22306-00afd40
Commit00afd40
Direct Downloadjetpack-prototype-build-pr22306-00afd40.apk
Note: Google Login is not supported on these builds.

mSettings.copyFrom(mRemoteSettings);
mSettings.postFormats = currentPostFormats;
mSettings.location = location;
mSettings.useThemeStyles = useThemeStyles;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prevents a non-existent useThemeStyles value on the server clearing the value stored locally. The value is intentionally not persisted on the server.

@sonarqubecloud
Copy link

@dcalhoun dcalhoun marked this pull request as ready for review October 23, 2025 02:50
@dcalhoun dcalhoun requested a review from adalpari October 23, 2025 02:50
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.48%. Comparing base (651e490) to head (00afd40).
⚠️ Report is 4 commits behind head on trunk.

Files with missing lines Patch % Lines
...rg/wordpress/android/models/SiteSettingsModel.java 0.00% 4 Missing ⚠️
...dpress/android/ui/prefs/SiteSettingsInterface.java 0.00% 2 Missing ⚠️
.../wordpress/android/ui/prefs/WPComSiteSettings.java 0.00% 2 Missing ⚠️
...c/main/java/org/wordpress/android/WordPressDB.java 0.00% 1 Missing ⚠️
...press/android/ui/posts/GutenbergKitWarmupHelper.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            trunk   #22306      +/-   ##
==========================================
- Coverage   39.48%   39.48%   -0.01%     
==========================================
  Files        2188     2188              
  Lines      104662   104665       +3     
  Branches    14916    14916              
==========================================
- Hits        41329    41325       -4     
- Misses      59848    59855       +7     
  Partials     3485     3485              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@adalpari adalpari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming this only happens when the experimental editor is enabled (it's mentioned in the next point)

2. Verify the toggle is visible for all site types:
- WPCOM Simple: displayed alone
- Non-WPCOM Simple: displayed alongside "Use block editor"

LGTM and works as expected!

@dcalhoun
Copy link
Member Author

dcalhoun commented Oct 23, 2025

Assuming this only happend whrn the experimental editor is enabled (it0s mentioned in the next point)

_2. Verify the toggle is visible for all site types:

  • WPCOM Simple: displayed alone
  • Non-WPCOM Simple: displayed alongside "Use block editor"_

Correct; if the experimental editor is disabled, then the theme styles toggle should be should not be present regardless of site type.

@adalpari
Copy link
Contributor

Assuming this only happens when the experimental editor is enabled (it's mentioned in the next point)

_2. Verify the toggle is visible for all site types:

  • WPCOM Simple: displayed alone
  • Non-WPCOM Simple: displayed alongside "Use block editor"_

Correct; if the experimental editor is disabled, then the theme styles toggle should be present regardless of site type.

Wait, if the experimental editor is disabled, should the toggle BE visible in site settings?

@dcalhoun
Copy link
Member Author

Wait, if the experimental editor is disabled, should the toggle BE visible in site settings?

@adalpari forgive me, it was a typo in my response. My brain often simply leaves out typing "not." 🙃 If the experimental editor is disabled, the toggle should not be present. The toggle is only relevant when the experimental editor is enabled.

@adalpari
Copy link
Contributor

adalpari commented Oct 23, 2025

With the experimental block editor DISABLED:

  • WP.COM sites are showing no toggles
  • Self-hosted sites are showing the "Use block editor" toggle
Screenshot 2025-10-23 at 16 00 26

With the experimental block editor ENABLED:
It's happening what you described in both

@dcalhoun dcalhoun merged commit f604c81 into trunk Oct 23, 2025
24 checks passed
@dcalhoun dcalhoun deleted the feat/editor-styles-align-with-web-defaults branch October 23, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gutenberg Editing and display of Gutenberg blocks. Posting/Editing [Type] Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants