-
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
Site Settings: Add more settings Composing card for Jetpack sites #11231
Conversation
<JetpackModuleToggle | ||
siteId={ selectedSiteId } | ||
moduleSlug="after-the-deadline" | ||
label={ translate( 'Check your spelling, style, and grammar.' ) } |
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.
Hi! I've found a possible matching string that has already been translated 23 times:
translate( 'Spelling and Grammar' )
ES Score: 8.15
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
{ translate( 'English Options' ) } | ||
</FormLegend> | ||
<FormSettingExplanation> | ||
{ translate( 'Enable proofreading for the following grammar and style rules:' ) } |
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.
Hi! I've found a possible matching string that has already been translated 40 times:
translate( 'Enable proofreading for the following grammar and style rules when writing posts and pages:' )
ES Score: 15.58
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
{ translate( 'Automatic Language Detection' ) } | ||
</FormLegend> | ||
<FormSettingExplanation> | ||
{ translate( 'The proofreader supports English, French, German, Portuguese and Spanish.' ) } |
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.
Hi! I've found a possible matching string that has already been translated 19 times:
translate( 'The proofreader supports English, French, German, Portuguese, and Spanish. Your <a href="options-general.php">blog language</a> setting is the default proofreading language.' )
ES Score: 11.37
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
|
||
{ | ||
this.renderToggle( 'onupdate', ! afterTheDeadlineModuleActive, translate( | ||
'A post or page is updated' |
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.
Hi! I've found a possible matching string that has already been translated 47 times:
translate( 'a post or page is updated' )
ES Score: 12.39
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
|
||
{ | ||
this.renderToggle( 'onpublish', ! afterTheDeadlineModuleActive, translate( | ||
'A post or page is first published' |
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.
Hi! I've found a possible matching string that has already been translated 45 times:
translate( 'a post or page is first published' )
ES Score: 13.52
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
This looks good. I imagine the other PR to standardize the right-margin of toggles will take care of the misalignment here. The only other thing I noticed was the lack of initial capitals on the first two proofreading settings: All our other labels have an initial capital letter, we should standardize. |
To follow up, if we don't like that those two labels start with
|
a610118
to
50e1091
Compare
Yes - I'll make sure to do any necessary updates/cleanups here once that PR lands.
Even better! I've updated the labels to the one you suggested. @rickybanister do you feel there's anything else we should improve, design-wise? Also cc @MichaelArestad for a second opinion. |
|
||
{ | ||
this.renderToggle( 'onupdate', ! afterTheDeadlineModuleActive, translate( | ||
'Posts or pages are updated' |
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.
Hi! I've found a possible matching string that has already been translated 47 times:
translate( 'a post or page is updated' )
ES Score: 7.10
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
|
||
{ | ||
this.renderToggle( 'onpublish', ! afterTheDeadlineModuleActive, translate( | ||
'Posts or pages are first published' |
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.
Hi! I've found a possible matching string that has already been translated 45 times:
translate( 'a post or page is first published' )
ES Score: 9.01
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
@tyxla We should hide the majority of those settings in an "Advanced options" section like we are doing in the |
@MichaelArestad of course! Thanks for pointing that out. It's now implemented in 202a41a, I've also updated the previews in the PR description. Feel free to have another 👁 . |
@@ -0,0 +1,7 @@ | |||
.composing__module-settings.is-indented { | |||
margin: 16px 32px 0; |
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 drop this in favor of the solution offered here: #11240
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.
Yes, thanks for pointing that out. I've already added that to the description of the PR, and I'm planning to address it after it's merged.
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.
@MichaelArestad this has been implemented in 76aa007.
76aa007
to
c757244
Compare
@rickybanister minor things addressed. A small preview of the updated version: Feel free to have another look. |
<JetpackModuleToggle | ||
siteId={ selectedSiteId } | ||
moduleSlug="after-the-deadline" | ||
label={ translate( 'Check your spelling, style, and grammar' ) } |
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.
Hi! I've found a possible matching string that has already been translated 23 times:
translate( 'Spelling and Grammar' )
ES Score: 8.15
Help me improve these suggestions: react with 👎 if the suggestion doesn't make any sense, or with 👍 if it's a particularly good one (even if not implemented).
@tyxla beautiful, ship it. |
@folletto That's been brought up recently by @rickybanister as well. It's something we're definitely exploring, but this works and is good to merge for now. |
40e77be
to
cf4f59c
Compare
This PR implements After the Deadline settings for Jetpack sites in the Writing > Composing card. It also moves the current Markdown and Default Post Format settings in separate components in order to keep the main Composing card component clean. It also introduces a
setFieldValue
method towrapSettingsForm
that allows manually setting a specific field's value. The PR is part of #9171.Preview (with collapsed Advanced settings):
Preview (with expanded Advanced settings):
To test:
/settings/writing/$site
where$site
is one of your Jetpack sites./settings/writing/$site
where$site
is one of your WordPress.com sites.Styles here could benefit from #11240 - I can update the PR once it's merged.