-
Notifications
You must be signed in to change notification settings - Fork 621
[NEB-196] Tx button improvements: hide switch chain and approve tx popovers when possible #6863
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 ↗︎
|
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 #6863 +/- ##
=======================================
Coverage 55.31% 55.31%
=======================================
Files 896 896
Lines 57024 57024
Branches 3968 3968
=======================================
Hits 31542 31542
Misses 25385 25385
Partials 97 97
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…povers when possible (#6863) <!-- ## 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 enhancing the `TransactionButton` and `MismatchButton` components by incorporating wallet connection status and improving transaction handling. It introduces logic for determining if a transaction requires external confirmation based on the connected wallets. ### Detailed summary - Added `useConnectedWallets` to `TransactionButton`. - Introduced `canSendTransactionWithoutConfirmation` function to check if a wallet can send transactions without confirmation. - Removed `isGasless` prop from `TransactionButton`. - Updated `MismatchButton` to include `isPending` prop. - Added connection status handling in `MismatchButton`. - Enhanced transaction handling based on network mismatch and wallet conditions. - Implemented `canSwitchNetworkWithoutConfirmation` function to determine switching requirements. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
f530be0 to
2d27c4f
Compare
ff0cb29 to
fee560a
Compare

PR-Codex overview
This PR enhances the
TransactionButtonandMismatchButtoncomponents by introducing new wallet connection logic and improving user experience during network mismatches. It adds functionality to check if transactions can be sent without confirmation and updates button behavior accordingly.Detailed summary
useConnectedWalletstoTransactionButton.canSendTransactionWithoutConfirmationfunction to determine if a transaction requires confirmation.isGaslessprop fromTransactionButton.MismatchButtonto handle wallet connection status and network mismatches.isPendingprop toMismatchButton.MismatchButton.