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

Adds better descriptions for all blocks #6624

Merged
merged 2 commits into from
May 8, 2018

Conversation

karmatosed
Copy link
Member

Props @michelleweber. Fixes #6623

@jasmussen
Copy link
Contributor

❤️🤘

@@ -15,7 +15,7 @@ export const name = 'core/freeform';
export const settings = {
title: __( 'Classic' ),

description: __( 'The classic editor, in block form.' ),
description: __( 'It\'s the classic WordPress editor and a it\'s block! Drop the editor right in.' ),
Copy link
Member

Choose a reason for hiding this comment

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

Maybe and it\'s a block!?

@@ -15,7 +15,7 @@ export const name = 'core/latest-posts';
export const settings = {
title: __( 'Latest Posts' ),

description: __( 'Shows a list of your site\'s most recent posts.' ),
description: __( 'Display a list your most recent posts.' ),
Copy link
Member

Choose a reason for hiding this comment

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

Why remove of?

Choose a reason for hiding this comment

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

Typo. The of stays :)

@@ -63,7 +63,7 @@ export const name = 'core/cover-image';
export const settings = {
title: __( 'Cover Image' ),

description: __( 'Cover Image is a bold image block with an optional title.' ),
description: __( 'Add a full-width image, and layer text over it -- great for headers' ),

Choose a reason for hiding this comment

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

The rest of the items have a full stop. Should this as well?

@@ -27,7 +27,7 @@ export const name = 'core/text-columns';
export const settings = {
title: __( 'Text Columns' ),

description: __( 'Add text across columns. This block is experimental' ),
description: __( 'Add text, and display it in two or more columns. Like a newspaper! This block is experimental' ),

Choose a reason for hiding this comment

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

This one is also missing a full stop.

Fixes review issues found.
@karmatosed
Copy link
Member Author

I added in the changes suggested. To that point going to merge this so we get it in and can do iterations if need. Thanks everyone and particular thanks to @michelleweber for helping us get better copy into Gutenberg ❤️

@karmatosed karmatosed merged commit 9d4fd10 into master May 8, 2018
@leahkoerper
Copy link
Contributor

This is great! Thanks @michelleweber.

I would love to have a section about Block descriptions in the Handbook reference section so that plugin teams could follow your lead. Format specifics (like a full stop at the end) are good but notes on tone/voice would be handy for maintaining consistency between blocks.

@michelleweber
Copy link

I can definitely try to put together some guidelines for descriptions, UI instruction, and error messaging! I'll compile some notes next week, when I get back from the team meetup I'm on.

@mtias mtias deleted the try/improved-block-descriptions branch May 17, 2018 16:42
@mtias mtias added this to the 2.9 milestone May 17, 2018
@@ -14,7 +14,7 @@ export const name = 'core/code';
export const settings = {
title: __( 'Code' ),

description: __( 'The code block maintains spaces and tabs, great for showing code snippets.' ),
description: __( 'Add text that respects your spacing and tabs -- perfect for displaying code.' ),
Copy link
Member

Choose a reason for hiding this comment

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

Add text that respects your spacing and tabs -- perfect for displaying code.

Instead of a faux-em dash, should we use a real em dash ?

Or am I mistaken in my understanding of -- being more of a convenience since keyboards don't have intended character readily available?

A few other instances of this in the same pull request.

Copy link
Contributor

Choose a reason for hiding this comment

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

I fixed one of them in #7196, it would be nice to catch them all.

@@ -30,7 +30,7 @@ const HOSTS_NO_PREVIEWS = [ 'facebook.com' ];

function getEmbedBlockSettings( { title, description, icon, category = 'embed', transforms, keywords = [] } ) {
// translators: %s: Name of service (e.g. VideoPress, YouTube)
const blockDescription = description || sprintf( __( 'Paste URLs from %s to embed the content in this block' ), title );
const blockDescription = description || sprintf( __( 'Add a block that displays content pulled from other sites, like Twitter, Instagram or YouTube.' ), title );
Copy link
Member

@aduth aduth Feb 7, 2019

Choose a reason for hiding this comment

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

As of this change, there's no placeholder content in the string, but we still use placeholder substitution (sprintf) and include a translator comment describing the placeholder on the preceding line.

Both of these should have been removed.

Edit: Fix at #13756

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants