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

Update Docs issue #32 #34

Merged
merged 44 commits into from
Feb 4, 2020
Merged

Update Docs issue #32 #34

merged 44 commits into from
Feb 4, 2020

Conversation

nelsonic
Copy link
Member

@nelsonic nelsonic commented Dec 18, 2019

This PR is meant to bring this package in-line with https://github.com/dwyl/elixir-auth-google

I've simplified the code by removing a bunch of functions that do not appear to be invoked by any of the @dwyl projects using this package. Cut the codebase in half without loss of functionality. ✂️
Introduced environment variables, refactored a few functions and simplified the tests. 👨‍💻

Read: https://github.com/dwyl/elixir-auth-github/tree/update-docs-issue%2332
Hex.pm: https://hex.pm/packages/elixir_auth_github
Heroku Demo: https://elixir-auth-github-demo.herokuapp.com

image

@nelsonic nelsonic self-assigned this Dec 18, 2019
@codecov
Copy link

codecov bot commented Dec 18, 2019

Codecov Report

Merging #34 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #34   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines          21     11   -10     
=====================================
- Hits           21     11   -10
Impacted Files Coverage Δ
lib/elixir_auth_github.ex 100% <100%> (ø) ⬆️

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 4402123...8d0f73c. Read the comment docs.

@nelsonic nelsonic requested review from SimonLab and iteles February 1, 2020 23:04
@nelsonic
Copy link
Member Author

nelsonic commented Feb 1, 2020

Hi @SimonLab / @iteles! 👋
When you get back to your desks next week, please take a look at this PR.
As stated above, my goal is to make this package as similar to our Google Auth plugin,
such that there is consistency and maintainability across our Auth packages.
I'm keen to use GitHub Auth in the App (and for @home ...) so I really wanted to get this done!
Please let me know your thoughts.
Thanks! ☀️

@nelsonic
Copy link
Member Author

nelsonic commented Feb 2, 2020

I went on a "side-quest" to re-make the button using SVG+CSS: #33 👨‍💻

Since the text/copy of the button is now just text in standard HTML,
the user's web browser can automatically translate it! e.g: French 🇬🇧 > 🇫🇷
image
This is much better UX for the 80% of people in the world who do not speak English fluently.
The single biggest engine for growth in startup companies is translating their interface into more languages. 📈

@iteles iteles marked this pull request as ready for review February 2, 2020 10:37
@nelsonic nelsonic mentioned this pull request Feb 2, 2020
5 tasks
Copy link
Member

@iteles iteles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woah! This is a huge amount of work - so thorough!
This is the perfect example of a beginner's tutorial as well ❤️ Thanks @nelsonic.

I've made a couple of typo correction suggestions but will leave for @SimonLab to review and merge too 👍

checkout our working demo:
https://github.com/dwyl/elixir-auth-github-demo <br />
> The demo is deployed on Heroku:
https://elixir-auth-github-demo.herokuapp.com/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing it and sharing your screenshot! 👍

@nelsonic
Copy link
Member Author

nelsonic commented Feb 2, 2020

@iteles this is an example of refactoring a project and updating the docs. ♻️
I don't know if many beginners would be comfortable doing this kind of thing. 💭
But I do hope that beginners can use the package and build their own apps with it. 👍
Thanks for reviewing. ❤️

@SimonLab over to you when you get back online. 🇧🇪 🙌

Copy link
Member

@SimonLab SimonLab 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 @nelsonic

@SimonLab SimonLab merged commit 3ca05ab into master Feb 4, 2020
@SimonLab SimonLab deleted the update-docs-issue#32 branch February 4, 2020 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants