Wp-calypso: Image Block Does Not Appear Under Search Term "Image" When Adding a New Block

Created on 22 Aug 2020  路  7Comments  路  Source: Automattic/wp-calypso

Steps to reproduce

  1. Create a new page
  2. Click the + to add a block
  3. Search for Image
  4. The Image Block does not appear. Instead, it gives options for Gif, Image Compare, Latest Instagram Posts, Slideshow, Tiled Gallery, Story.
  5. Search for Media
  6. Image is the 5th option, Gallery the 6th.

What I expected

The Image Block to show up when you search for Image.

What happened instead

The Image Block doesn't appear when you search for "Image."

Browser / OS version

All

Screenshot / Video

image

Context / Source

flowsharing #painpoint

Involves Happiness [Goal] Gutenberg [Pri] Low [Status] Blocked / Hold [Type] Bug

Most helpful comment

This should be addressed in Gutenberg 9 by https://github.com/WordPress/gutenberg/pull/25105.

That change addresses these two issues which result in the behavior described here:

All 7 comments

Just want to majorly +1 this. I'm seeing customers add the tiled gallery when all they wanted was one image.

Same comment as above - I find it frustrating when I type /image and press enter only to create a GIF block :)

I ran into this today as well when searching for Video.

I ran into this today as well when searching for Video.

Filed: https://github.com/Automattic/wp-calypso/issues/45140

This is the expected behavior for Gutenberg at this time. Any proposals and changes should happen in the Gutenberg project.

Searches are sorted based on _frecency_. Depending on usage, you may get different results. I tested this and get these results:

Image

Screen Shot 2020-08-24 at 11 23 08

Video

Screen Shot 2020-08-24 at 11 23 19

These are exactly the results I'd expect.

This is very much dependent on a user's behavior and the inserter is behaving as expected. I do agree that the results could be better when the search term is very close to the name of a specific block. For example, blocks could be weighted by edit distance. It's a conversation that needs to happen in the core Gutenberg project.

*Note: In your screenshot there's an additional block _Story (beta)_ that's not available in production.

[鈥 I find it frustrating when I type /image and press enter only to create a GIF block :)

@rfaile313 That's another issue, the Slash Inserter is different from the Quick Inserter mentioned in the description. Again, this is a conversation that needs to happen in the Gutenberg project. I find it odd that it doesn't use the same sorting as the quick inserter. The slash inserter would likely benefit from the same sort of weighting I mentioned above.

I folks would like to raise these feature requests in Gutenberg, they're welcome to, please link here. If not, @Automattic/good-mountain will create issues for the quick inserter and slash inserter in the next couple of days.

This should be addressed in Gutenberg 9 by https://github.com/WordPress/gutenberg/pull/25105.

That change addresses these two issues which result in the behavior described here:

The problem does seem to be fixed. I cleared the localstorage data for my simple test site (unsandboxed, running GB 9), and both "Image" and "Video" appears as the first item in the first row in the quick inserter (main editor or layout column).

Was this page helpful?
0 / 5 - 0 ratings