Skip to content

Components: Migrate RadioControl to @wordpress/components - #48170

Merged
simison merged 1 commit into
trunkfrom
claude/tender-pike-555dd6
Apr 18, 2026
Merged

simison merged 1 commit into
trunkfrom
claude/tender-pike-555dd6

Conversation

@ilonagl

@ilonagl ilonagl commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

  • Newsletter Settings: Import RadioControl from @wordpress/components directly instead of the pass-through re-export in @automattic/jetpack-components. Prop API is identical, so no call-site changes beyond the import.
  • The RadioControl re-export in @automattic/jetpack-components is left in place.

Target is @wordpress/components (not @wordpress/ui) because @wordpress/ui@0.11.0 does not ship a RadioControl, and the Gutenberg Storybook's Design System / Components sidebar doesn't list one.

Part of #48160.

Screenshots

Surface Before (trunk on JN) After (this branch on JN)
Newsletter → Email configuration → "For each new post email, include" before after
Newsletter → Subscription replies → "Reply-to settings" before after

Baseline + feature JN site: `thoughtfully-remarkable-device.jurassic.ninja` · rsync target: `plugins/jetpack`

Note: before/after files are byte-identical (`cmp` clean) — confirming the pass-through is a strict no-op and this change introduces no rendered-DOM difference. Screenshots are hosted on a sibling orphan branch (`screenshots/radio-control-migration-48170`) so this PR's file diff stays pure-code.

Testing instructions

  1. `jetpack build plugins/jetpack --deps`.
  2. On a site with Jetpack connected, visit Jetpack → Settings → Newsletter. (If the new `page=jetpack-newsletter` dashboard is enabled, temporarily disable it via `add_filter( 'jetpack_wp_admin_newsletter_settings_enabled', '__return_false' );`.)
  3. Scroll to Email configuration:
    • Confirm the "For each new post email, include" group toggles between Full text / Excerpt.
    • Confirm the "Reply-to settings" group toggles between the three options.
  • Changelog entry added
  • Visual diff reviewed (before/after are byte-identical)

@github-actions

github-actions Bot commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the claude/tender-pike-555dd6 branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack claude/tender-pike-555dd6

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [JS Package] Components [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ Admin Page React-powered dashboard under the Jetpack menu Docs RNA labels Apr 18, 2026
@github-actions

github-actions Bot commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • 🔴 Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


🔴 Action required: We would recommend that you add a section to the PR description to specify whether this PR includes any changes to data or privacy, like so:

## Does this pull request change what data or activity we track or use?

My PR adds *x* and *y*.

Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: May 5, 2026
    • Code freeze: May 4, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control

jp-launch-control Bot commented Apr 18, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

@ilonagl ilonagl self-assigned this Apr 18, 2026
The `RadioControl` re-export from `@automattic/jetpack-components` is a
pure pass-through to `@wordpress/components`; importing from the upstream
package directly drops one hop without changing rendered output.

The `@automattic/jetpack-components` wrapper is left in place for other
potential consumers.

Part of #48160.
@ilonagl
ilonagl force-pushed the claude/tender-pike-555dd6 branch from ba9baa2 to e37ca4b Compare April 18, 2026 19:03
ilonagl added a commit that referenced this pull request Apr 18, 2026
@simison
simison marked this pull request as ready for review April 18, 2026 20:00

@simison simison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works great! 🚢

@simison
simison merged commit 6821c60 into trunk Apr 18, 2026
73 checks passed
@simison
simison deleted the claude/tender-pike-555dd6 branch April 18, 2026 20:20
@github-actions github-actions Bot added this to the jetpack/15.8 milestone Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Page React-powered dashboard under the Jetpack menu Docs [JS Package] Components [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ RNA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants