Skip to content

Allow for a user-triggered search in Block Directory #23894

@bph

Description

@bph

When I was looking for a 'card' block, there wasn't one available on my site and it triggered automatically the Block Directory search. Once the Card block was installed and used on my site, it was always showing up for the 'card' search. But I found this card now a bit limiting and I would want to see what else is in the block directory and find another one, that I previously saw in the list offered.

For now, a user would need to experiment with the keywords to actually trigger another Block Directory search and that would be quite cumbersome. Sooner or later the automatic triggers won't cover all use cases.

I did explored some possible placements for the "Search in Block Directory" link/button

001 Link next to the search box

SearchinBlockDirectory-001

It would be a good place for discovery. It just feels a bit crowded.

002 bottom of the search results

SearchinBlockDirectory-002

That's possible. Still has some issues. Mainly it's too disconnected from the search.

Also, a link would indicate it'll take a user away and out of the block editor to a different site, and a user might be hesitant to use it for that reason.

003 a button on bottom

SearchinBlockDirectory-003

This placement feels do able and reminded me on the "Browse all" button new to the canvas inserter

004 button area on bottom

SearchinBlockDirectory-004

It feels like it was always there, haha... if you like the idea of a user-triggered Block Directory search.

###5 a black button on the bottom
SearchinBlockDirectory-005
That last one is just a variation on the background color to be consistent with the "Browse all" button on the other inserter.

###6 Blue button underneath search box
SearchinBlockDirectory-006
I had second thoughts about the placement on the bottom of the search result, as people might not find it. They might not scroll all the way through the list of results. It looks a bit heavy underneath the search box, but people won't miss it there.... haha.

Those are just a few possibilities. I like number 006 if we can make it work, and number 005 if we have to go on the bottom. But honestly none of them feel right yet. Maybe I just need to give it time? What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DevReady for, and needs developer efforts[Feature] Block DirectoryRelated to the Block Directory, a repository of block plugins[Feature] InserterThe main way to insert blocks using the + button in the editing interface

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions