Skip to content

Adds better descriptions for all blocks#6624

Merged
karmatosed merged 2 commits intomasterfrom
try/improved-block-descriptions
May 8, 2018
Merged

Adds better descriptions for all blocks#6624
karmatosed merged 2 commits intomasterfrom
try/improved-block-descriptions

Conversation

@karmatosed
Copy link
Copy Markdown
Member

Props @michelleweber. Fixes #6623

@jasmussen
Copy link
Copy Markdown
Contributor

❤️🤘

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
Copy Markdown
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!?

title: __( 'Latest Posts' ),

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

Choose a reason for hiding this comment

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

Why remove of?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Typo. The of stays :)

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' ),
Copy link
Copy Markdown

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?

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' ),
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
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
Copy Markdown
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
Copy Markdown
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.

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
Copy Markdown
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