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

Blocks: Video vs VideoPress blocks #11480

Closed
kraftbj opened this issue Mar 5, 2019 · 3 comments · Fixed by #21740
Closed

Blocks: Video vs VideoPress blocks #11480

kraftbj opened this issue Mar 5, 2019 · 3 comments · Fixed by #21740
Assignees
Labels
[Feature] VideoPress A feature to help you upload and insert videos on your site. [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@kraftbj
Copy link
Contributor

kraftbj commented Mar 5, 2019

Within WordPress Core, since it supports VideoPress oembeds out of the box, it generates a VideoPress block.

Our own work to better support Jetpack Videos/VideoPress is by amending the Core video block.

This may be confusing to customers, so should/could we suppress the VideoPress block in some way?

Steps to reproduce the issue

  1. Go to Block Editor with a Jetpack site with video hosting enabled.
  2. Click the UI to add a new block.
  3. See both a Video and VideoPress block.

What I expected

No confusion on what block to use.

What happened instead

It can be confusing.

When pasting a VideoPress link, auto-converting to a VideoPress block is fine, but could we just remove it as an option in the new block UI?

cc: @mmtr

@kraftbj kraftbj added [Type] Bug When a feature is broken and / or not performing as intended [Feature] VideoPress A feature to help you upload and insert videos on your site. [Pri] Normal labels Mar 5, 2019
@jeherve jeherve added the [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack label Mar 5, 2019
@mmtr
Copy link
Member

mmtr commented Mar 7, 2019

Thanks for opening this issue @kraftbj! I agree this can confuse users.

I also agree that preventing to add VideoPress blocks from the block inserter looks like a good way to avoid the confusion.

@simison
Copy link
Member

simison commented Apr 24, 2019

@rickybanister brought this up in Slack convo. (p1556116967006400-slack-jetpack-gutenberg)

Note that APIs for "soft disabling" blocks are now much better in Gutenberg with the release of "Block manager". It's possible to hide the VideoPress embed block from block picker without breaking previously added VideoPress embeds in old content (i.e. hide in block picker as opposite to disable it entirely).

Some code snipped examples:
WordPress/gutenberg#14139 (comment)

https://wordpress.org/gutenberg/handbook/designers-developers/developers/data/data-core-edit-post/#hideblocktypes

Also WordPress/gutenberg#12931

@simison simison removed the [Type] Bug When a feature is broken and / or not performing as intended label May 29, 2019
@simison
Copy link
Member

simison commented May 29, 2019

I'll remove "bug" label since this is more confusing UI than it is a "bug". :-)

@jeherve jeherve added the [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it label May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] VideoPress A feature to help you upload and insert videos on your site. [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants