tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
194 stars 19 forks source link

QoL - Query Loop inner blocks have no settings if Post Type has no published posts #1096

Closed diggeddy closed 10 months ago

diggeddy commented 1 year ago

Description

If a user has no Published Posts of the selected post type, the Query Loop will display No results found Which is good.

However, the inner blocks within the loop are still selectable but have no visibility on the page or any block settings:

https://github.com/tomusborne/generateblocks/assets/30641942/50f58890-04dd-4d95-b754-b2ca8e6b4888

Improve UX with a backend notice / warning eg.

The selected post type has no published posts. At least one published post is required to edit the query loop

Or add placeholders for dynamic data when this is the case.

diggeddy commented 10 months ago

Closed add to #1133