-
Notifications
You must be signed in to change notification settings - Fork 563
[Dashboard] use BuyWidget on /bridge #7590
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
""" WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UniversalBridgeEmbed
participant BuyWidget
User ->> UniversalBridgeEmbed: Render component with props
UniversalBridgeEmbed ->> BuyWidget: Pass amount, chain, tokenAddress, theme
BuyWidget ->> User: Display buy widget UI
Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. 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 as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
✨ Finishing Touches
🪧 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. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7590 +/- ##
=======================================
Coverage 56.46% 56.46%
=======================================
Files 906 906
Lines 58072 58072
Branches 4222 4222
=======================================
Hits 32790 32790
Misses 25174 25174
Partials 108 108
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
Fixes TOOL-5023 <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the `UniversalBridgeEmbed` component to replace the `PayEmbed` with `BuyWidget` from the `thirdweb` library, modifying how payment options are handled and improving the integration with the `thirdweb` SDK. ### Detailed summary - Replaced `PayEmbed` component with `BuyWidget`. - Removed `payOptions` prop and its nested properties. - Added `amount`, `chain`, and `tokenAddress` props to `BuyWidget`. - Updated the theme handling to use `getSDKTheme`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated the embedded widget in the dashboard to use a new buy widget, offering a simplified and more direct interface for purchasing tokens. * **Refactor** * Streamlined the widget’s input options for a more straightforward user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
aeef17e
to
ffb7b64
Compare
Fixes TOOL-5023
PR-Codex overview
This PR focuses on updating the
UniversalBridgeEmbed
component by replacing thePayEmbed
with theBuyWidget
fromthirdweb/react
, along with adjustments to the props being passed.Detailed summary
PayEmbed
component withBuyWidget
.BuyWidget
:payOptions
object.amount
,chain
, andtokenAddress
as direct props.tokenAddress
to useAddress
type.Summary by CodeRabbit
New Features
Refactor