Skip to content

WIP (DO NOT MERGE): A4A Report builder prototype #103613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 33 commits into
base: trunk
Choose a base branch
from

Conversation

madebynoam
Copy link

Part of https://linear.app/a8c/issue/A4AD-9/i1-designs-and-prototype

Proposed Changes

  • Adds a reporting section to A4A: Overview + Report builder
  • Placeholder for Reports dashboard which will use the standard Dataview

Testing Instructions

Open the live link, and navigate to Reports
Click Build a new report to view the report builder in the modal

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@madebynoam madebynoam requested review from vitozev and yashwin May 22, 2025 00:52
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 22, 2025
@madebynoam madebynoam marked this pull request as draft May 22, 2025 00:56
@matticbot
Copy link
Contributor

matticbot commented May 22, 2025

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

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

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug report-builder-prototype on your sandbox.

@matticbot
Copy link
Contributor

matticbot commented May 22, 2025

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

App Entrypoints (~34 bytes added 📈 [gzipped])

name                    parsed_size           gzip_size
entry-main                  +3619 B  (+0.2%)      +66 B  (+0.0%)
entry-stepper                -179 B  (-0.0%)     +108 B  (+0.0%)
entry-domains-landing        -169 B  (-0.0%)      +41 B  (+0.0%)
entry-dashboard-dotcom       -169 B  (-0.0%)      +41 B  (+0.0%)
entry-dashboard-a4a          -169 B  (-0.0%)      +41 B  (+0.0%)
entry-browsehappy            -169 B  (-0.1%)      +41 B  (+0.1%)
entry-reauth-required        -120 B  (-0.0%)      +71 B  (+0.0%)
entry-login                  -120 B  (-0.0%)      +71 B  (+0.0%)
entry-subscriptions           -84 B  (-0.0%)     +191 B  (+0.0%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~19219 bytes removed 📉 [gzipped])

name                                parsed_size           gzip_size
a8c-for-agencies-reports              +250168 B    (new)   +77476 B    (new)
a8c-for-agencies-plugins                +1337 B  (+0.1%)    -1025 B  (-0.2%)
a8c-for-agencies-settings               +1272 B  (+0.5%)     +555 B  (+0.7%)
a8c-for-agencies-feedback               +1272 B  (+0.6%)     +588 B  (+0.9%)
a8c-for-agencies-agency-tier            +1272 B  (+0.5%)     +557 B  (+0.7%)
a8c-for-agencies-team                   +1169 B  (+0.1%)    +1990 B  (+0.9%)
a8c-for-agencies-overview               +1168 B  (+0.1%)    +2737 B  (+0.9%)
domains                                  +536 B  (+0.0%)     +153 B  (+0.0%)
plans                                    +533 B  (+0.0%)      +69 B  (+0.0%)
a8c-for-agencies-client                  +522 B  (+0.0%)    +1544 B  (+0.3%)
a8c-for-agencies-woopayments             +519 B  (+0.1%)     +878 B  (+0.4%)
overview                                 +472 B  (+0.0%)    +1008 B  (+0.1%)
email                                    -472 B  (-0.1%)    +1239 B  (+0.4%)
a8c-for-agencies-marketplace             +340 B  (+0.0%)      -63 B  (-0.0%)
stats                                    +297 B  (+0.0%)     +103 B  (+0.0%)
a8c-for-agencies-purchases               +274 B  (+0.0%)      -36 B  (-0.0%)
staging-site                             +263 B  (+0.0%)      +20 B  (+0.0%)
sites-dashboard                          +263 B  (+0.0%)     +115 B  (+0.0%)
site-settings                            +263 B  (+0.0%)      +51 B  (+0.0%)
site-performance                         +263 B  (+0.0%)       +5 B  (+0.0%)
site-logs                                +263 B  (+0.0%)     +234 B  (+0.1%)
hosting                                  +263 B  (+0.0%)      +50 B  (+0.0%)
a8c-for-agencies-referrals               -244 B  (-0.0%)    +1855 B  (+0.7%)
subscribers                              +239 B  (+0.0%)    +1242 B  (+0.4%)
jetpack-cloud-agency-dashboard           +228 B  (+0.0%)     -185 B  (-0.1%)
jetpack-connect                          +224 B  (+0.0%)     +113 B  (+0.0%)
jetpack-cloud-pricing                    +211 B  (+0.0%)      +98 B  (+0.0%)
github-deployments                       +211 B  (+0.0%)     +125 B  (+0.0%)
site-purchases                           +199 B  (+0.0%)     +346 B  (+0.1%)
purchases                                +199 B  (+0.0%)     +383 B  (+0.1%)
jetpack-cloud-agency-signup              -196 B  (-0.2%)     -558 B  (-2.1%)
scan                                     +193 B  (+0.0%)      +70 B  (+0.0%)
jetpack-social                           +193 B  (+0.0%)      +66 B  (+0.0%)
jetpack-search                           +193 B  (+0.0%)      +70 B  (+0.0%)
backup                                   +193 B  (+0.0%)      +73 B  (+0.0%)
jetpack-cloud                            +192 B  (+0.1%)     +346 B  (+0.3%)
a8c-for-agencies                         +183 B  (+0.1%)      +50 B  (+0.1%)
import                                   +144 B  (+0.0%)     +130 B  (+0.1%)
jetpack-cloud-partner-portal             +143 B  (+0.0%)     -147 B  (-0.0%)
a8c-for-agencies-sites                   +130 B  (+0.0%)    +1146 B  (+0.2%)
media                                    +121 B  (+0.0%)      +80 B  (+0.0%)
a8c-for-agencies-migrations              +120 B  (+0.0%)    +1811 B  (+0.8%)
a8c-for-agencies-partner-directory       +118 B  (+0.0%)      -78 B  (-0.0%)
woocommerce-installation                 +108 B  (+0.0%)      +37 B  (+0.0%)
woocommerce                              +108 B  (+0.0%)      +37 B  (+0.0%)
themes                                   +108 B  (+0.0%)      +37 B  (+0.0%)
settings-writing                         +108 B  (+0.0%)      +37 B  (+0.0%)
settings-security                        +108 B  (+0.0%)      +37 B  (+0.0%)
settings-reading                         +108 B  (+0.0%)      +37 B  (+0.0%)
settings-podcast                         +108 B  (+0.0%)      +30 B  (+0.0%)
settings-performance                     +108 B  (+0.0%)      +37 B  (+0.0%)
settings-newsletter                      +108 B  (+0.0%)      +37 B  (+0.0%)
settings-jetpack                         +108 B  (+0.0%)      +37 B  (+0.0%)
settings-discussion                      +108 B  (+0.0%)      +37 B  (+0.0%)
settings                                 +108 B  (+0.0%)      +36 B  (+0.0%)
promote-post-i2                          +108 B  (+0.0%)      -33 B  (-0.0%)
posts-custom                             +108 B  (+0.0%)      +37 B  (+0.0%)
posts                                    +108 B  (+0.0%)      +37 B  (+0.0%)
people                                   +108 B  (+0.0%)      +37 B  (+0.0%)
pages                                    +108 B  (+0.0%)      +37 B  (+0.0%)
migrate                                  +108 B  (+0.0%)      +37 B  (+0.0%)
marketplace                              +108 B  (+0.0%)      +37 B  (+0.0%)
marketing                                +108 B  (+0.0%)      +37 B  (+0.0%)
jetpack-cloud-features-comparison        +108 B  (+0.0%)      +37 B  (+0.0%)
gutenberg-editor                         +108 B  (+0.0%)      +37 B  (+0.0%)
google-my-business                       +108 B  (+0.0%)     +176 B  (+0.1%)
export                                   +108 B  (+0.0%)      +37 B  (+0.0%)
earn                                     +108 B  (+0.0%)      +37 B  (+0.0%)
customize                                +108 B  (+0.0%)      +37 B  (+0.0%)
concierge                                +108 B  (+0.0%)      +37 B  (+0.0%)
checkout                                 +108 B  (+0.0%)     +190 B  (+0.0%)
add-ons                                  +108 B  (+0.0%)      -33 B  (-0.0%)
activity                                 +108 B  (+0.0%)      +34 B  (+0.0%)
jetpack-cloud-overview                   -107 B  (-0.0%)     -395 B  (-0.3%)
plugins                                  +105 B  (+0.0%)    -1272 B  (-0.2%)
reader                                   +101 B  (+0.0%)       -3 B  (-0.0%)
jetpack-cloud-plugin-management           +92 B  (+0.0%)    -1244 B  (-0.2%)
a8c-for-agencies-signup                   +85 B  (+0.0%)     -123 B  (-0.2%)
a8c-for-agencies-landing                  +85 B  (+0.1%)      -26 B  (-0.1%)
site-monitoring                           +67 B  (+0.0%)     -441 B  (-0.1%)
theme                                     -49 B  (-0.0%)     -378 B  (-0.2%)
security                                  -26 B  (-0.0%)      +80 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 (~235 bytes added 📈 [gzipped])

name                                                                              parsed_size           gzip_size
async-load-automattic-help-center                                                      +244 B  (+0.0%)     -437 B  (-0.3%)
async-load-calypso-my-sites-stats-pages-subscribers                                    +196 B  (+0.1%)    +1099 B  (+1.8%)
async-load-automattic-help-center-stepper                                              +195 B  (+0.0%)     -396 B  (-0.2%)
async-load-comment-block-editor                                                        +129 B  (+0.0%)     -303 B  (-0.0%)
async-load-signup-steps-woocommerce-install-step-store-address                         -103 B  (-0.1%)      -10 B  (-0.0%)
async-load-calypso-jetpack-cloud-sections-sidebar-navigation-manage-selected-...        +19 B  (+0.0%)     -124 B  (-0.3%)
async-load-calypso-post-editor-media-modal                                              +13 B  (+0.0%)      +10 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.

@madebynoam madebynoam removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 22, 2025
@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 22, 2025
@madebynoam madebynoam removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 22, 2025
@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 22, 2025
@madebynoam madebynoam added the A4A label May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4A [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