Skip to content
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] Task: Create Plans page for Jetpack App Site Creation #82404

Conversation

staskus
Copy link
Contributor

@staskus staskus commented Sep 29, 2023

This is a PR to make a build and test some changes to #82135

staskus and others added 18 commits September 25, 2023 18:56
- Created jetpack-app-plans directory
- Added an entry into sections.js with a path and module
- Created controller.jsx that displays JetpackAppPlans component and passes query parameters
- Created index.js defining a page and including jetpackAppPlans controller
- Created main.jsx that shows a loading indicator while querying plans, and PlansFeaturesMain component once plans are loaded
- Created style.scss with jetpack-app-plans style that includes plan-features-layout-switcher to support media queries when displaying plans grid
- Allow redirect_to parameter to URL which is then used to callback with a selected plan
- Do not pass selected plan if free plan is selected
Use getPlanCartItem to get plan
@github-actions
Copy link

github-actions bot commented Sep 29, 2023

@matticbot
Copy link
Contributor

matticbot commented Sep 29, 2023

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

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

name                   parsed_size           gzip_size
entry-stepper              +2293 B  (+0.1%)     +145 B  (+0.0%)
entry-main                 +2293 B  (+0.1%)     +142 B  (+0.0%)
entry-subscriptions         +108 B  (+0.0%)      +44 B  (+0.0%)
entry-login                 +108 B  (+0.0%)      +44 B  (+0.0%)
entry-domains-landing       +108 B  (+0.0%)      +44 B  (+0.0%)
entry-browsehappy           +108 B  (+0.1%)      +44 B  (+0.1%)

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

Sections (~21928 bytes added 📈 [gzipped])

name                  parsed_size           gzip_size
jetpack-app-plans       +611331 B    (new)  +186747 B    (new)
update-design-flow          +78 B  (+0.0%)      +17 B  (+0.0%)
plugins                     +78 B  (+0.0%)      +17 B  (+0.0%)
plans                       +78 B  (+0.0%)      +17 B  (+0.0%)
link-in-bio-tld-flow        +78 B  (+0.0%)      +17 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 (~17 bytes added 📈 [gzipped])

name                                             parsed_size           gzip_size
async-load-signup-steps-plans-theme-preselected        +78 B  (+0.0%)      +17 B  (+0.0%)
async-load-signup-steps-plans                          +78 B  (+0.0%)      +17 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.

@staskus staskus force-pushed the task/82131-create-plans-page-for-jetpack-app-site-creation-test branch from 16f967e to 01afb54 Compare October 2, 2023 11:12
@staskus staskus closed this Oct 6, 2023
@staskus staskus deleted the task/82131-create-plans-page-for-jetpack-app-site-creation-test branch October 6, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants