-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(web-wallet): disable button while loading #4052
Conversation
🦋 Changeset detectedLatest commit: 67da85c The changes in this PR will be included in the next version bump. This PR includes changesets to release 9 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 Git ↗︎
12 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the web wallet UX by disabling the "Open" button while the wallet connection is being established. Key changes include adding tests to verify button states, introducing an isLoading state in the wallet component, and integrating this state into the widget’s button disabled logic.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/scaffold-ui/test/partials/w3m-connecting-wc-web.test.ts | Added tests to verify that the "Open" button is enabled when a URI is available and disabled otherwise. |
packages/scaffold-ui/src/partials/w3m-connecting-wc-web/index.ts | Introduced the isLoading state and update mechanism for controlling the button's clickable state. |
packages/scaffold-ui/src/utils/w3m-connecting-widget/index.ts | Updated the button's disabled attribute logic to consider the new isLoading state. |
Coverage Report
File Coverage
|
@@ -0,0 +1,5 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to select all packages while creating changeset 🙏🏽
'@reown/appkit-scaffold-ui': patch | ||
--- | ||
|
||
disable `open` button until connection established |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally follow a practice where explanations start with capital letters unlike the commits for changeset summary
Description
Web wallets can only be opened once a connection to WalletConnect has been established. Currently the UX is confusing as the button can be clicked whilst loading with no effect. This change disables the button until it is actually clickable.
Type of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
web-loading.mp4
Checklist