Repository navigation
Boost: Remove the unrendered PremiumTooltip and InterstitialModalCTA - #55500
Conversation
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
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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:
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. |
Code Coverage SummaryCoverage changed in 1 file.
|
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
left a comment
There was a problem hiding this comment.
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:
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
filesglob adds matching files to the lint set, so without it the new.scsswould 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.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K4t4VYYkf9hkHRcrxvMydH
LiamSarsfield
left a comment
There was a problem hiding this comment.
LGTM 🚀
A couple of non-blocking nits on the new fixture stylesheet.
- Could we drop the
.wrapper :global(.icon-tooltip-content) prule insettings-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
|
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
left a comment
There was a problem hiding this comment.
Thanks, both look good. LGTM 🚀
Part of BOOST-702. Follow-up to #55441, as promised there.
Proposed changes
Nothing renders these since the legacy dashboard went, so they go:
PremiumTooltipand its styles, andcritical-css-module.module.scss, which only styled its wrapper.InterstitialModalCTAand the app'sUpgradeCTA, which onlyPremiumTooltipstill used, with their tests, the e2e stand-in for them, and the right-arrow icon onlyUpgradeCTAused. The_inc/overviewUpgradeCTAis a different component and stays.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 inPremiumTooltip's stylesheet, which no shipped tooltip has, so it goes too.No visible change.
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
pnpm testinprojects/plugins/boostpasses.tests/e2e/README.md):specs/base/modern-settings-tooltip-clip.test.ts.🤖 Generated with Claude Code