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

Stats: Add Today and Yesterday to date range shortcuts #96548

Closed dognose24 closed 4 days ago

dognose24 commented 6 days ago

Related to https://github.com/Automattic/red-team/issues/272

Proposed Changes

Why are these changes being made?

Testing Instructions

截圖 2024-11-21 凌晨12 00 04 截圖 2024-11-21 凌晨12 40 13

Pre-merge Checklist

matticbot commented 6 days ago
Calypso Live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125209
Jetpack Cloud live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125209&env=jetpack
Automattic for Agencies live (direct link)
https://calypso.live?image=registry.a8c.com/calypso/app:build-125209&env=a8c-for-agencies
matticbot commented 6 days ago

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

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

To test WordPress.com changes, run install-plugin.sh $pluginSlug update/stats_date_range_shortcuts_add_today on your sandbox.

matticbot commented 6 days ago

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

Sections (~379 bytes added 📈 [gzipped])

``` name parsed_size gzip_size stats +820 B (+0.1%) +191 B (+0.1%) plugins +292 B (+0.0%) +102 B (+0.0%) media +292 B (+0.0%) +102 B (+0.0%) jetpack-cloud-agency-sites-v2 +292 B (+0.0%) +86 B (+0.0%) backup +292 B (+0.0%) +86 B (+0.0%) activity +292 B (+0.0%) +86 B (+0.0%) a8c-for-agencies-sites +292 B (+0.0%) +86 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.

Async-loaded Components (~259 bytes added 📈 [gzipped])

``` name parsed_size gzip_size async-load-store-app-store-stats-listview +743 B (+0.3%) +157 B (+0.2%) async-load-store-app-store-stats +743 B (+0.2%) +157 B (+0.1%) async-load-design-playground +292 B (+0.0%) +102 B (+0.0%) async-load-design-blocks +292 B (+0.0%) +102 B (+0.0%) async-load-design +292 B (+0.0%) +102 B (+0.0%) async-load-calypso-post-editor-media-modal +292 B (+0.0%) +102 B (+0.0%) async-load-calypso-post-editor-editor-media-modal +292 B (+0.0%) +102 B (+0.0%) ``` React components that are loaded lazily, when a certain part of UI is displayed for the first time.

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.