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

Launchpad - Update launchpad domain upsell completion #75133

Merged
merged 5 commits into from
Apr 7, 2023

Conversation

agrullon95
Copy link
Contributor

@agrullon95 agrullon95 commented Mar 30, 2023

Related to #74416

Test / Review Estimation

Test: Medium
Review: Short

Proposed Changes

  • Adds logic to update site option launchpad_checklist_tasks_statuses with new value domain_upsell_deferred: true when the user accesses the domain upsell flow and clicks the "Choose a domain later" link on the domains page. domain_upsell_deferred will be used to cross off the Choose my domain later task on the launchpad screen.

CleanShot 2023-03-30 at 16 37 41@2x

Testing Instructions

  • Checkout this branch
  • Create a new free flow launchpad-enabled site
  • Navigate to the launchpad screen and click the "Choose a domain" task.
  • Click the "Choose my domain later" link on the domain selection screen. It should be on the right side of the screen.
  • Verify the "Choose a domain" task is marked as completed on the launchpad screen

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 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-ajp-p2)?

@agrullon95 agrullon95 self-assigned this Mar 30, 2023
@agrullon95 agrullon95 changed the title Update/launchpad domain upsell completion Launchpad - Update launchpad domain upsell completion Mar 30, 2023
@matticbot
Copy link
Contributor

matticbot commented Mar 30, 2023

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

Sections (~451 bytes added 📈 [gzipped])

name                  parsed_size           gzip_size
update-design-flow         +704 B  (+0.1%)     +277 B  (+0.2%)
write-flow                 +201 B  (+0.1%)      +60 B  (+0.1%)
videopress-flow            +201 B  (+0.1%)      +60 B  (+0.1%)
newsletter-flow            +201 B  (+0.0%)      +61 B  (+0.0%)
link-in-bio-tld-flow       +201 B  (+0.0%)      +60 B  (+0.0%)
link-in-bio-flow           +201 B  (+0.0%)      +60 B  (+0.0%)
free-flow                  +201 B  (+0.1%)      +60 B  (+0.1%)
build-flow                 +201 B  (+0.1%)      +60 B  (+0.1%)
home                       +200 B  (+0.0%)      +53 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.

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.

@github-actions
Copy link

github-actions bot commented Mar 30, 2023

@agrullon95 agrullon95 marked this pull request as ready for review March 30, 2023 14:58
@agrullon95 agrullon95 requested a review from a team March 30, 2023 15:24
@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 Mar 30, 2023
@agrullon95 agrullon95 added [Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched. and removed DO NOT MERGE labels Mar 30, 2023
@edanzer
Copy link
Contributor

edanzer commented Mar 31, 2023

@agrullon95 - This one doesn't seem to be testing as expected. I'm loading up this branch, going to http://calypso.localhost:3000/setup/free/intro to start a free site. When I get to Launchpad, I'm clicking Choose a Domain. One the domains screen, I'm choosing 'Choose My Domain Later'. I am redirected back to Launchpad, but the Choose a Domain task is still incomplete. It is basically behaving as before - I actually double checked everything to be sure I'm running the branch.

From what I can tell consoling some output, it seems like the new call to saveSiteSettings() should be firing, but on Launchpad, the value of launchpad_checklist_tasks_statuses is still just an empty array. There's no value for domain_upsell_deferred from what I can see.

Copy link
Contributor

@mattwiebe mattwiebe left a comment

Choose a reason for hiding this comment

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

This tests properly in combination with the endpoint. Tested on the free flow.

@agrullon95
Copy link
Contributor Author

@edanzer - The jetpack PR with the logic that updates the launchpad_checklist_tasks_statuses option has been merged. You should be able to test these changes now. You no longer need to checkout the Jetpack PR.

@jeyip
Copy link
Contributor

jeyip commented Apr 7, 2023

Testing

Requirements

  • Verify the "Choose a domain" task is marked as completed on the launchpad screen

Browsers

  • Chrome

@agrullon95 agrullon95 merged commit 5b3e932 into trunk Apr 7, 2023
@agrullon95 agrullon95 deleted the update/launchpad-domain-upsell-completion branch April 7, 2023 23:06
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Launchpad The onboarding Launchpad that guides users through setting up their site and getting it launched.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants