-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inserter: Adds CTA and external link to block inserter flow #41112
Inserter: Adds CTA and external link to block inserter flow #41112
Conversation
Co-authored-by: Ryan Welcher <[email protected]>
I luv' this! Thank you @mburridge and @ryanwelcher for tackling this! |
I wished we could also have a record of the search items, so we can see what people find missing. but that might be a tad too intrusive.... |
@DaisyOlsen that's correct, the message will display for all users. We did consider whether to restrict it to roles that can install plugins, but wanted to create an MVP in order to initiate discussions such as this. Why do you think it shouldn't display to all users? Even users who don't have permission to install plugins could see the message and then suggest to their admins the possibility to create a block that does what they want. They may even have the development skills to create a block, but not the right to install plugins. Those not interested could just note the 'No results found' message and ignore the rest. If there's a case for not displaying the message to user roles that don't have admin rights then it's certainly something we could implement. We already experimented a little with this, but then went for the MVP option for this PR. |
Might be good to get some design input. If you drop it into #design in Make Slack or add a design feedback label, I bet that might cause some folks to check it out! |
Good call @annezazu, labels added. |
I like the spirit of the idea, but I think this might be a bit too prominent presented this way. |
That'd work! If it's an external link we should indicate it so. |
👍 Love this approach! |
Another consideration is that this should be easy to disable — maybe connected to the block directory checks. If block directory is disabled, we should not render the notice. Plenty of sites would not want their users to get confused by this call. |
I've wrapped the message in a |
@mtias The text is displayed by the |
With this latest commit the message now looks like this: I don't think it's possible to get it to display at the bottom of the inserter without adding CSS to higher level components that could have broader ramifications. That said, there's now a separator and stylistic differences to distinguish it as separate from the 'No results found' message above. Thanks to @ryanwelcher who helped make this better than it would otherwise have been. |
@mtias as you've provided feedback previously here, can you review the latest changes on this PR? |
What?
Following a search, if no registered blocks are found AND no matching block is found in the plugin directory, this prompts the user with the suggestion to create a block and a link to the docs.
Why?
This makes the user aware of the open source nature of WordPress and alerts them to the possibility that they can create and contribute a new block with the functionality that they desire.
How?
Adds additional textual content to
DownloadableBlocksNoResults
component inno-results.js
.Testing Instructions
Screenshots or screencast
This PR is intended to open a conversation regarding the best text to display here and regarding what links are best to point to. Please let us know what suggestions and ideas you may have to make this messaging better. Thanks.
(Thanks to @ryanwelcher for help with this)