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

feat(Egghead): Add support for Egghead #115

Closed
wants to merge 13 commits into from

Conversation

FabioRosado
Copy link
Contributor

@FabioRosado FabioRosado commented Apr 16, 2020

What: Added support for egghead videos/lessons

Why: Fixes #93

How: Added transformer that adds /embed to the end of the url

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

I'm still having issues with the last test on Plugin can transform egghead links not entire sure why this one is failing even thought the Get correct egghead iframe is working. Will need to dig into this deeper to try and figure out why its happening.

In regards to the transformer, should we add the title to the iframe? Should we add a Video hosted on <a href={lessonLink}>egghead.io</a> message under the video as well?

@codecov
Copy link

codecov bot commented Apr 16, 2020

Codecov Report

Merging #115 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #115   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           16        17    +1     
  Lines          215       221    +6     
  Branches        27        27           
=========================================
+ Hits           215       221    +6     
Impacted Files Coverage Δ
src/transformers/Twitter.js 100.00% <ø> (ø)
src/transformers/index.js 100.00% <ø> (ø)
src/transformers/CodeSandbox.js 100.00% <100.00%> (ø)
src/transformers/Egghead.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb5b8a8...6aabde4. Read the comment docs.

@MichaelDeBoey MichaelDeBoey added the ⚙︎ Egghead Issue or pull request regarding Egghead label Apr 16, 2020
@MichaelDeBoey MichaelDeBoey marked this pull request as draft April 16, 2020 20:47
@FabioRosado
Copy link
Contributor Author

I've been looking at both the tests and the code and can't see what's wrong - I know this is starting to be a pattern sorry for that! The url is transformed as expected but not when the markdown file is opened.

After comparing the code with the other transformers, I can't really see why the markdown test is failing, any idea? 🤔

@MichaelDeBoey MichaelDeBoey self-assigned this Apr 22, 2020
MichaelDeBoey and others added 10 commits June 11, 2020 15:24
* Solving MichaelDeBoey#97

* Update tests

* Update src/transformers/Twitter.js

(for the sake of consistency)

Co-authored-by: Michaël De Boey <[email protected]>

* Update src/__tests__/transformers/Twitter.js

As far as we know, this can't be created

Co-authored-by: Michaël De Boey <[email protected]>

* Update src/__tests__/transformers/Twitter.js

This too, is not possible.

Co-authored-by: Michaël De Boey <[email protected]>

* Update src/__tests__/transformers/__fixtures__/Twitter.md

This too, is not possible.

Co-authored-by: Michaël De Boey <[email protected]>

Co-authored-by: Agastya Chandrakant <[email protected]>
Co-authored-by: Michaël De Boey <[email protected]>
@FabioRosado
Copy link
Contributor Author

Hello Michael,

well it took me way too long to finally attempt and fix the issue with the failing test. It's a bit silly but figured out that I had forgotten to add the transformer to index.js.

I tried to pull the changes into the branch but something weird happened and for some reason I show up on the previous commits, not sure how to fix this. How do you want me to proceed here? Should I make a new branch and submit a new PR or it won't matter when you merge this PR? 🤔

Thanks for the time and patience with me on this PR and for having it open for such a long time!

@FabioRosado FabioRosado marked this pull request as ready for review June 11, 2020 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙︎ Egghead Issue or pull request regarding Egghead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Egghead
3 participants