-
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
Update/videopress onboarding v2 site creation #68196
Update/videopress onboarding v2 site creation #68196
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~50199 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~18603 bytes removed 📉 [gzipped])
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 (~2498 bytes added 📈 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
e6cd123
to
a88207e
Compare
…boarding-v2-site-creation
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.
Hmm, I created a new account and when selecting the Premium
plan nothing happens and I get this in the console:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'username')
at t (entry-stepper.8033f3925f4032e7b8f8.min.js:1:339760)
at onClick (92781.6bc400f26c19d9db929b.min.js:2:104817)
at Object.Be (16909.96e4aece4080cfdca51a.min.js:2:124462)
at Qe (16909.96e4aece4080cfdca51a.min.js:2:124616)
at 16909.96e4aece4080cfdca51a.min.js:2:142819
at Or (16909.96e4aece4080cfdca51a.min.js:2:142913)
at Pr (16909.96e4aece4080cfdca51a.min.js:2:143327)
at 16909.96e4aece4080cfdca51a.min.js:2:148975
at Ue (16909.96e4aece4080cfdca51a.min.js:2:224336)
at 16909.96e4aece4080cfdca51a.min.js:2:144786
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.
I had some strange issue locally that resolved itself. Tested well.
* Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart Co-authored-by: Panos Kountanis <panosktn@gmail.com>
* Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart Co-authored-by: Panos Kountanis <panosktn@gmail.com>
* Create VideoPress Onboarding v2 stepper structure. (#67454) * VideoPress site options step (WIP) (#67501) * VideoPress site options step (WIP) * Submit options step * VideoPress Onboarding v2: Account Step (#67552) * VideoPress Onboarding v2: Create account. * Adjust the flow steps slightly and remove nonexistent ones. * Videopress onboarding v2: domain selection (#67596) * Submit options step * VideoPress onboarding, domain selection step * Choose a domain styling * Add video, studio, productions, com as suggested tlds * Videopress onboarding: plan selection (#67643) * Submit options step * VideoPress onboarding, domain selection step * Choose a domain styling * Add video, studio, productions, com as suggested tlds * VideoPress site options step (WIP) * Submit options step * VideoPress onboarding: select a plan (WIP) * Update how we store site title, description and domain by using onboarding store * VideoPress onboarding: choose a plan step * Add translation for choose a domain step * Rebase * Videopress onboarding v2 global style (#67736) * VideoPress onboarding theme * VideoPress powered logo * Update flow progress and fix svg properties in videopress logo * VideoPress Onboarding v2: Site options refined (#67790) * Update flow progress and fix svg properties in videopress logo * Site options refined * Populate existing site title and description in site options onboarding * VideoPress onboarding v2 : choose a domain step refined (#67857) * VideoPress onboarding theme * VideoPress powered logo * Update flow progress and fix svg properties in videopress logo * Site options refined * Populate existing site title and description in site options onboarding * Allow passing the products list down to the domain search results * Choose a domain styling WIP * Choose a domain asides and styling * Domain styling * Domain step, style placeholders * Add classname to body so we can target VideoPress stepper specifically (#67894) * Actually create a site on VideoPress Onboarding flow v2. (#67912) * VideoPress Onboarding V2: Intro View (#67613) * Adding intro view styles for new VideoPress flow. Refactors "Jetpack powered" to be more inclusive of different "powered by" products so that we can show the V ideoPress logo there instead of Jetpack. * New VP logo, aligned vertically * More updates to new design iteration. * Seeing if playsinline helps with mobile safari autoplay. * Fix merge conflict for showing jetpack powered badge. * No longer need z-index hack! * Adjustments to the triangles * Restore previous CSS classname. * Restoring code, unintentional change. * Move color styles out of body so they aren`t applied globally. * Fixing CSS after bad merge. * remove top margin to fix centering. Co-authored-by: Eduardo Villuendas <eduardo.villuendas@automattic.com> * Videopress onboarding v2 : plan selection refined (#67916) * VideoPress Onboarding V2: plan selection refined * Mobile layout for choose a plan * VP Onboarding: clear onboarding site options on flow start and flow completion (#68162) * clear onboarding site options on flow start and flow completion * clear domain as well when starting or completing videopress flow * Update/videopress onboarding v2 site creation (#68196) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart Co-authored-by: Panos Kountanis <panosktn@gmail.com> * VideoPress onboarding v2 : steps validation (#68280) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart * Steps proxy on useStepNavigation * Upate validation rules Co-authored-by: Panos Kountanis <panosktn@gmail.com> * VideoPress onboarding v2 : buttons feedback (#68336) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart * Steps proxy on useStepNavigation * Upate validation rules * Disable form button if site title is not set * Add button feedback for plan selection * Update style.scss Co-authored-by: Panos Kountanis <panosktn@gmail.com> * Update/videopress onboarding v2 processing step (#68349) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * Cleanup * VP Onboarding: clear onboarding site options on flow start and flow completion (#68162) * clear onboarding site options on flow start and flow completion * clear domain as well when starting or completing videopress flow * Upate validation rules * Disable form button if site title is not set * VideoPress processing step WIP * Processing step Co-authored-by: John Caruso <johncaruso@gmail.com> * Use plan product for checkout URL instead of periodAgnosticSlug (#68438) * Adding new launchpad flow for VideoPress! (#67692) * Adding new launchpad flow for VideoPress! * Updating to i2 of design. * Moving styles to videopress.scss so all styles live in one place and can use the same color vars. * Set text-overflow: ellipsis for long domains. * Correcting `completing-purchase` path to use camel case. * Adding new launchpad flow for VideoPress! * Updating to i2 of design. * Moving styles to videopress.scss so all styles live in one place and can use the same color vars. * Set text-overflow: ellipsis for long domains. * Fix redirect URI from checkout page * Add plan to cart in order to add extra data for videomaker activation * Fixing launchpad settings for VideoPress flow. * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/task-helper.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/task-helper.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/translations.tsx Co-authored-by: John Caruso <johncaruso@gmail.com> Co-authored-by: thedebian <thedebian@users.noreply.github.com> Co-authored-by: John Caruso <johncaruso@gmail.com> * Videomaker Onboarding: Add theme selection step (#68721) * New styles and nearly there with functionality. Need to rebase to test fully. * Set the site_vertical_name option so the theme choice gets set properly. * Clear the selected design when finishing or starting over the flow. * Added responsive styles for small screen. * Add min height for large screens, fixes continue button from jumping. * User better import paths. * Changes to design based on feedback. * Add transitions to the VideoPress flow (#68913) * Fix launchpad to use actionDispatch and not immediately redirect * Adding changes from #68787 due to merge conflict mess. * Code style fixes. * Handling currentUser in case of null. * Disabling typescript "any" warnings. * More eslint "any" disables for code not changed in this PR. * Style lint fixes. * Add skip action to "already own a domain" * VideoPress Onboarding intro: Display first video frame while video is loading (#69078) * Fixed issue where site options were not being set which caused the launchpad video upload step to stop working. * Unintentionally removed an import line. * Addressing design feedback for intro page. * Style adjustments * Style adjustments for theme picker * Revert powered by videopress absolute position * Header margin adjustments * Customize processing step page * Launchpad, use computer as default preview device if window width >= 1430 px * Launchpad, yellowize the thing * Powered by VideoPress always at bottom. This solution is flexbox based, the main ingredient being that .step-container is a flexbox (column) and that content flex-grows to fill all the space. * Goto /start/videopress-account/user for account creation. We render the old signup page on that url.. * Show the progress bar on the VideoPress user account view. * VideoPress Launchpad: enable preview interactions. Only when VideoPress is the flow, we allow interactions in the launchpad preview. Useful if users want to play the homepage videos. * Fixed stacked theme buttons when screen was medium to large size. * Substract 10px to 100vh to compute the stepper min height * Video Onboarding: Add video upload celebration modal 🎉 (#69394) * Initial kind-of-working redirect after saving site with videopress intent. * Adding check that redirect has occurred. Disabled for atomic sites. * Removing deleted store item. * Deleting stylesheet, unused. * Remove style import, set redirect to wp.com host. * Adding a hopefully helpful comment about the comonents goal. * Changed from using a redirect to showing a celebration modal. * Use window location to get the site slug * Fix component naming and removed unrelated commits. * Linting fixes... not sure why as did not touch this code. * Fix errors introduced from upstream. * Update packages/data-stores/src/onboard/actions.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Removing unused i18n import. * Adding config for VideoPress flow. Enabled for dev, horizon, staging and wpcalypso. * Fixing styles for `is-primary` button. * Update client/landing/stepper/declarative-flow/internals/videopress.scss Co-authored-by: Mikey Arce <mikeyarce@gmail.com> * Style lint fix. * Add type cast to help with tests. * Fix redirect urls to use new path structure instead of using the `flow` parameter. * Style the new email activation banner to fit with the VideoPress onboarding theme. Co-authored-by: Pierre <thedebian@users.noreply.github.com> Co-authored-by: Dan Roundhill <dan@automattic.com> Co-authored-by: Eduardo Villuendas <eduardo.villuendas@automattic.com> Co-authored-by: John Caruso <johncaruso@gmail.com> Co-authored-by: Mikey Arce <mikeyarce@gmail.com>
* Create VideoPress Onboarding v2 stepper structure. (#67454) * VideoPress site options step (WIP) (#67501) * VideoPress site options step (WIP) * Submit options step * VideoPress Onboarding v2: Account Step (#67552) * VideoPress Onboarding v2: Create account. * Adjust the flow steps slightly and remove nonexistent ones. * Videopress onboarding v2: domain selection (#67596) * Submit options step * VideoPress onboarding, domain selection step * Choose a domain styling * Add video, studio, productions, com as suggested tlds * Videopress onboarding: plan selection (#67643) * Submit options step * VideoPress onboarding, domain selection step * Choose a domain styling * Add video, studio, productions, com as suggested tlds * VideoPress site options step (WIP) * Submit options step * VideoPress onboarding: select a plan (WIP) * Update how we store site title, description and domain by using onboarding store * VideoPress onboarding: choose a plan step * Add translation for choose a domain step * Rebase * Videopress onboarding v2 global style (#67736) * VideoPress onboarding theme * VideoPress powered logo * Update flow progress and fix svg properties in videopress logo * VideoPress Onboarding v2: Site options refined (#67790) * Update flow progress and fix svg properties in videopress logo * Site options refined * Populate existing site title and description in site options onboarding * VideoPress onboarding v2 : choose a domain step refined (#67857) * VideoPress onboarding theme * VideoPress powered logo * Update flow progress and fix svg properties in videopress logo * Site options refined * Populate existing site title and description in site options onboarding * Allow passing the products list down to the domain search results * Choose a domain styling WIP * Choose a domain asides and styling * Domain styling * Domain step, style placeholders * Add classname to body so we can target VideoPress stepper specifically (#67894) * Actually create a site on VideoPress Onboarding flow v2. (#67912) * VideoPress Onboarding V2: Intro View (#67613) * Adding intro view styles for new VideoPress flow. Refactors "Jetpack powered" to be more inclusive of different "powered by" products so that we can show the V ideoPress logo there instead of Jetpack. * New VP logo, aligned vertically * More updates to new design iteration. * Seeing if playsinline helps with mobile safari autoplay. * Fix merge conflict for showing jetpack powered badge. * No longer need z-index hack! * Adjustments to the triangles * Restore previous CSS classname. * Restoring code, unintentional change. * Move color styles out of body so they aren`t applied globally. * Fixing CSS after bad merge. * remove top margin to fix centering. Co-authored-by: Eduardo Villuendas <eduardo.villuendas@automattic.com> * Videopress onboarding v2 : plan selection refined (#67916) * VideoPress Onboarding V2: plan selection refined * Mobile layout for choose a plan * VP Onboarding: clear onboarding site options on flow start and flow completion (#68162) * clear onboarding site options on flow start and flow completion * clear domain as well when starting or completing videopress flow * Update/videopress onboarding v2 site creation (#68196) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart Co-authored-by: Panos Kountanis <panosktn@gmail.com> * VideoPress onboarding v2 : steps validation (#68280) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart * Steps proxy on useStepNavigation * Upate validation rules Co-authored-by: Panos Kountanis <panosktn@gmail.com> * VideoPress onboarding v2 : buttons feedback (#68336) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * One more step: got it to the checkout page. * Cleanup * Cleanup * Less parameters = more fun * Add domain to cart * Steps proxy on useStepNavigation * Upate validation rules * Disable form button if site title is not set * Add button feedback for plan selection * Update style.scss Co-authored-by: Panos Kountanis <panosktn@gmail.com> * Update/videopress onboarding v2 processing step (#68349) * Mobile layout for choose a plan * Trying to do stuff with things, but it's not working, WIP * Cleanup * VP Onboarding: clear onboarding site options on flow start and flow completion (#68162) * clear onboarding site options on flow start and flow completion * clear domain as well when starting or completing videopress flow * Upate validation rules * Disable form button if site title is not set * VideoPress processing step WIP * Processing step Co-authored-by: John Caruso <johncaruso@gmail.com> * Use plan product for checkout URL instead of periodAgnosticSlug (#68438) * Adding new launchpad flow for VideoPress! (#67692) * Adding new launchpad flow for VideoPress! * Updating to i2 of design. * Moving styles to videopress.scss so all styles live in one place and can use the same color vars. * Set text-overflow: ellipsis for long domains. * Correcting `completing-purchase` path to use camel case. * Adding new launchpad flow for VideoPress! * Updating to i2 of design. * Moving styles to videopress.scss so all styles live in one place and can use the same color vars. * Set text-overflow: ellipsis for long domains. * Fix redirect URI from checkout page * Add plan to cart in order to add extra data for videomaker activation * Fixing launchpad settings for VideoPress flow. * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/task-helper.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/task-helper.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Update client/landing/stepper/declarative-flow/internals/steps-repository/launchpad/translations.tsx Co-authored-by: John Caruso <johncaruso@gmail.com> Co-authored-by: thedebian <thedebian@users.noreply.github.com> Co-authored-by: John Caruso <johncaruso@gmail.com> * Videomaker Onboarding: Add theme selection step (#68721) * New styles and nearly there with functionality. Need to rebase to test fully. * Set the site_vertical_name option so the theme choice gets set properly. * Clear the selected design when finishing or starting over the flow. * Added responsive styles for small screen. * Add min height for large screens, fixes continue button from jumping. * User better import paths. * Changes to design based on feedback. * Add transitions to the VideoPress flow (#68913) * Fix launchpad to use actionDispatch and not immediately redirect * Adding changes from #68787 due to merge conflict mess. * Code style fixes. * Handling currentUser in case of null. * Disabling typescript "any" warnings. * More eslint "any" disables for code not changed in this PR. * Style lint fixes. * Add skip action to "already own a domain" * VideoPress Onboarding intro: Display first video frame while video is loading (#69078) * Fixed issue where site options were not being set which caused the launchpad video upload step to stop working. * Unintentionally removed an import line. * Addressing design feedback for intro page. * Style adjustments * Style adjustments for theme picker * Revert powered by videopress absolute position * Header margin adjustments * Customize processing step page * Launchpad, use computer as default preview device if window width >= 1430 px * Launchpad, yellowize the thing * Powered by VideoPress always at bottom. This solution is flexbox based, the main ingredient being that .step-container is a flexbox (column) and that content flex-grows to fill all the space. * Goto /start/videopress-account/user for account creation. We render the old signup page on that url.. * Show the progress bar on the VideoPress user account view. * VideoPress Launchpad: enable preview interactions. Only when VideoPress is the flow, we allow interactions in the launchpad preview. Useful if users want to play the homepage videos. * Fixed stacked theme buttons when screen was medium to large size. * Substract 10px to 100vh to compute the stepper min height * Video Onboarding: Add video upload celebration modal 🎉 (#69394) * Initial kind-of-working redirect after saving site with videopress intent. * Adding check that redirect has occurred. Disabled for atomic sites. * Removing deleted store item. * Deleting stylesheet, unused. * Remove style import, set redirect to wp.com host. * Adding a hopefully helpful comment about the comonents goal. * Changed from using a redirect to showing a celebration modal. * Use window location to get the site slug * Fix component naming and removed unrelated commits. * Linting fixes... not sure why as did not touch this code. * Fix errors introduced from upstream. * Update packages/data-stores/src/onboard/actions.ts Co-authored-by: John Caruso <johncaruso@gmail.com> * Removing unused i18n import. * Adding config for VideoPress flow. Enabled for dev, horizon, staging and wpcalypso. * Fixing styles for `is-primary` button. * Update client/landing/stepper/declarative-flow/internals/videopress.scss Co-authored-by: Mikey Arce <mikeyarce@gmail.com> * Style lint fix. * Add type cast to help with tests. * Fix redirect urls to use new path structure instead of using the `flow` parameter. * Style the new email activation banner to fit with the VideoPress onboarding theme. Co-authored-by: Pierre <thedebian@users.noreply.github.com> Co-authored-by: Dan Roundhill <dan@automattic.com> Co-authored-by: Eduardo Villuendas <eduardo.villuendas@automattic.com> Co-authored-by: John Caruso <johncaruso@gmail.com> Co-authored-by: Mikey Arce <mikeyarce@gmail.com>
Proposed Changes
This PR creates a new site at the end of the VideoPress onboarding flow and adds the selected domain to the cart.
Testing Instructions
http://calypso.localhost:3000/setup/intro?flow=videopress
Fixes Automattic/greenhouse#1337