-
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
A4A: add forms for new signup flow #99186
A4A: add forms for new signup flow #99186
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~4424 bytes added 📈 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
Thanks for working on this!
I have left some comments. Please let me know your thoughts!
...c-for-agencies/sections/signup/signup-v2/components/multi-step-form/blueprint-form/index.tsx
Outdated
Show resolved
Hide resolved
<FormRadio | ||
label={ translate( 'Access to cutting-edge technology' ) } | ||
checked={ formData.topGoal === 'cutting_edge_tech' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'cutting_edge_tech' } ) } | ||
/> | ||
<FormRadio | ||
label={ translate( 'Comprehensive support and troubleshooting' ) } | ||
checked={ formData.topGoal === 'comprehensive_support' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'comprehensive_support' } ) } | ||
/> | ||
<FormRadio | ||
label={ translate( 'Lead generation and new business opportunities' ) } | ||
checked={ formData.topGoal === 'lead_generation' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'lead_generation' } ) } | ||
/> | ||
<FormRadio | ||
label={ translate( 'Training and education for your team' ) } | ||
checked={ formData.topGoal === 'training_education' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'training_education' } ) } | ||
/> | ||
<FormRadio | ||
label={ translate( 'Exclusive discounts or revenue-sharing options' ) } | ||
checked={ formData.topGoal === 'exclusive_discounts' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'exclusive_discounts' } ) } | ||
/> |
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.
[Non-blocker] Maybe we could thinking of creating an array with all the radio fields and map through it and render instead of repeating it.
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.
Sure, think it's great idea. This is just a quickly bootstrapped version so I could start testing out the backend endpoints. I think we could address these in specific tasks for each page
<FormRadio | ||
label={ translate( 'Access to cutting-edge technology' ) } | ||
checked={ formData.topGoal === 'cutting_edge_tech' } | ||
onChange={ () => setFormData( { ...formData, topGoal: 'cutting_edge_tech' } ) } | ||
/> |
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.
Can we add htmlFor
and id
to all the fields to make the text clickable to check/uncheck the radio.
<FormRadio | |
label={ translate( 'Access to cutting-edge technology' ) } | |
checked={ formData.topGoal === 'cutting_edge_tech' } | |
onChange={ () => setFormData( { ...formData, topGoal: 'cutting_edge_tech' } ) } | |
/> | |
<FormRadio | |
htmlFor="cutting_edge_tech" | |
id="cutting_edge_tech" | |
label={ translate( 'Access to cutting-edge technology' ) } | |
checked={ formData.topGoal === 'cutting_edge_tech' } | |
onChange={ () => setFormData( { ...formData, topGoal: 'cutting_edge_tech' } ) } | |
/> |
...-for-agencies/sections/signup/signup-v2/components/multi-step-form/blueprint-form/style.scss
Outdated
Show resolved
Hide resolved
...for-agencies/sections/signup/signup-v2/components/multi-step-form/choice-blueprint/index.tsx
Outdated
Show resolved
Hide resolved
case 5: | ||
return <FinishSignupSurvey onContinue={ () => setCurrentStep( 6 ) } />; | ||
case 6: | ||
return <h1>Thank you!</h1>; |
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.
Should we translate this?
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.
It's a placeholder for now. We will check if we would need this page or not.
...-for-agencies/sections/signup/signup-v2/components/multi-step-form/personalization/index.tsx
Outdated
Show resolved
Hide resolved
...for-agencies/sections/signup/signup-v2/components/multi-step-form/personalization/style.scss
Outdated
Show resolved
Hide resolved
...for-agencies/sections/signup/signup-v2/components/multi-step-form/personalization/style.scss
Outdated
Show resolved
Hide resolved
font-size: rem(14px); | ||
font-weight: 600; |
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.
Can we use A4A Typography.
For scroll behavior we should probably move the scrollbar at the edge. cc @madebynoam for input |
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
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.
@andrii-lysenko: It looks like you left a comment on a different PR.
I'm okay with addressing the comments in a different PR as long as we keep track of it. They are very easy to miss, as they are in 2 different PRs.
I would suggest we address the comments related to styles in this PR. But, I'll leave that to you!
I'm approving the PR now, as these changes are not live yet.
I think we should also add a feature flag for this as the page is live in production.
@yashwin yes, sorry for confusion. So I did some updates:
The main goal of this PR was to have a quick prototype ready to be able to test backend flows earlier and address all the problems and styles separately, which come out not that ideal. cc @jkguidaven |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17231082 Some locales (Brazilian Portuguese, Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @andrii-lysenko for including a screenshot in the description! This is really helpful for our translators. |
Resolves https://github.com/Automattic/automattic-for-agencies-dev/issues/1728
Proposed Changes
Adds pages to new signup flow
Screen.Recording.2025-01-31.at.8.53.14.PM.mov
Screenshots for translations:
Why are these changes being made?
Testing Instructions
/signup/wc-asia
and check behaviorPre-merge Checklist