Skip to content

Clean up host-managed purchase detail cards#110566

Open
fditrapani wants to merge 1 commit intotrunkfrom
cleanup/host-managed-purchase-cards
Open

Clean up host-managed purchase detail cards#110566
fditrapani wants to merge 1 commit intotrunkfrom
cleanup/host-managed-purchase-cards

Conversation

@fditrapani
Copy link
Copy Markdown
Contributor

@fditrapani fditrapani commented May 8, 2026

Fixes: https://linear.app/a8c/issue/CHE-482
Relates to: #110564, #110546

Summary

This PR hides Renews/Expires and Pricing cards if there is no data to show in them.

Before After
Screenshot 2026-05-07 at 11 21 43 PM Screenshot 2026-05-07 at 11 21 40 PM

Here are the specifics of what was changed:

  • Remove the EXPIRES and PRICE cards from host-managed (Pressable) purchase detail pages — they showed misleading or redundant info since Pressable controls billing
  • Move the partner contact message ("Please contact Pressable for details") into the page subtitle instead of wasting a full card on it
  • A4A Billing Dragon purchases are unaffected — they continue showing price/expiry cards as before

Test plan

  • Visit a host-managed partner purchase detail page (e.g. Pressable Jetpack Security) — only SITE and OWNER cards should appear in the grid
  • Subtitle should read "Host Managed Plan. Please contact Pressable for details." (not "Host Managed Plan for [site-slug]")
  • Visit a regular (non-partner) purchase detail page — all four cards still appear, subtitle unchanged
  • Visit an A4A Billing Dragon purchase — price and expiry cards still appear
  • Visit an expired purchase — status card still shows "Removed" (for non-partner purchases)

🤖 Generated with Claude Code

…artner contact to subtitle

For host-managed (Pressable) purchases, the EXPIRES and PRICE cards showed
misleading or redundant info since Pressable controls billing. Remove both
cards and surface the partner contact message in the page subtitle instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@fditrapani fditrapani requested a review from michaeldcain May 8, 2026 03:26
@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 May 8, 2026
@matticbot
Copy link
Copy Markdown
Contributor

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

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

  • help-center
  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug cleanup/host-managed-purchase-cards on your sandbox.

@fditrapani fditrapani marked this pull request as ready for review May 8, 2026 04:17
@fditrapani fditrapani requested review from a team as code owners May 8, 2026 04:17
Comment thread client/dashboard/me/billing-purchases/purchase-settings/index.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants