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

Jetpack Authorize component: minor refactor #41801

Merged
merged 8 commits into from
Jun 9, 2020

Conversation

DanReyLop
Copy link
Contributor

@DanReyLop DanReyLop commented May 5, 2020

Changes proposed in this Pull Request

In bd918e5, removed the isAtomic prop since it wasn't being used.

In 5717ba9, extracted the rendering of the "Back to WP-Admin" link into a separate function.

How to test

While logged into WordPress.com, connect to Jetpack from your local site. This link should still work:
Screenshot 2020-05-05 at 10 32 16

Note: This is a required refactor for the new "Woo DNA" flow, implemented in #41798

@DanReyLop DanReyLop added Jetpack [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 5, 2020
@DanReyLop DanReyLop requested a review from a team May 5, 2020 13:03
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

matticbot commented May 5, 2020

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

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

name         parsed_size           gzip_size
entry-login        +41 B  (+0.0%)      +11 B  (+0.0%)

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

Sections (~136 bytes added 📈 [gzipped])

name             parsed_size           gzip_size
jetpack-connect       +247 B  (+0.0%)      +86 B  (+0.1%)
accept-invite         +193 B  (+0.1%)      +50 B  (+0.1%)

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 (~53 bytes added 📈 [gzipped])

name                          parsed_size           gzip_size
async-load-signup-steps-user       +193 B  (+0.2%)      +50 B  (+0.2%)
async-load-design-blocks            +41 B  (+0.0%)       +3 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.

Copy link
Contributor

@vbelolapotkov vbelolapotkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Tested and it works as expected! 👍

@vbelolapotkov vbelolapotkov added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 28, 2020
@DanReyLop DanReyLop force-pushed the woodna/jetpack-authorize-refactor branch from 99ef0bf to e5feace Compare June 8, 2020 12:04
@DanReyLop DanReyLop requested review from oandregal and a team as code owners June 8, 2020 12:04
@DanReyLop DanReyLop force-pushed the woodna/signup-block-enhancements branch from 3db003a to 085164c Compare June 8, 2020 12:05
@sgomes
Copy link
Contributor

sgomes commented Jun 8, 2020

@Automattic/team-calypso: This PR only changes one file in jetpack-connect. Any idea why it pinged so many teams for a review?

@sirreal sirreal removed the request for review from a team June 8, 2020 14:52
@noahtallen
Copy link
Member

@sgomes seems like a bad rebase?

@noahtallen noahtallen removed request for a team June 8, 2020 20:01
@DanReyLop DanReyLop removed request for oandregal and a team June 8, 2020 20:42
@DanReyLop
Copy link
Contributor Author

This is so weird. Is there any automation that adds team reviews depending on the files touched? It's possible that this PR was "massive" for a moment (I did some rebasing with multiple branches and pushed them in no particular order).

@noahtallen
Copy link
Member

Yes and yes! The Code owners file adds review requests. I’ve often seen similar things happen when I get pinged for a review during a rebase. it doesn’t normally happen for simple rebase in master though. Working with lots of branches could do it though

@DanReyLop
Copy link
Contributor Author

Oops, sorry about the noise then! This was definitely not a simple rebase. I'll be more careful about pushing branches in the correct order in the future.

Base automatically changed from woodna/signup-block-enhancements to master June 9, 2020 13:22
@DanReyLop DanReyLop merged commit 7f53d7b into master Jun 9, 2020
@DanReyLop DanReyLop deleted the woodna/jetpack-authorize-refactor branch June 9, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants