Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Indicate when another admin has active upgrades #96328

Open donalirl opened 1 week ago

donalirl commented 1 week ago

What

For admin users where the site's upgrades are owned by a different admin, we should provide an indication that another admin owns the purchases.

Why

Admins on a site attempt to renew or cancel an upgrade, but face confusion if the upgrade is owned by a different admin because their purchases and billing history appear empty: Image Image

For the admin user, this makes it seem like the site has no upgrades, and they need to contact support to figure it out. That's when we inform them that the purchases are owned by a different admin, but we can surface this information in their /purchases/ to alleviate this confusion and prevent them from contacting support for help with it.

A typical example of this confusion can be seen in #9025258-zen

How

There are a few different ways to approach this. Two suggestions:

List the upgrade with the admin's username

We can list the upgrade under /purchases/ in the same way as it appears for the owner of the upgrade, but with the admin's username provided in the notice: Image

Provide a generic notice

Place a simple alert at the top of the upgrades list with generic messaging. Image

Text used:

⚠️ Upgrades for yourgroovydomain.com are owned by other site admins. The purchase owner can manage this purchase.

github-actions[bot] commented 1 week ago

Support References

This comment is automatically generated. Please do not edit it.