-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Stepper: Add a flag to skip the calypso_signup_start
on sign up flows
#91597
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~28 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. 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. Generated by performance advisor bot at iscalypsofastyet.com. |
calypso_signup_start
on sign up flows
calypso_signup_start
on sign up flowscalypso_signup_start
on sign up flows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected! One question tho: Are we supposed to fire the calypso_signup_step_start
event even with the signed_up flag?
I think we should, yes: if the user views the step, we should trigger the event to show that they viewed the step. To me that makes sense. |
Solves part of #91280
Proposed Changes
calypso_signup_start
to a separate hook with automated tests.signed_up
flag to skip thecalypso_signup_start
event when the user backs from the/account/user
page.Why are these changes being made?
We observed duplicated instance of
calypso_signup_start
. It is caused by the follow sequence of user interactions:/setup/migration-signup
)calypso_signup_start
calypso_signup_start
againThe overall idea is to add a flag to the redirect_to param to indicate the user is backing from a sign-in flow.
Note
I am going to add the flag on the redirect_to on my next PR.
Testing Instructions
isSignupFlow
(E.g/setup/migration-signup
)calypso_signup_start
was triggeredsigned_up=1
to the current URL (E.g./setup/migration-signup/site-migration-identify?siteSlug=YOUR_SITE&signed_up=1
calypso_signup_start
is triggered./
Pre-merge Checklist