Skip to content

Boost: Remove the unrendered PremiumTooltip and InterstitialModalCTA - #55500

Merged
xavier-lc merged 4 commits into
trunkfrom
change/boost-remove-premium-tooltip
Nov 26, 2026
Merged

xavier-lc merged 4 commits into
trunkfrom
change/boost-remove-premium-tooltip

Conversation

@xavier-lc

@xavier-lc xavier-lc commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Part of BOOST-702. Follow-up to #55441, as promised there.

Proposed changes

Nothing renders these since the legacy dashboard went, so they go:

  • PremiumTooltip and its styles, and critical-css-module.module.scss, which only styled its wrapper.
  • InterstitialModalCTA and the app's UpgradeCTA, which only PremiumTooltip still used, with their tests, the e2e stand-in for them, and the right-arrow icon only UpgradeCTA used. The _inc/overview UpgradeCTA is a different component and stays.
  • Test mocks for the interstitial image and pricing store that only those needed.

The e2e tooltip-clip fixture borrowed PremiumTooltip's styles to size its tooltip. It now has its own small stylesheet with the same geometry, in logical properties. Its focus-ring test only checked a rule in PremiumTooltip's stylesheet, which no shipped tooltip has, so it goes too.

No visible change.

Related product discussion/links

  • BOOST-702

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

No.

Testing instructions

  • pnpm test in projects/plugins/boost passes.
  • The tooltip-clip spec passes standalone (see tests/e2e/README.md): specs/base/modern-settings-tooltip-clip.test.ts.

🤖 Generated with Claude Code

Nothing renders them since the legacy dashboard went. The e2e tooltip-clip
fixture now owns the styles it measures, and the focus-ring check, which
only covered PremiumTooltip's own rule, goes with it.

Part of BOOST-702.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4t4VYYkf9hkHRcrxvMydH
@xavier-lc
xavier-lc requested a review from a team as a code owner November 26, 2026 12:25
@xavier-lc xavier-lc added [Status] Needs Review This PR is ready for review. [Plugin] Boost A feature to speed up the site and improve performance. labels Nov 26, 2026
@xavier-lc xavier-lc self-assigned this Nov 26, 2026
@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!


Boost plugin:

No scheduled milestone found for this plugin.

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 Nov 26, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 1 file.

File Coverage Δ% Δ Uncovered
projects/plugins/boost/app/assets/src/js/lib/utils/analytics.ts 19/23 (82.61%) -8.70% 2 ❤️‍🩹

Full summary · PHP report · JS report

The settings-tooltip* glob also matched the fixture's new stylesheet,
which made eslint lint it with only the import rules and no plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4t4VYYkf9hkHRcrxvMydH

@xavier-lc xavier-lc left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed at aa9ea78c76c: code and CI only, not tested on a live site.

The removal is clean. Nothing at this head still imports premium-tooltip, interstitial-modal-cta, upgrade-cta/upgrade-cta, critical-css-module.module.scss or settings-tooltip-upgrade-cta. The helpers they used all have other callers: usePricing (pricing table), canOfferUpgrade, tooltipLayer, @automattic/number-formatters and @automattic/jetpack-my-jetpack.

[suggestion] svg/right-arrow.tsx has no importers left. The deleted UpgradeCTA was its only user, so it can go here too:

const RightArrow = () => (
<svg width="19" height="17" viewBox="0 0 19 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.6953 16.3906L18.4062 8.60938L10.6953 0.828125L8.63281 2.98438L12.8516 7.10938H0.699219V10.1094H12.8516L8.63281 14.2344L10.6953 16.3906Z" />
</svg>
);
export default RightArrow;

Checked and fine:

  • Fixture geometry is unchanged. The 70vw mobile rule you dropped only matched inline popovers, and the fixture uses tooltipLayer (inline: false), so it never applied. The 440px width and the anchor styles carry over, now in logical properties.
  • The ESLint glob change is needed. A flat-config files glob adds matching files to the lint set, so without it the new .scss would be linted as JS.
  • Dropping the focus-ring test is justified. It only covered a rule in the deleted stylesheet.
  • The changelog entry is right. It is empty with a Comment:, which fits a change users can't see.
  • CI is green. JS tests, type checking, ESLint, Stylelint and Boost Base e2e (which holds modern-settings-tooltip-clip) pass. Modules e2e was still pending.

LiamSarsfield
LiamSarsfield previously approved these changes Nov 26, 2026

@LiamSarsfield LiamSarsfield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀

A couple of non-blocking nits on the new fixture stylesheet.

  • Could we drop the .wrapper :global(.icon-tooltip-content) p rule in settings-tooltip-cards.module.scss? The popover is portaled out of .wrapper, so it never matches.
  • Would "a wide, CTA-holding worst case" make sense in the header instead of "realistic"? None of the shipped Settings tooltips is wide.

Drop a rule the portaled popover never matches, and describe the fixture
tooltip as the worst case it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K4t4VYYkf9hkHRcrxvMydH
@xavier-lc

Copy link
Copy Markdown
Contributor Author

Thanks @LiamSarsfield! Both done in 072fa7c: the portaled-popover rule is gone, and the header now calls the fixture tooltip a wide, CTA-holding worst case.

@LiamSarsfield LiamSarsfield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, both look good. LGTM 🚀

@xavier-lc
xavier-lc merged commit 7e49aa4 into trunk Nov 26, 2026
126 of 127 checks passed
@xavier-lc
xavier-lc deleted the change/boost-remove-premium-tooltip branch November 26, 2026 22:31
@github-actions github-actions Bot removed the [Status] Needs Review This PR is ready for review. label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

E2E Tests [Plugin] Boost A feature to speed up the site and improve performance. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants