Skip to content

Buywidget onramp visibility#8704

Draft
Yash094 wants to merge 2 commits intomainfrom
cursor/buywidget-onramp-visibility-994f
Draft

Buywidget onramp visibility#8704
Yash094 wants to merge 2 commits intomainfrom
cursor/buywidget-onramp-visibility-994f

Conversation

@Yash094
Copy link
Member

@Yash094 Yash094 commented Mar 12, 2026

Slack Thread

Open in Web Open in Cursor 

PR-Codex overview

This PR introduces the ability to hide specific onramp providers in various components related to payment selection and fiat quotes, enhancing customization for users.

Detailed summary

  • Updated useBuyWithFiatQuotesForProviders to accept an optional providers parameter.
  • Added hiddenOnrampProviders prop to PaymentSelection, BridgeWidget, BuyWidget, and FiatProviderSelection.
  • Filtered out hidden providers in FiatProviderSelection when fetching quotes.

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

cursoragent and others added 2 commits March 12, 2026 06:54
- Add hiddenOnrampProviders prop to BuyWidget and BridgeWidget components
- Filter onramp providers (Coinbase, Stripe, Transak) based on hidden list
- Update useBuyWithFiatQuotesForProviders hook to accept provider list
- Add comprehensive tests for provider filtering
- Allows developers to customize which payment providers are shown to users

Co-authored-by: Yash <Yash094@users.noreply.github.com>
Co-authored-by: Yash <Yash094@users.noreply.github.com>
@changeset-bot
Copy link

changeset-bot bot commented Mar 12, 2026

⚠️ No Changeset found

Latest commit: a098646

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-v2 Ready Ready Preview, Comment Mar 12, 2026 7:08am
nebula Ready Ready Preview, Comment Mar 12, 2026 7:08am
thirdweb_playground Ready Ready Preview, Comment Mar 12, 2026 7:08am
thirdweb-www Ready Ready Preview, Comment Mar 12, 2026 7:08am
wallet-ui Ready Ready Preview, Comment Mar 12, 2026 7:08am

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Mar 12, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 12, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 41c0b0b1-fc30-4d2f-aebc-1c3c0847c924

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/buywidget-onramp-visibility-994f

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 0% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.71%. Comparing base (8e9c51e) to head (a098646).

Files with missing lines Patch % Lines
...Bridge/payment-selection/FiatProviderSelection.tsx 0.00% 19 Missing ⚠️
...core/hooks/pay/useBuyWithFiatQuotesForProviders.ts 0.00% 6 Missing ⚠️
...ges/thirdweb/src/react/web/ui/Bridge/BuyWidget.tsx 0.00% 2 Missing ⚠️
...b/ui/Bridge/payment-selection/PaymentSelection.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8704      +/-   ##
==========================================
- Coverage   52.72%   52.71%   -0.01%     
==========================================
  Files         934      934              
  Lines       62968    62985      +17     
  Branches     4135     4135              
==========================================
+ Hits        33199    33204       +5     
- Misses      29671    29683      +12     
  Partials       98       98              
Flag Coverage Δ
packages 52.71% <0.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
...ges/thirdweb/src/react/web/ui/Bridge/BuyWidget.tsx 4.50% <0.00%> (-0.03%) ⬇️
...b/ui/Bridge/payment-selection/PaymentSelection.tsx 6.89% <0.00%> (-0.07%) ⬇️
...core/hooks/pay/useBuyWithFiatQuotesForProviders.ts 11.36% <0.00%> (-1.14%) ⬇️
...Bridge/payment-selection/FiatProviderSelection.tsx 19.54% <0.00%> (-1.07%) ⬇️

... and 2 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.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 12, 2026

size-limit report 📦

Path Size
@thirdweb-dev/nexus (esm) 105.66 KB (0%)
@thirdweb-dev/nexus (cjs) 319.47 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants