Skip to content

Conversation

@Copons
Copy link
Contributor

@Copons Copons commented Nov 19, 2025

Fixes DOTTHEM-122

Proposed Changes

  • Update the theme upload banner to upsell the Personal plan instead of Business.
  • Remove a theme upload banner for Premium plans that never showed up because overridden by the JITM feature.
  • Remove a theme upload banner for Atomic and Jetpack sites that never showed up because overridden by the JITM feature.

Note: I've left the Woo Trial equivalents because I'm not familiar enough with the program.

Location Before After
/themes/upload/SITE Screenshot 2025-11-19 at 16 22 40 Screenshot 2025-11-19 at 16 22 17
/themes/SITE?flags=-jitms Screenshot 2025-11-19 at 16 29 20 Screenshot 2025-11-19 at 16 39 11

Why are these changes being made?

  • Summer Special gave every paid plan the ability to upload themes. These banners were leftovers from a previous cleanup effort.

Testing Instructions

Case 1: /themes/upload/SITE

  • Select a free site.
  • Navigate to the Calypso Theme Showcase.
  • Click on "Install new theme" in the top-right corner.
  • 👀 Ensure that the banner upsells the Personal plan.

Case 2: /themes/SITE?flags=-jitms

Note: turning off the jitms feature (note the plural!) is needed to prevent overriding the Theme Showcase's upsellBanner feature.

  • Select a Premium site.
  • Navigate to the Calypso Theme Showcase.
  • 👀 Ensure the "upload themes" banner doesn't show anymore.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you tested accessibility for your changes? Ensure the feature remains usable with various user agents (e.g., browsers), interfaces (e.g., keyboard navigation), and assistive technologies (e.g., screen readers) (PCYsg-S3g-p2).
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@Copons Copons self-assigned this Nov 19, 2025
@github-actions
Copy link

github-actions bot commented Nov 19, 2025

@matticbot
Copy link
Contributor

matticbot commented Nov 19, 2025

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • blaze-dashboard
  • command-palette-wp-admin
  • help-center
  • notifications
  • odyssey-stats

To test WordPress.com changes, run install-plugin.sh $pluginSlug dotthem-122-free-plan-prompts-business-upgrade-when-uploading-theme on your sandbox.

@Copons Copons requested a review from a team November 19, 2025 17:08
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 19, 2025
@Copons Copons marked this pull request as ready for review November 19, 2025 17:08
@Copons Copons force-pushed the dotthem-122-free-plan-prompts-business-upgrade-when-uploading-theme branch from 9f4b990 to 62d7024 Compare November 19, 2025 17:09
@Copons Copons force-pushed the dotthem-122-free-plan-prompts-business-upgrade-when-uploading-theme branch from 62d7024 to f652063 Compare November 20, 2025 10:05
@matticbot
Copy link
Contributor

matticbot commented Nov 20, 2025

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~17 bytes removed 📉 [gzipped])

name                   parsed_size           gzip_size
entry-stepper                -23 B  (-0.0%)      -17 B  (-0.0%)
entry-reauth-required        -23 B  (-0.0%)      -17 B  (-0.0%)
entry-main                   -23 B  (-0.0%)      -17 B  (-0.0%)
entry-login                  -23 B  (-0.0%)      -17 B  (-0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~125 bytes removed 📉 [gzipped])

name    parsed_size           gzip_size
themes       -852 B  (-0.1%)     -125 B  (-0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~14 bytes removed 📉 [gzipped])

name                                parsed_size           gzip_size
async-load-staging-site-sync-modal        -23 B  (-0.0%)      -14 B  (-0.0%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@xavier-lc
Copy link
Contributor

Case 2: /themes/SITE?flags=-jitms

Note: turning off the jitms feature (note the plural!) is needed to prevent overriding the Theme Showcase's upsellBanner feature.

  • Select a Premium site.
  • Navigate to the Calypso Theme Showcase.
  • 👀 Ensure the "upload themes" banner doesn't show anymore.

Should I be seeing the banner in production if I go to /themes/SITE with a premium one? Asking because I don't see it there with or without the flag.

@Copons
Copy link
Contributor Author

Copons commented Nov 20, 2025

Case 2: /themes/SITE?flags=-jitms
Note: turning off the jitms feature (note the plural!) is needed to prevent overriding the Theme Showcase's upsellBanner feature.

  • Select a Premium site.
  • Navigate to the Calypso Theme Showcase.
  • 👀 Ensure the "upload themes" banner doesn't show anymore.

Should I be seeing the banner in production if I go to /themes/SITE with a premium one? Asking because I don't see it there with or without the flag.

@xavier-lc You should, but also the conditions are a bit confusing. Basically you have to reach the end of this function:

renderBanner = () => {
const { loggedOutComponent, upsellBanner, isUpsellCardDisplayed, isSiteECommerceFreeTrial } =
this.props;
// Don't show the banner if there is already an upsell card displayed
if ( isUpsellCardDisplayed ) {
return null;
}
// In ecommerce trial sites, we only want to show upsell banner.
if ( isSiteECommerceFreeTrial ) {
if ( upsellBanner ) {
return upsellBanner;
}
return null;
}
if ( config.isEnabled( 'jitms' ) && ! loggedOutComponent ) {
return (
<AsyncLoad
require="calypso/blocks/jitm"
placeholder={ null }
messagePath="calypso:themes:showcase-website-design"
/>
);
}
return upsellBanner;
};

On my test site, I simply needed to turn off the jitms flag, and considered it the least confusing test instruction I could ask for. 😅

@xavier-lc
Copy link
Contributor

@Copons I've checked on trunk with a premium site (/themes/xavilc-dpycm.wordpress.com?flags=-jitms) and the banner does not display because shouldNotDisplay is true on

const shouldNotDisplay =

due to selectedSiteHasFeature being true for "upload-themes"

Copy link
Contributor

@xavier-lc xavier-lc left a comment

Choose a reason for hiding this comment

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

LGTM

As mentioned on the description, the upselBanner wasn't showing up anyway on premium sites.

@Copons
Copy link
Contributor Author

Copons commented Nov 21, 2025

@Copons I've checked on trunk with a premium site (/themes/xavilc-dpycm.wordpress.com?flags=-jitms) and the banner does not display because shouldNotDisplay is true on

const shouldNotDisplay =

due to selectedSiteHasFeature being true for "upload-themes"

Oh, I see, so it was a case of Summer Special pulling the rug! Thanks for checking!

@Copons Copons merged commit 038aa1e into trunk Nov 21, 2025
12 checks passed
@Copons Copons deleted the dotthem-122-free-plan-prompts-business-upgrade-when-uploading-theme branch November 21, 2025 15:22
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants