Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Mar 7, 2025


PR-Codex overview

This PR focuses on improving the onramp experience by enhancing the OnRampScreen functionality and updating the useBuyWithCryptoQuote hook to include a refetch interval.

Detailed summary

  • In OnRampScreen.tsx:
    • Changed swapQuoteQuery.refetch() to await swapQuoteQuery.refetch().
  • In useBuyWithCryptoQuote.ts:
    • Added refetchInterval: 20_000 to the query parameters.

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

@gregfromstl gregfromstl requested review from a team as code owners March 7, 2025 21:26
@linear
Copy link

linear bot commented Mar 7, 2025

@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2025

🦋 Changeset detected

Latest commit: 0562302

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

This PR includes changesets to release 2 packages
Name Type
thirdweb Minor
@thirdweb-dev/wagmi-adapter Patch

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 Mar 7, 2025

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 Mar 7, 2025 9:56pm
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 9:56pm
thirdweb_playground 🛑 Canceled (Inspect) Mar 7, 2025 9:56pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 9:56pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 7, 2025 9:56pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Mar 7, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Mar 7, 2025
Copy link
Contributor Author

gregfromstl commented Mar 7, 2025

Merge activity

  • Mar 7, 4:32 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 7, 4:51 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 7, 4:52 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.76 KB (0%) 936 ms (0%) 147 ms (+73.37% 🔺) 1.1 s
thirdweb (cjs) 127.15 KB (0%) 2.6 s (0%) 346 ms (+32.24% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 84 ms (+1172.98% 🔺) 196 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 34 ms (+1048.11% 🔺) 44 ms
thirdweb/react (minimal + tree-shaking) 19.34 KB (0%) 387 ms (0%) 98 ms (+423.09% 🔺) 485 ms

@codecov
Copy link

codecov bot commented Mar 7, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 54.63%. Comparing base (efceadd) to head (0562302).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../src/react/core/hooks/pay/useBuyWithCryptoQuote.ts 0.00% 1 Missing ⚠️
...ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6437      +/-   ##
==========================================
- Coverage   54.64%   54.63%   -0.02%     
==========================================
  Files         874      874              
  Lines       54707    54708       +1     
  Branches     3709     3708       -1     
==========================================
- Hits        29897    29892       -5     
- Misses      24716    24722       +6     
  Partials       94       94              
Flag Coverage Δ
packages 54.63% <0.00%> (-0.02%) ⬇️
Files with missing lines Coverage Δ
.../src/react/core/hooks/pay/useBuyWithCryptoQuote.ts 15.00% <0.00%> (-0.79%) ⬇️
...ui/ConnectWallet/screens/Buy/fiat/OnRampScreen.tsx 5.77% <0.00%> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vercel vercel bot temporarily deployed to Preview – thirdweb-www March 7, 2025 21:39 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 March 7, 2025 21:39 Inactive
@vercel vercel bot temporarily deployed to Preview – login March 7, 2025 21:39 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui March 7, 2025 21:39 Inactive
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 Playground Changes involving the Playground codebase. SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants