chore: prevent calling SELECT_WALLET event for basic#4921
Conversation
🦋 Changeset detectedLatest commit: 524e2af The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 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.
10 Skipped Deployments
|
There was a problem hiding this comment.
Pull Request Overview
This PR prevents the SELECT_WALLET event from being triggered in the basic WalletConnect connection flow. The change addresses a scenario where ConnectingWcBasic renders ConnectingWc directly without manual wallet selection, making the SELECT_WALLET event inappropriate.
- Adds a
basicproperty to control when theSELECT_WALLETevent should be triggered - Conditionally prevents the event in the QR code component when in basic mode
- Updates the package version to 1.8.0
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts | Adds basic property and passes it to QR code component |
| packages/scaffold-ui/src/views/w3m-connecting-wc-basic-view/index.ts | Sets basic=true when rendering the connecting view |
| packages/scaffold-ui/src/partials/w3m-connecting-wc-qrcode/index.ts | Implements conditional SELECT_WALLET event logic based on basic property |
| packages/appkit/exports/constants.ts | Bumps package version to 1.8.0 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/scaffold-ui/src/partials/w3m-connecting-wc-qrcode/index.ts
Outdated
Show resolved
Hide resolved
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
…m-select_wallet-to-open_qr
Description
We have
ConnectingWcBasicview where we renderConnectingWcview, which callsSELECT_WALLETevent on it's contructor. But theConnectingWcBasiccase is a bit different that we show this page directly instead they select WC manually. So in this case we shouldn't triggerSELECT_WALLETevent.Type of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.
Checklist