Automattic / wp-calypso

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

Enable Bulk Plugin Management: Fix the updateable sites count displayed #96603

Open vykes-mac opened 1 day ago

vykes-mac commented 1 day ago

Closes https://github.com/Automattic/dotcom-forge/issues/9811

Proposed Changes

This PR ensure the correct number of updateable site is displayed in the update modal and also ensure the update call to action is only shown on updateable sites in the sites list modal.

This modal image

Sites list modal was showing upadate CTA on sites that are not updateable image

This modal was showing incorrect number of sites being updated image

Why are these changes being made?

See the issue for pre-req setup https://github.com/Automattic/dotcom-forge/issues/9811

Testing Instructions

*

Pre-merge Checklist

github-actions[bot] commented 1 day ago
Calypso Live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:commit-43961e338619de714a6e53e4a9f276e6db31aef5
Jetpack Cloud live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:commit-43961e338619de714a6e53e4a9f276e6db31aef5&env=jetpack
Automattic for Agencies live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:commit-43961e338619de714a6e53e4a9f276e6db31aef5&env=a8c-for-agencies
vykes-mac commented 1 day ago

image

I think we need to change the copy for this modal, It feels like the count should represent the number of sites the plugin is installed on but it also mentioned update which can be read as the number of sites that will be updated.

was the intent to communicate sites that will be updated or sites the plugin is installed on? 🤷

matticbot commented 23 hours ago

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

Sections (~111 bytes added 📈 [gzipped])

``` name parsed_size gzip_size plugins +341 B (+0.0%) +111 B (+0.0%) jetpack-cloud-plugin-management +341 B (+0.0%) +111 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.

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.