Skip to content

Try unifying all the media blocks placeholder under a unique component#6820

Merged
youknowriad merged 1 commit intomasterfrom
try/unify-media-placeholder
May 22, 2018
Merged

Try unifying all the media blocks placeholder under a unique component#6820
youknowriad merged 1 commit intomasterfrom
try/unify-media-placeholder

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

This PR adds a MediaPlaceholder component used in all the media blocks to unify their UI. #5456

This brings dropzones to audio/video blocks. At the moment the image cover-image and gallery blocks do not show the "URL" input because if we do so we need to rething the "editing" flow of these blocks. (How to you update the URL? Should we change the edit button in the toolbar to trigger the placeholder even if the media is there (like audio/video)?).

So this refactors to use the same component while keeping the same features/flow.

Testing instructions

  • Test the different flows of the media blocks (uploading, dragging, media library, editing...)

@youknowriad youknowriad added [Feature] Blocks Overall functionality of blocks [Feature] Media Anything that impacts the experience of managing media Needs Design Feedback Needs general design feedback. labels May 18, 2018
@youknowriad youknowriad self-assigned this May 18, 2018
@youknowriad youknowriad requested a review from gziolo May 18, 2018 10:07
@youknowriad youknowriad force-pushed the try/unify-media-placeholder branch from 195f0b9 to d1b5d7f Compare May 18, 2018 10:10
@gziolo gziolo requested a review from karmatosed May 21, 2018 11:30
Copy link
Copy Markdown
Member

@karmatosed karmatosed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks.

@youknowriad youknowriad force-pushed the try/unify-media-placeholder branch from d1b5d7f to cb1d09e Compare May 22, 2018 08:42
@youknowriad youknowriad merged commit 16dd8b2 into master May 22, 2018
@youknowriad youknowriad deleted the try/unify-media-placeholder branch May 22, 2018 08:52
@gziolo
Copy link
Copy Markdown
Member

gziolo commented May 22, 2018

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Blocks Overall functionality of blocks [Feature] Media Anything that impacts the experience of managing media Needs Design Feedback Needs general design feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants