Develop a sub-module to integrate with Gutenberg Cloud service.

Comments

marcofernandes created an issue. See original summary.

katrialesser’s picture

I would like to help with this submodule. I also have another developer with Dev By Design who could help a bit as well.

perandre’s picture

Awesome. We have some code that will be merged in soon. It does a few basic things:

- List blocks from Gutenberg Cloud
- Let's you enable/disable

However:

- the UI is not finished
- there is no click-to-update
- there are some cache issues

Could you dl WordPress and install https://wordpress.org/plugins/cloud-blocks/ to get a feel of how it works there, @katrialesser?

katrialesser’s picture

Yes, I can do that! And I love front-end / theming / UX so I could probably help improve the interface too. I'll start with trying out WordPress.

When you say 'click to update' do you mean that we pull down a version of the gutenberg blocks and then we need a 'click to update' for each gutenberg block to get that block's new updates?

perandre’s picture

Sounds great!

Click to update: Yes – except nothing is downloaded to the server. This just changes the unpgk URL to fetch the latest version. Having control of updates like that gives you some peace of mind when using other people's blocks; if you are happy with the current version, there is no need to update.

Let me know when you have played with the WP version.

  • ppregiel committed 5775153 on 8.x-1.x
    Issue #3020172: Gutenberg Cloud sub-module
    
    
ppregiel’s picture

Status: Active » Needs work

Hi! I'm the developer responsible for creating the Gutenberg Cloud submodule.

We're still in process of developing the final backend UI for this submodule and we expect to release the submodule within the next few days.

I've shared some code that is based on our first proof-of-concept Gutenberg Cloud submodule. It's a very simple demo but nevertheless fully functional, i.e. you can use that on your sites to install blocks from our cloud service. The final submodule is using the same configuration properties so it will be a plug-in replacement.

Feel free to ask me if you need any further insights into the not yet published parts of this submodule design and code.

ppregiel’s picture

Assigned: ppregiel » Unassigned
sayco’s picture

Status: Needs work » Needs review
StatusFileSize
new37.62 KB
new92.92 KB
new89.27 KB

Here I provide the patch which totally redesigned Gutenberg Cloud Block configuration page.
I provide also some screenshot for a better overview.

What has been done:

  • change table to a grid of block with thumbnails
  • add three types of buttons on each item - install (if block is not installed), uninstall and update (if an update is available) buttons
  • all operations are perfomed using AJAX
  • now we don’t clear all caches, but only for the library discovery - it's enough for newly installed blocks to be available
  • add option to display more details about block in modal
  • add filtering functionality - all | installed | popular
  • add search functionality

marcofernandes’s picture

Status: Needs review » Fixed

Thanks Mariusz, you've done a great job here 👏
I'm closing this one for now. Any feature request or bug report will have its own issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.