Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 4, 2024

CNCT-2213


PR-Codex overview

This PR introduces a new SiteEmbed React component that allows embedding thirdweb-supported sites with seamless wallet connection support. It enhances user experience by maintaining wallet connection states for both in-app and ecosystem wallets.

Detailed summary

  • Added SiteEmbed component for embedding thirdweb sites.
  • SiteEmbed supports seamless wallet connections.
  • Updated getUrlToken to include authCookie.
  • Enhanced useAutoConnectCore to save authCookie if available.
  • Created tests for SiteEmbed to verify rendering and error handling.

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

@linear
Copy link

linear bot commented Nov 4, 2024

@changeset-bot
Copy link

changeset-bot bot commented Nov 4, 2024

🦋 Changeset detected

Latest commit: 5cc5c93

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

@vercel
Copy link

vercel bot commented Nov 4, 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 Nov 5, 2024 4:59pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 4:59pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 4:59pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 4:59pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 4, 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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 3.8 s (+35.94% 🔺) 4.6 s
thirdweb (cjs) 103 KB (0%) 2.1 s (0%) 7.6 s (+13.43% 🔺) 9.6 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 97 ms (0%) 217 ms (+37.59% 🔺) 314 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 61 ms (-12.95% 🔽) 71 ms
thirdweb/react (minimal + tree-shaking) 17.51 KB (0%) 351 ms (0%) 582 ms (+48.07% 🔺) 932 ms

@codecov
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

Attention: Patch coverage is 64.00000% with 27 lines in your changes missing coverage. Please review.

Project coverage is 45.59%. Comparing base (cc47b7b) to head (5cc5c93).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...web/src/react/core/hooks/wallets/useAutoConnect.ts 12.50% 14 Missing ⚠️
...irdweb/src/wallets/in-app/web/lib/get-url-token.ts 10.00% 9 Missing ⚠️
packages/thirdweb/src/react/web/ui/SiteEmbed.tsx 91.83% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5298      +/-   ##
==========================================
+ Coverage   45.56%   45.59%   +0.02%     
==========================================
  Files        1067     1069       +2     
  Lines       55487    55584      +97     
  Branches     4031     4045      +14     
==========================================
+ Hits        25283    25342      +59     
- Misses      29514    29552      +38     
  Partials      690      690              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from cc47b7b
packages 40.70% <64.00%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
packages/thirdweb/src/react/web/ui/SiteEmbed.tsx 91.83% <91.83%> (ø)
...irdweb/src/wallets/in-app/web/lib/get-url-token.ts 33.33% <10.00%> (-4.17%) ⬇️
...web/src/react/core/hooks/wallets/useAutoConnect.ts 41.22% <12.50%> (-4.78%) ⬇️

... and 4 files with indirect coverage changes

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 5, 2024
Copy link
Contributor Author

gregfromstl commented Nov 5, 2024

Merge activity

  • Nov 5, 11:45 AM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 5, 11:45 AM EST: A user added this pull request to the Graphite merge queue.
  • Nov 5, 11:59 AM EST: A user merged this pull request with the Graphite merge queue.

CNCT-2213

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new `SiteEmbed` React component that allows embedding thirdweb-supported sites with wallet connection support. It enhances the user experience by maintaining wallet connection states across different sites.

### Detailed summary
- Added `SiteEmbed` component for embedding thirdweb sites.
- Updated `getUrlToken` to include `authCookie`.
- Enhanced `useAutoConnectCore` to save `authCookie` if available.
- Created tests for `SiteEmbed` component, ensuring iframe rendering and error handling.

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

<!-- end pr-codex -->
@gregfromstl gregfromstl force-pushed the greg/cnct-2213-siteembed-component branch from 5abca99 to 5cc5c93 Compare November 5, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants