Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Dec 19, 2025


PR-Codex overview

This PR modifies the behavior of the wallet connection process within the WalletSwitcherConnectionScreen. Upon connecting a wallet, it now directly transitions to the token selection screen, bypassing the intermediate "Choose Payment" screen.

Detailed summary

  • Updated onConnect function to remove the call to props.onBack(), allowing direct navigation to the token selection screen after wallet connection.
  • Updated documentation to reflect the change in user flow for the wallet connection process in bridge widgets.

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

Summary by CodeRabbit

  • Bug Fixes
    • Streamlined wallet connection in bridge widgets: after connecting a wallet on the Choose Payment screen, the flow now advances directly to token selection instead of returning to or redisplaying the payment screen.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Dec 19, 2025

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

Project Deployment Review Updated (UTC)
docs-v2 Ready Ready Preview, Comment Dec 19, 2025 8:17pm
nebula Ready Ready Preview, Comment Dec 19, 2025 8:17pm
thirdweb_playground Ready Ready Preview, Comment Dec 19, 2025 8:17pm
thirdweb-www Ready Ready Preview, Comment Dec 19, 2025 8:17pm
wallet-ui Ready Ready Preview, Comment Dec 19, 2025 8:17pm

@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2025

🦋 Changeset detected

Latest commit: 0ff8b9f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
thirdweb Patch
@thirdweb-dev/nebula Patch
@thirdweb-dev/wagmi-adapter Patch
wagmi-inapp Patch

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 19, 2025

Walkthrough

Adds a changeset entry and modifies the wallet connection handler so connecting a wallet on the Choose Payment screen no longer triggers back-navigation; the onConnect path now selects the wallet and proceeds to the next (token selection) screen.

Changes

Cohort / File(s) Summary
Changeset metadata
/.changeset/heavy-clowns-stay.md
New patch release entry documenting the UI flow change for wallet connection on payment screens.
Wallet connection flow
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx
Removed invocation of onBack() from the onConnect handler; onConnect now calls props.onSelect(w) only, so the flow proceeds without returning to the Choose Payment screen.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Areas to pay attention to:
    • WalletSwitcherConnectionScreen.tsx — verify that removing onBack() does not break other navigation assumptions or leave any dangling UI state.
    • Integration points where the Choose Payment / bridge widgets expect the previous back-navigation behavior (ensure callers handle the new forward-only flow).
    • Changeset file — confirm wording and versioning are correct.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The PR description includes a PR-Codex overview but does not follow the repository's template structure with required sections like 'Notes for the reviewer' and 'How to test'. Add sections for 'Notes for the reviewer' and 'How to test' to follow the repository's template, or clarify testing approach and any important review notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing the back-navigation flow after wallet connection to allow direct advancement to token selection in bridge widgets.
Linked Issues check ✅ Passed The code changes directly address the linked issue MNY-316 by removing the onBack() call in onConnect, enabling automatic navigation to token selection after wallet connection as required.
Out of Scope Changes check ✅ Passed All changes are directly related to the stated objective: modifying WalletSwitcherConnectionScreen to remove back-navigation behavior and updating the changeset, with no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mny-316

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 9f9ce40 and 0ff8b9f.

📒 Files selected for processing (2)
  • .changeset/heavy-clowns-stay.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx (0 hunks)
💤 Files with no reviewable changes (1)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx
⏰ 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)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
.changeset/heavy-clowns-stay.md (2)

1-5: Changeset is properly formatted and aligns with PR objectives.

The changeset entry is correctly structured with proper YAML front matter and accurately describes the UX flow change. Marking this as a patch release is appropriate for the bug fix.


5-5: Implementation verified and matches changeset description.

The component file exists and correctly implements the described behavior. When a wallet is connected via WalletSwitcherConnectionScreen, the onConnect handler calls props.onSelect(wallet) (not onBack()), which directs users to the token selection screen via handleWalletSelected. Error handling for wallet connection failures is intact through the usePaymentMethods hook and handlePaymentMethodSelected function with try-catch logic. The onSelect() call is properly parameterized with the wallet argument. No unintended side effects are introduced.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

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

@MananTank MananTank marked this pull request as ready for review December 19, 2025 19:53
@MananTank MananTank requested review from a team as code owners December 19, 2025 19:53
@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Dec 19, 2025
Copy link
Member Author

MananTank commented Dec 19, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

size-limit report 📦

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

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.24%. Comparing base (304e4e5) to head (0ff8b9f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8580   +/-   ##
=======================================
  Coverage   53.24%   53.24%           
=======================================
  Files         922      922           
  Lines       61415    61414    -1     
  Branches     4026     4026           
=======================================
  Hits        32699    32699           
+ Misses      28618    28617    -1     
  Partials       98       98           
Flag Coverage Δ
packages 53.24% <ø> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
...tWallet/screens/WalletSwitcherConnectionScreen.tsx 11.11% <ø> (+0.20%) ⬆️
🚀 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.

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 19, 2025

Merge activity

…in bridge widgets (#8580)

<!--

## 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 modifies the behavior of the wallet connection process in the `WalletSwitcherConnectionScreen`. After a wallet is connected, it skips the "Choose Payment" screen and directly moves to the token selection screen, enhancing user experience in bridge widgets.

### Detailed summary
- Updated the `onConnect` function to remove the call to `props.onBack()`, preventing the return to the "Choose Payment" screen.
- Changed the flow to directly transition to the token selection screen after wallet connection.

> ✨ 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

* **Bug Fixes**
  * Improved wallet connection flow in bridge widgets. After connecting a wallet on the Choose Payment screen, users are now directed directly to token selection instead of returning to the payment screen.

<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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