Skip to content
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

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

Merged
merged 1 commit into from
May 22, 2018

Conversation

youknowriad
Copy link
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
@gziolo gziolo requested a review from karmatosed May 21, 2018 11:30
Copy link
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 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
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