Skip to content

Refine post-publish podcast promo modal#48950

Open
mmtr wants to merge 1 commit into
trunkfrom
refine-post-publish-podcast-promo-modal
Open

Refine post-publish podcast promo modal#48950
mmtr wants to merge 1 commit into
trunkfrom
refine-post-publish-podcast-promo-modal

Conversation

@mmtr
Copy link
Copy Markdown
Member

@mmtr mmtr commented May 19, 2026

Fixes #

Proposed changes

  • Refine the Posts to Podcast post-publish promo modal to use WordPress Text and VStack component primitives for its copy/layout.
  • Remove redundant custom typography and action layout styles while preserving the custom hero artwork.
  • Keep the visible modal heading as the accessible label without passing an empty modal title.

Related product discussion/links

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

No.

Testing instructions

  • Apply these changes to your WP.com site
  • If your site doesn't meet the eligibility criteria for the modal to be visible (5 posts published in the last month, 50 visitors in the last week), modify the criteria with these filters:
add_filter( 'jetpack_posts_to_podcast_post_publish_promo_min_published_posts', function () {
	return 1;
} );

add_filter( 'jetpack_posts_to_podcast_post_publish_promo_min_visitors', function () {
	return 1;
} );
  • Go to Posts > Add New
  • Publish the post
  • Confirm the Posts to Podcast promo modal appears.
  • Confirm the modal body text is readable at normal paragraph size.
  • Confirm the primary action spans the modal body width and opens /wp-admin/upload.php?page=create-ai-podcast.

@mmtr mmtr added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Package] Podcast labels May 19, 2026
@mmtr mmtr self-assigned this May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

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 (WordPress.com Site Helper), and enable the refine-post-publish-podcast-promo-modal branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack-mu-wpcom-plugin refine-post-publish-podcast-promo-modal

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
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 🤖


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!

@jp-launch-control
Copy link
Copy Markdown

jp-launch-control Bot commented May 19, 2026

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

Comment thread projects/packages/podcast/src/editor/post-publish-podcast-promo/index.tsx Outdated
Comment thread projects/packages/podcast/src/editor/post-publish-podcast-promo/index.tsx Outdated
Comment on lines +3 to +4
Button,
Modal,
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.

You could consider Dialog and Button from @wordpress/ui though would be good to get package updated first (#48404) since there are a few fixes to Dialog in latest.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nice, I'll hold off until that gets merged.

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.

FYI #48404 is merged!

Comment thread projects/packages/podcast/src/editor/post-publish-podcast-promo/style.scss Outdated
Comment thread projects/packages/podcast/src/editor/post-publish-podcast-promo/style.scss Outdated
Comment on lines 6 to 15
Copy link
Copy Markdown
Member

@simison simison May 19, 2026

Choose a reason for hiding this comment

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

This might break in future package updates (i.e. I wouldn't trust the CSS in the components as a stable API).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Partially addressed. I removed the custom sizing/border/header button styling, but kept some minimal CSS overrides because the alternative would be to use the __experimentalHideHeader prop which seems less stable to me.

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.

ah in practise all those __experimentalHideHeader have been stable since they weren't unlocekd with lock()/unlock() mechanisms in Gutenberg, so I wouldn't worry about using it. :-) The new component from @wordpress/ui might also have what you need.

@mmtr mmtr force-pushed the refine-post-publish-podcast-promo-modal branch 6 times, most recently from b628784 to 6155526 Compare May 19, 2026 14:11
@mmtr mmtr force-pushed the refine-post-publish-podcast-promo-modal branch from 6155526 to 12a1961 Compare May 19, 2026 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Package] Podcast [Status] UI Changes Add this to PRs that change the UI so documentation can be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants