WordPress.org

Making WordPress.org

Opened 8 months ago

Last modified 6 months ago

#4963 new enhancement

Plugin Directory: Show flag or marker to indicate the plugin has been added to BLOCKS category

Reported by: Ipstenu Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

I know we're moving to a 'Block' only subsection of the directory, however I believe there will still be a need for the BlockS (with an S) category that shows plugins that contact blocks and other code.

Manually adding by request (and when we notice them) is fine, however since the blocks listing is _random_ (yeah) people can't tell if we really did add them or not, which results in confused emails.

We should have a way to show on the plugin page if the plugin is listed or not. Just a block icon or something, or even "Gutenberg Ready"

It's a low impact/high reward :)

Attachments (1)

Screen Shot 2020-01-29 at 4.56.40 pm.png (72.7 KB) - added by tellyworth 8 months ago.
How's this, as a quick starting point? The line would only appear if it's in the blocks section, and the number would show the number of blocks discovered in the code.

Download all attachments as: .zip

Change History (5)

@tellyworth
8 months ago

How's this, as a quick starting point? The line would only appear if it's in the blocks section, and the number would show the number of blocks discovered in the code.

#1 @Ipstenu
8 months ago

What happens if they're in Blocks but the block-script hasn't run? Would they show a 0?

#2 @tellyworth
8 months ago

What's the preferred behaviour? It could show 0, or "unknown", or we could not display that line at all.

#3 @dufresnesteven
6 months ago

What happens if they're in Blocks but the block-script hasn't run? Would they show a 0?

Does it have to show anything if we are waiting on it?

#4 @Ipstenu
6 months ago

yes, we do need to show something.

The line would only appear if it's in the blocks section, and the number would show the number of blocks discovered in the code.

Note that the pre-requirement is that the plugin is already flagged as having blocks (this is a category we can set on the backend). So in order to have this, we already have had a human say "Yep, at least one block!" And in order to highlight "Hey, there are blocks in this here plugin!" we want to say ... something?

Maybe Blocks "TBD" when in the category and un-counted.

  • if in-blocks, then check for count
  • if count gte 1, display block count
  • if count == 0, display nothing
  • if count does not exist (i.e. hasn't been run), display TBD
Note: See TracTickets for help on using tickets.