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

Add Block: Twitter Embed #638

Closed
mapk opened this issue May 3, 2017 · 10 comments
Closed

Add Block: Twitter Embed #638

mapk opened this issue May 3, 2017 · 10 comments
Assignees
Labels
[Feature] Blocks Overall functionality of blocks
Milestone

Comments

@mapk
Copy link
Contributor

mapk commented May 3, 2017

Looking at a Twitter embed block. I've mocked up a few states for this, and wanted to open this up for discussion.

Empty Block:
Need an empty field to paste in the Twitter embed HTML.
twitter-empty

Neutral:
I imagine the styling would be structured similarly to the blockquote styling.
twitter-neutral

Hover:
twitter-hover

Selected:
When selected the switcher would reveal it as a Twitter embed and not a blockquote. The 'edit' button would be to allow the user to click back to the 'empty' state to edit the HTML embed code or update it.
twitter-selected

@jasmussen jasmussen added [Feature] Blocks Overall functionality of blocks General Interface Parts of the UI which don't fall neatly under other labels. Design labels May 4, 2017
@jasmussen
Copy link
Contributor

Nice work.

Should we maybe pull it back a bit, though? I think we can just make a thin shell wrapper for the existing oembed feature. That would essentially only require a URL to the tweet in the wrapper, and we just let Twitter show us their standard embed stuff inside an iframe, like this:

screen shot 2017-05-04 at 10 03 06

@mtias mtias removed the General Interface Parts of the UI which don't fall neatly under other labels. label May 4, 2017
@mapk
Copy link
Contributor Author

mapk commented May 5, 2017

I love the idea of just keeping the OG styling from Twitter (and any other embed for that matter). After some discussion, I also realized that our Editor doesn't need the embed code, but can just work from the URL itself. So I made some changes around that as well.

Empty Selected UI
twitter no-style-empty-selected

Neutral
twitter no-style-neutral

Hover UI
twitter no-style-hover

Selected UI
twitter no-style-selected

@jasmussen
Copy link
Contributor

Looks great!

@kopepasah
Copy link
Member

I agree that keeping the standard styles is the best option.

Going to pick up this ticket.

@kopepasah kopepasah self-assigned this May 9, 2017
@youknowriad
Copy link
Contributor

I thought @notnownikki was already working on this?

@notnownikki
Copy link
Member

I am :)

@notnownikki
Copy link
Member

I have it working from just the tweet URL, it used the Twitter embed API to fetch the html. I'm just working on sandboxing the returned html in the editor, and it's pretty much done

@kopepasah kopepasah assigned notnownikki and unassigned kopepasah May 9, 2017
@kopepasah
Copy link
Member

@notnownikki okay, sounds good. Reassigning.

@notnownikki
Copy link
Member

notnownikki commented May 9, 2017

The mockups here are appreciated :) I've been doing more API interaction code than UI work so far (there'll be a reusable <Sandbox> component for us to sandbox third party html in the editor) so the UI thinking here helps me a lot :)

@jasmussen jasmussen added this to the Beta milestone May 10, 2017
@jasmussen
Copy link
Contributor

I'm closing this in favor of #1034, and because the embed block as inspired by this is in!

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
Projects
None yet
Development

No branches or pull requests

6 participants