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

[SDK] Feature: GitHub Auth #5062

Merged
merged 1 commit into from
Oct 22, 2024
Merged

[SDK] Feature: GitHub Auth #5062

merged 1 commit into from
Oct 22, 2024

Conversation

gregfromstl
Copy link
Member

@gregfromstl gregfromstl commented Oct 17, 2024

PR-Codex overview

This PR focuses on adding GitHub authentication support to the application, enhancing the existing social authentication options.

Detailed summary

  • Added GitHub to various authentication types.
  • Introduced GITHUB_ICON to UI components.
  • Updated InAppWebConnector and wallet connection options to include GitHub.
  • Modified relevant files to support GitHub sign-in and icon display.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

linear bot commented Oct 17, 2024

CNCT-2093 GitHub Auth

Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 8:02pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 8:02pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 8:02pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 8:02pm

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: 0cafa33

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

graphite-app bot commented Oct 17, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor

github-actions bot commented Oct 17, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 3.7 s (+68.06% 🔺) 4.6 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 5.6 s (+7.29% 🔺) 7.6 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 184 ms (-26.53% 🔽) 281 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 148 ms (+114.92% 🔺) 158 ms
thirdweb/react (minimal + tree-shaking) 17.36 KB (0%) 348 ms (0%) 441 ms (-29.11% 🔽) 788 ms

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 45.26%. Comparing base (dd77c7f) to head (0cafa33).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ckages/thirdweb/src/react/core/utils/walletIcon.ts 60.00% 2 Missing ⚠️
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 0.00% 2 Missing ⚠️
.../web/wallets/shared/ConnectWalletSocialOptions.tsx 0.00% 1 Missing ⚠️
...irdweb/src/react/web/wallets/shared/oauthSignIn.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5062      +/-   ##
==========================================
- Coverage   45.28%   45.26%   -0.03%     
==========================================
  Files        1060     1061       +1     
  Lines       54831    54869      +38     
  Branches     3955     3955              
==========================================
+ Hits        24832    24837       +5     
- Misses      29308    29341      +33     
  Partials      691      691              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from dd77c7f
packages 40.21% <40.00%> (-0.03%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
packages/thirdweb/src/wallets/types.ts 100.00% <100.00%> (ø)
.../web/wallets/shared/ConnectWalletSocialOptions.tsx 7.14% <0.00%> (-0.02%) ⬇️
...irdweb/src/react/web/wallets/shared/oauthSignIn.ts 4.16% <0.00%> (-0.06%) ⬇️
...ckages/thirdweb/src/react/core/utils/walletIcon.ts 57.83% <60.00%> (+0.13%) ⬆️
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 0.27% <0.00%> (-0.01%) ⬇️

... and 1 file with indirect coverage changes

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Oct 22, 2024
Copy link
Member Author

gregfromstl commented Oct 22, 2024

Merge activity

  • Oct 22, 3:42 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 22, 3:43 PM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 22, 4:01 PM EDT: A user merged this pull request with the Graphite merge queue.

<!-- start pr-codex -->

## PR-Codex overview
This PR introduces GitHub authentication support across various components of the application, enhancing the social login options for users.

### Detailed summary
- Added `GitHub` to authentication options in `types.ts`.
- Included `GitHub` in the social login forms and icons.
- Updated the `InAppWebConnector` to handle `GitHub` authentication.
- Defined `GITHUB_ICON` SVG for branding.
- Integrated `githubIconUri` for wallet icons.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard. merge-queue Adds the pull request to Graphite's merge queue. packages Playground Changes involving the Playground codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants