Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 6, 2024

Completes CNCT-2259


PR-Codex overview

This PR introduces a new component, SiteLink, which allows users to create wallet-aware links between thirdweb-enabled sites. It enhances the existing functionality by automatically appending wallet connection parameters to the target URL when a wallet is connected.

Detailed summary

  • Updated comment for SiteEmbed to include linking functionality.
  • Added export for SiteLink from ../react/web/ui/SiteLink.js.
  • Introduced SiteLink component for creating wallet-aware links.
  • Updated SiteEmbed documentation to clarify prop usage.
  • Created tests for SiteLink to ensure correct rendering and error handling.
  • Implemented wallet parameter addition in SiteLink based on connection status.

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

@linear
Copy link

linear bot commented Nov 6, 2024

@changeset-bot
Copy link

changeset-bot bot commented Nov 6, 2024

🦋 Changeset detected

Latest commit: f5f5ae6

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

@graphite-app
Copy link
Contributor

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

@vercel
Copy link

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 6, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 448 ms (+101.29% 🔺) 1.4 s
thirdweb (cjs) 103.05 KB (0%) 2.1 s (0%) 499 ms (-0.74% 🔽) 2.6 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 97 ms (0%) 63 ms (+272.07% 🔺) 160 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 60 ms (+1478.95% 🔺) 70 ms
thirdweb/react (minimal + tree-shaking) 17.56 KB (0%) 352 ms (0%) 171 ms (+404.9% 🔺) 522 ms

@codecov
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

Attention: Patch coverage is 91.30435% with 4 lines in your changes missing coverage. Please review.

Project coverage is 45.75%. Comparing base (15358d7) to head (f5f5ae6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/react/web/ui/SiteLink.tsx 91.30% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5326      +/-   ##
==========================================
+ Coverage   45.71%   45.75%   +0.03%     
==========================================
  Files        1068     1069       +1     
  Lines       55560    55606      +46     
  Branches     4063     4074      +11     
==========================================
+ Hits        25402    25444      +42     
- Misses      29469    29473       +4     
  Partials      689      689              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 15358d7
packages 40.91% <91.30%> (+0.05%) ⬆️

*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% <ø> (ø)
packages/thirdweb/src/react/web/ui/SiteLink.tsx 91.30% <91.30%> (ø)

@gregfromstl gregfromstl self-assigned this Nov 6, 2024
@gregfromstl gregfromstl added Request A request for changes unrelated to a bug. merge-queue Adds the pull request to Graphite's merge queue. React SDK Involves changes to the React SDK. Feature Adds new functionality to the public API. labels Nov 6, 2024
Copy link
Contributor Author

gregfromstl commented Nov 6, 2024

Merge activity

  • Nov 6, 3:12 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 6, 4:56 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 6, 5:09 PM EST: A user merged this pull request with the Graphite merge queue.

Completes CNCT-2259

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces the `SiteLink` component to facilitate wallet-aware linking between thirdweb-enabled sites, enhancing user experience by sharing wallet state seamlessly. It also updates the `SiteEmbed` component documentation and includes tests for the new `SiteLink`.

### Detailed summary
- Updated comment for `SiteEmbed` to reflect wallet connection usage.
- Added `SiteLink` component for creating links with wallet parameters.
- Provided usage example for `SiteLink` in documentation.
- Implemented tests for `SiteLink` to verify functionality and error handling.

> ✨ 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

Feature Adds new functionality to the public API. merge-queue Adds the pull request to Graphite's merge queue. packages React SDK Involves changes to the React SDK. Request A request for changes unrelated to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants