gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Split Embed inserter into categories

Open melchoyce opened this issue 9 years ago • 34 comments

Thinking:

Common

  • Embed
  • Facebook
  • Instagram
  • Soundcloud
  • Tumblr
  • Twitter
  • WordPress
  • YouTube

Audio

  • Soundcloud
  • Spotify
  • Mixcloud
  • ReverbNation
  • Speaker

Video

  • YouTube
  • Vimeo
  • Animoto
  • CollegeHumor
  • Dailymotion
  • Funny Or Die
  • Hulu
  • Screencast
  • TED
  • VideoPress
  • Vine
  • WordPress.tv

Social Media

  • Facebook
  • Instagram
  • Twitter
  • YouTube
  • Kickstarter
  • Meetup.com
  • Polldaddy
  • Reddit
  • Slideshare
  • Vine

Images

  • Flickr
  • Imgur
  • Instagram
  • Cloudup
  • Photobucket
  • SmugMug

Blogs and Documents

  • Tumblr
  • WordPress
  • Issuu
  • Scribd
  • Slideshare

There is some repetition, which I think is okay, to help folks find the embeds they want? I also may have missed some.

melchoyce avatar Aug 01 '17 15:08 melchoyce

Having multiple categories to me feels like we are adding UI complexity where there doesn't need to be any. What about going down to a single "embed" and then if there needs to be options for that specific embed type, they get inferred from the embedded content URL?

aaronjorbin avatar Aug 01 '17 15:08 aaronjorbin

@melchoyce Having the repetition increases the amount of work needed here significantly, it would require that blocks can belong to multiple categories, which isn't supported at all at the moment, and needs a lot of work on the tabbing code too. Is that something we can live without for now, or should I start that work?

notnownikki avatar Aug 01 '17 15:08 notnownikki

@aaronjorbin Discussed at length here:

https://github.com/WordPress/gutenberg/issues/1325#issuecomment-310469110

I still think single embed would be a more intuitive approach :)

nic-bertino avatar Aug 01 '17 15:08 nic-bertino

@notnownikki In that case, we can do without the repetition.

melchoyce avatar Aug 01 '17 15:08 melchoyce

Going through these... we should remember that Cloudup can embed both video and images, so the code to support repetition will need to be done at some point, if we go with this approach in the end.

notnownikki avatar Aug 01 '17 15:08 notnownikki

Testable in https://github.com/WordPress/gutenberg/pull/2123 - comments welcome!

notnownikki avatar Aug 01 '17 16:08 notnownikki

This is probably one of the things that should see some serious user testing. Maybe one of the most common complaint from users I've read around so far is "way too many embed blocks". I understand the "mystery meat" discovery thing, but why Gutenberg should completely ignore users feedback? At least, let's have some user testing, please 🙂

afercia avatar Aug 01 '17 16:08 afercia

So I'm looking at #2123, and it's still so... busy.

The more I use it, the more, I'd like to see a UI like the one wireframed here: https://github.com/WordPress/gutenberg/issues/1325#issuecomment-310524357

But, with a few tweaks.

So, the user would start by going to the inserter, and embed blocks would be in their own category on the blocks tab. But, we don't have a block per embed, we have a block per media type.

"Embed Video", "Embed Audio", "Embed Social Media", "Embed...." etc.

When the user selects one, they get the url entry UI, with a list of what video/audio/social sites we support.

That would cut down on the amount of embed blocks, and still allow users to discover what we support.

Sound like it's worth a wireframe and experiment branch?

notnownikki avatar Aug 01 '17 16:08 notnownikki

Can you move all embeds to inline, as some kind of select with autocomplete. As Posts list under Link. And inside Inserter have only one Embed block.

To reduce confusion and errors you can show embeds list directly when User insert block, on default. With few of them most used visible.

StaggerLeee avatar Aug 01 '17 16:08 StaggerLeee

Two thoughts:

  • Discoverability of embed support should be integrated in more places than the inserter alone. If someone pastes a link into text, and there is support for that embed, offer the user the ability to transition that link to an embed block.
  • If the URL is the endpoint for all of those embed options, I say go to a single embed block insert and show the URL input field as quickly as possible, again using the placeholder to communicate the different embed support to the user.

nic-bertino avatar Aug 01 '17 16:08 nic-bertino

There are 35 embed blocks. I am afraid it wont work as it is now. I mean, it works, but what justify taking place for so many blocks and whole tab. Later plugins will add own blocks too.

Bloggers do use embeds often. Serious small or bigger companies, almost never.

StaggerLeee avatar Aug 01 '17 17:08 StaggerLeee

I've pushed up a branch demonstrating what I mean, having an embed block per media type. You choose if you're embedding video, audio, documents, etc. and then you get prompted for the url, with a list of places that we support embedding from. Seems cleaner to me.

Branch is at https://github.com/WordPress/gutenberg/pull/2125 if you want to see how it looks.

notnownikki avatar Aug 01 '17 17:08 notnownikki

Oh, https://github.com/WordPress/gutenberg/pull/2125 also gets rid of the embed tab, because it drastically reduces the number of embed blocks, they can fit in with the rest of the blocks.

notnownikki avatar Aug 01 '17 17:08 notnownikki

Gif showing #2125 in action:

embed by media type

notnownikki avatar Aug 01 '17 17:08 notnownikki

How would you handle how each service offers up embed code using this model? For example if I want to embed a YouTube video or Facebook status, I am presented with code using <iframe> elements. Twitter on the other hand, as well as Instagram use <blockquote> elements with accompanying external JavaScript files loaded asynchronously.

What about keeping it as is, but maybe only showing the bigger services (e.g. Facebook, Twitter, Instagram, etc.) and a link at the bottom that takes the user to the Admin panel (if they have that capability) and allow them to turn on some of these others and turn off the ones they don't use?

cedon avatar Aug 01 '17 22:08 cedon

Same flow from #1325, I think.

embed-flexibility

nic-bertino avatar Aug 01 '17 23:08 nic-bertino

@nic-bertino yeah, all it changes is having an embed block per media type, to get the user clicking them, and once they have, they see the list of all the places we can embed from. I'm concerned that a single embed block might not be obvious, but I think that showing the media types we can embed is enough to get them clicking, and keeps the amount of embed blocks in the menu down to a minimum.

After using it for the past day, I think it's definitely a better user experience than having a block per site and categorized.

I've marked both PRs as needing design feedback.

notnownikki avatar Aug 02 '17 08:08 notnownikki

A block per media type seems like it adds a layer of abstraction that could be confusing (should I pick "social media" for Twitter?).

I suggested before just showing the most common ones, and making the rest invisible unless you search, or unless you paste a url for that resource.

mtias avatar Aug 02 '17 14:08 mtias

Hiding them unless you search or paste a url doesn't help us with discoverability. As I said before, if I want to embed something from kickstarter, and i see the embed blocks listed and there's no kickstarter, I'll think that I can't embed things from kickstarter. It's mystery meat all over again.

notnownikki avatar Aug 02 '17 14:08 notnownikki

Perhaps we do just need a single block, "Embed external content" (or something along those lines) and have the list of supported sites listed on the edit UI.

notnownikki avatar Aug 02 '17 14:08 notnownikki