-
Notifications
You must be signed in to change notification settings - Fork 561
[SDK] Feature: Update PayEmbed to use new widgets #7394
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: Update PayEmbed to use new widgets #7394
Conversation
🦋 Changeset detectedLatest commit: 57134fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant UniversalBridgeEmbed
participant PayEmbed
participant BuyWidget
participant CheckoutWidget
participant TransactionWidget
UniversalBridgeEmbed->>PayEmbed: Render with payOptions (mode, prefillBuy)
alt mode == "fund_wallet" and prefillBuy exists
PayEmbed->>BuyWidget: Render with chain, amount, tokenAddress
else mode == "direct_payment"
PayEmbed->>CheckoutWidget: Render with chain, tokenAddress, amount, sellerAddress
else mode == "transaction"
PayEmbed->>TransactionWidget: Render with transaction data and metadata
end
Possibly related PRs
Suggested reviewers
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7394 +/- ##
==========================================
- Coverage 52.44% 52.20% -0.24%
==========================================
Files 941 945 +4
Lines 63199 63578 +379
Branches 4226 4229 +3
==========================================
+ Hits 33142 33192 +50
- Misses 29950 30279 +329
Partials 107 107
🚀 New features to boost your workflow:
|
PR-Codex overview
This PR focuses on updating the
PayEmbed
UI, enhancing the payment options, and improving the way chains are defined in theRightSection
component. It also refines type handling foramount
in various components.Detailed summary
amount
handling inUniversalBridgeEmbed
to allow optionalamount
.defineChain
for better chain management inRightSection
.PayEmbed
to support different payment modes:fund_wallet
,direct_payment
, andtransaction
.BuyWidget
,CheckoutWidget
, andTransactionWidget
for enhanced UI.ExecutingTxScreen
fromPayEmbed
.Summary by CodeRabbit
New Features
Bug Fixes
Refactor