-
Notifications
You must be signed in to change notification settings - Fork 608
[MNY-286] SDK: Do not require connecting wallet in BuyWidget if receiverAddress is set #8296
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
[MNY-286] SDK: Do not require connecting wallet in BuyWidget if receiverAddress is set #8296
Conversation
🦋 Changeset detectedLatest commit: 49824ce The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 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 GitHub.
|
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. |
WalkthroughBuyWidget no longer requires an active wallet on the initial "1:buy-ui" screen; FundWallet now decides whether to show a ConnectButton by checking both Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant BuyWidget
participant FundWallet
rect rgb(240,248,255)
Note over BuyWidget,FundWallet: New control flow on "1:buy-ui"
User->>BuyWidget: Open BuyWidget
BuyWidget->>FundWallet: Render (no wallet gating)
FundWallet->>FundWallet: Evaluate: receiverAddress? and activeWalletInfo?
alt receiverAddress present OR activeWalletInfo present
FundWallet->>User: Show Continue button
else both missing
FundWallet->>User: Show Connect button
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
packages/thirdweb/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (1)packages/thirdweb/src/react/web/ui/Bridge/FundWallet.tsx (2)
⏰ 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)
🔇 Additional comments (1)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
size-limit report 📦
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8296 +/- ##
==========================================
- Coverage 54.92% 54.91% -0.02%
==========================================
Files 919 919
Lines 60665 60664 -1
Branches 4141 4135 -6
==========================================
- Hits 33322 33313 -9
- Misses 27240 27249 +9
+ Partials 103 102 -1
🚀 New features to boost your workflow:
|
Merge activity
|
…verAddress is set (#8296) <!-- ## 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 focuses on modifying the `BuyWidget` component to allow users to bypass wallet connection if a `receiverAddress` is provided. It updates the logic for displaying connection prompts based on the presence of this address. ### Detailed summary - Updated `BuyWidget` to not require wallet connection if `receiverAddress` is set. - Removed `activeWalletInfo` dependency from the condition for displaying the `FundWallet`. - Introduced `showConnectButton` variable to determine if the connect button should be shown. - Simplified the rendering logic for the connect button in `FundWallet`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
77e1de7 to
49824ce
Compare

PR-Codex overview
This PR modifies the
BuyWidgetcomponent to allow users to bypass wallet connection if areceiverAddressis provided. It introduces a new condition for displaying the connection button based on the presence of thereceiverAddress.Detailed summary
BuyWidgetlogic to not require wallet connection ifreceiverAddressis set.activeWalletInfodependency for displaying the wallet connection button inBridgeWidgetContent.showConnectButtoninFundWalletto determine if the connect button should be shown based onreceiverAddress.Summary by CodeRabbit