gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Query Block: Improve force page reload modal message

Open colinduwe opened this issue 1 year ago • 3 comments

What problem does this address?

With the release of the interactivity API, extenders can now create blocks to use inside the query block. We still need to check that any block a user might put inside the query block supports interactivity or client navigation and notify the user. But now the message is getting a little confusing to typical users.

Screenshot 2024-04-04 at 1 51 30 PM

What is your proposed solution?

How can we rewrite this message so it makes at least a little sense to someone who doesn't know about block.supports.interactivity? First off, I think it would be helpful it we called out the blocks by name that are triggering this modal. Perhaps something like

"The {block.title} was detected inside the query block but that block hasn't declared that it supports avoiding full page reloads. If you still want to prevent full page reloads, remove that {block.title}, then disable "Force page reload" again in the Query Block settings."

colinduwe avatar Apr 04 '24 21:04 colinduwe

Pinging a couple of contributors who I see have worked on this - @DAreRodz @luisherranz

talldan avatar Apr 05 '24 03:04 talldan

This is related to https://github.com/WordPress/gutenberg/pull/60006

colinduwe avatar Apr 05 '24 16:04 colinduwe

Adding the copy tag to see if we can get some editorial thoughts :)

annezazu avatar May 01 '24 16:05 annezazu