-
Notifications
You must be signed in to change notification settings - Fork 615
[MNY-295] Fix BuyWidget autoconnect not working when receiverAddress prop is set #8363
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-295] Fix BuyWidget autoconnect not working when receiverAddress prop is set #8363
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: d907017 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 |
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. |
WalkthroughAdds conditional AutoConnect rendering to BuyWidget when Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant BuyWidget
participant AutoConnect
participant BridgeWidgetContent
User->>BuyWidget: Render with receiverAddress & connectOptions
activate BuyWidget
alt connectOptions.autoConnect !== false
BuyWidget->>AutoConnect: Render with wallets, timeout, appMetadata, accountAbstraction, chain
activate AutoConnect
AutoConnect->>AutoConnect: Attempt automatic connection
AutoConnect-->>BuyWidget: Return connection status
deactivate AutoConnect
end
BuyWidget->>BridgeWidgetContent: Render main bridge UI (connect button, content)
BridgeWidgetContent->>User: Display UI / prompts
deactivate BuyWidget
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ 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 (4)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used📓 Path-based instructions (4)**/*.{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:
**/*.stories.tsx📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (6)📚 Learning: 2025-09-23T19:56:43.668ZApplied to files:
📚 Learning: 2025-10-03T23:36:00.631ZApplied to files:
📚 Learning: 2025-07-18T19:20:32.530ZApplied to files:
📚 Learning: 2025-08-29T15:37:38.513ZApplied to files:
📚 Learning: 2025-07-18T19:19:55.613ZApplied to files:
📚 Learning: 2025-07-18T19:20:32.530ZApplied to files:
🧬 Code graph analysis (1)packages/thirdweb/src/stories/BuyWidget.stories.tsx (2)
🪛 Gitleaks (8.28.0)packages/thirdweb/src/stories/BuyWidget.stories.tsx[high] 146-146: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) ⏰ 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). (6)
🔇 Additional comments (2)
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 #8363 +/- ##
==========================================
- Coverage 54.65% 54.64% -0.02%
==========================================
Files 919 919
Lines 60678 60692 +14
Branches 4109 4115 +6
==========================================
Hits 33164 33164
- Misses 27412 27426 +14
Partials 102 102
🚀 New features to boost your workflow:
|
Merge activity
|
…prop is set (#8363) <!-- ## 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 fixing the `BuyWidget` component's autoconnect functionality when the `receiverAddress` prop is set, and it introduces a new story variant to demonstrate this behavior. ### Detailed summary - Updated `BuyWidget` to conditionally render the `AutoConnect` component based on `connectOptions.autoConnect`. - Introduced a new story `NoAutoConnect` in `BuyWidget.stories.tsx` to showcase the widget with `autoConnect` set to false. - Modified `FundWallet.tsx` to ensure proper handling of the `autoConnect` prop. > ✨ 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 ## Release Notes * **Bug Fixes** * Fixed auto-connect functionality that was not working correctly when the receiver address property is set on the buy widget. * **New Features** * Added configurable auto-connect option to the buy widget, enabling users to control whether auto-connection is enabled or disabled based on their needs. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
c5041b9 to
d907017
Compare

PR-Codex overview
This PR focuses on fixing the
BuyWidgetcomponent's auto-connect functionality, particularly when thereceiverAddressprop is set. It adds support for auto-connect options and introduces a new story variant to demonstrate the feature.Detailed summary
autoConnectoption in theBuyWidget.BuyWidgetcomponent to conditionally render theAutoConnectcomponent based onconnectOptions.NoAutoConnectto showcase theBuyWidgetwithout auto-connect enabled.Summary by CodeRabbit
Bug Fixes
New Features
Documentation