You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Media & Text - Media picker buttons are not functional #1313
So I've finished reviewing the task, I saw the image functionality is already implemented but not fully, here's a summary of the main issue:
1st interaction
Adding image from WordPress media library
Base implementation is there but some are missing:
Image upload progress / with place holder
Edit button in toolbar
2nd interaction
Uploading image from device library
Base implementation is there but some are missing
Image upload progress / with place holder
Edit button in toolbar
Uploading image by capturing
Base implementation is there but some are missing
Image upload progress / with place holder
Edit button in toolbar
3rd iteration
Adding video from WordPress media library
Not implemented yet
Uploading video from device library
Not implemented yet
Uploading video by capturing
Not implemented yet
After reviewing it I’d like to double check a few things:
Do we want to add the Media Upload progress and the edit button in the toolbar to keep it consistent as the Video / Image blocks?
For those, I’d reuse the MediaUploadProgress component but it's within the image block (the video block uses it as well) so I think it’d be best to extract it out of the image block since it would be used from different components (Image, Video, and MediaText). Any thoughts on this?
To add the video functionality we can as well reuse part of the code of the Video block but it’d also affect if we want to have the upload progress as well and if we extract the previously mentioned component (Media Upload Progress) or not.
hi @geriux 👋 Thanks for the analysis! I'll share my opinions here but defer the conclusion to @koke
Do we want to add the Media Upload progress and the edit button in the toolbar to keep it consistent as the Video / Image blocks?
I think so yes.
For those, I’d reuse the MediaUploadProgress component but it's within the image block (the video block uses it as well) so I think it’d be best to extract it out of the image block since it would be used from different components (Image, Video, and MediaText). Any thoughts on this?
Sounds good to me 👍
I expect media area behave same with image/video blocks. Maybe we can go even one step further and use InnerBlocks to embed image/video blocks directly in Media & Text but I don't know what kind of technical problems we'd be facing along the way tbh.
Thank you both! I'll investigate about the InnerBlocks approach. I second that it's best to have the same functionality for all. Having duplicated logic may end up in some components staying behind over time. But I know sometimes it's just needed to duplicate.
Hey @koke@pinarol After reviewing the InnerBlocks structure I think we should continue as we have it now but adding the missing functionality and extracting the MediaUploadProgress. If you both agree I can go ahead and start working on it =)
Activity
pinarol commentedon Aug 28, 2019
This work is dependent on this PR which is very close to merge WordPress/gutenberg#16305
But feel free to also checkout the PR branch to start working
geriux commentedon Sep 1, 2019
Hey @pinarol !
So I've finished reviewing the task, I saw the image functionality is already implemented but not fully, here's a summary of the main issue:
1st interaction
Adding image from WordPress media library
Base implementation is there but some are missing:
2nd interaction
Uploading image from device library
Base implementation is there but some are missing
Uploading image by capturing
Base implementation is there but some are missing
3rd iteration
Adding video from WordPress media library
Not implemented yet
Uploading video from device library
Not implemented yet
Uploading video by capturing
Not implemented yet
After reviewing it I’d like to double check a few things:
Do we want to add the Media Upload progress and the edit button in the toolbar to keep it consistent as the Video / Image blocks?
For those, I’d reuse the MediaUploadProgress component but it's within the image block (the video block uses it as well) so I think it’d be best to extract it out of the image block since it would be used from different components (Image, Video, and MediaText). Any thoughts on this?
To add the video functionality we can as well reuse part of the code of the Video block but it’d also affect if we want to have the upload progress as well and if we extract the previously mentioned component (Media Upload Progress) or not.
Let me know when you can, thanks!
pinarol commentedon Sep 2, 2019
hi @geriux 👋 Thanks for the analysis! I'll share my opinions here but defer the conclusion to @koke
I think so yes.
Sounds good to me 👍
I expect media area behave same with image/video blocks. Maybe we can go even one step further and use InnerBlocks to embed image/video blocks directly in Media & Text but I don't know what kind of technical problems we'd be facing along the way tbh.
koke commentedon Sep 2, 2019
I agree that, as a general rule, it should behave as closely as possible to the image and video blocks.
It makes a lot of sense to extract
MediaUploadProgressas a standalone component.geriux commentedon Sep 2, 2019
Thank you both! I'll investigate about the
InnerBlocksapproach. I second that it's best to have the same functionality for all. Having duplicated logic may end up in some components staying behind over time. But I know sometimes it's just needed to duplicate.I'll let you know once I review that =)
geriux commentedon Sep 3, 2019
Hey @koke @pinarol After reviewing the
InnerBlocksstructure I think we should continue as we have it now but adding the missing functionality and extracting theMediaUploadProgress. If you both agree I can go ahead and start working on it =)Thanks!
pinarol commentedon Sep 3, 2019
Looks good to me 👍