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
Seller Experience: Added store name and tagline view. #60222
Conversation
<form className="sell-details__form" onSubmit={ handleSubmit }> | ||
<FormFieldset className="sell-details__form-fieldset"> | ||
<FormLabel htmlFor="siteTitle" optional> | ||
{ translate( 'Store name' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 24 times:
translate( 'Store Name' )
ES Score: 9
<FormInput name="tagline" id="tagline" value={ formValues.tagline } onChange={ onChange } /> | ||
<FormSettingExplanation> | ||
<Icon className="sell-details__form-icon" icon={ tip } size={ 20 } /> | ||
{ translate( 'In a few words, explain what your store is about.' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 49 times:
translate( 'In a few words, explain what your blog is about.' )
ES Score: 7
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~43 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. Async-loaded Components (~560 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. |
Great start! The Figma (9XooISHKU1phs4Ju2Yyy5p-fi-211%3A4142) seems to have a better balance for when the step title wraps; can you verify we're not making something worse than the existing step for blogging? Wrapping (which can happen a lot in more verbose languages) looks like it could be better; we may need a designer to give a minimum width for the input fields, or something (p1642614351036200-slack-C029SB8JT8S). |
Thanks for the ping @kwight!
💯 Let's lean towards using wrapping rather than extending the text field to minimize the spacing between two columns, or minimize the input fields. Checking the Figma file, I can see the right column is designed to be 504 px on Desktop, and the maximum width of the title text area over the left column is 441px on an Import flow. I suggest that we limit the maximum size of the left column to match that. Hope this is helpful! |
Hey @nelsonec87, the copy "First, let's give your store a name" seems like it's bold. |
Hi @saygunnyc , I've checked it and it's currently |
just to confirm, it looks like the long text wrapping issue was only related to an earlier version of this PR, the existing screens seem to handle long titles well (and it looks like this PR has been updated to handle long titles now as well) |
const headerImage = 'store-options' === stepName ? intentImageUrl : siteOptionsImage; | ||
|
||
const siteTitleLabel = | ||
'store-options' === stepName ? translate( 'Store name' ) : translate( 'Blog name' ); |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 24 times:
translate( 'Store Name' )
ES Score: 9
|
||
const taglineExplanation = | ||
'store-options' === stepName | ||
? translate( 'In a few words, explain what your store is about.' ) |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 49 times:
translate( 'In a few words, explain what your blog is about.' )
ES Score: 7
return { | ||
headerText: translate( "First, let's give your store a name" ), | ||
headerImage: intentImageUrl, | ||
siteTitleLabel: translate( 'Store name' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 24 times:
translate( 'Store Name' )
ES Score: 9
headerText: translate( "First, let's give your store a name" ), | ||
headerImage: intentImageUrl, | ||
siteTitleLabel: translate( 'Store name' ), | ||
taglineExplanation: translate( 'In a few words, explain what your store is about.' ), |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 49 times:
translate( 'In a few words, explain what your blog is about.' )
ES Score: 7
…d-store-name-view
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.
This is looking good to me! :) And verified that it is hidden as expected when the seller experience tag is disabled in development.
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7099537 Thank you @nelsonec87 for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Changes proposed in this Pull Request
seller-experience
feature flag.Testing instructions
Access
start/setup-site/intent?siteSlug=<SITE SLUG>
(which doesn't enable theseller-experience
feature flag)Things should be unchanged!
Access
start/setup-site/intent?siteSlug=<SITE SLUG>&flags=seller-experience
(which enables theseller-experience
feature flag)Click the "Start Selling" button
Check the new view
Related to #60154