Skip to content

chore: prevent calling SELECT_WALLET event for basic#4921

Merged
enesozturk merged 4 commits intomainfrom
enes/apkt-3606-update-appkit-core-events-from-select_wallet-to-open_qr
Sep 1, 2025
Merged

chore: prevent calling SELECT_WALLET event for basic#4921
enesozturk merged 4 commits intomainfrom
enes/apkt-3606-update-appkit-core-events-from-select_wallet-to-open_qr

Conversation

@enesozturk
Copy link
Copy Markdown
Contributor

Description

We have ConnectingWcBasic view where we render ConnectingWc view, which calls SELECT_WALLET event on it's contructor. But the ConnectingWcBasic case is a bit different that we show this page directly instead they select WC manually. So in this case we shouldn't trigger SELECT_WALLET event.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

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

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copilot AI review requested due to automatic review settings August 29, 2025 13:51
@linear
Copy link
Copy Markdown

linear bot commented Aug 29, 2025

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 29, 2025

🦋 Changeset detected

Latest commit: 524e2af

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

This PR includes changesets to release 24 packages
Name Type
@reown/appkit-scaffold-ui Patch
@reown/appkit Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-universal-connector Patch
@reown/appkit-cdn Patch
@reown/appkit-experimental Patch
@reown/appkit-testing Patch
@reown/appkit-common Patch
@reown/appkit-ui Patch
@reown/appkit-controllers Patch
@reown/appkit-core Patch
@reown/appkit-utils Patch
@reown/appkit-polyfills Patch
@reown/appkit-wallet Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-wallet-button Patch
@reown/appkit-cli Patch
@reown/appkit-pay Patch
@reown/appkit-codemod 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

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Sep 1, 2025 7:59am
appkit-demo Ready Ready Preview Comment Sep 1, 2025 7:59am
appkit-gallery Ready Ready Preview Comment Sep 1, 2025 7:59am
appkit-laboratory Ready Ready Preview Comment Sep 1, 2025 7:59am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Sep 1, 2025 7:59am
appkit-basic-sign-client-example Ignored Ignored Sep 1, 2025 7:59am
appkit-basic-up-example Ignored Ignored Sep 1, 2025 7:59am
appkit-ethers5-bera Ignored Ignored Sep 1, 2025 7:59am
appkit-nansen-demo Ignored Ignored Sep 1, 2025 7:59am
appkit-vue-solana Ignored Ignored Sep 1, 2025 7:59am
appkit-wagmi-cdn-example Ignored Ignored Sep 1, 2025 7:59am
ethereum-provider-wagmi-example Ignored Ignored Sep 1, 2025 7:59am
next-wagmi-solana-bitcoin-example Ignored Ignored Sep 1, 2025 7:59am
vue-wagmi-example Ignored Ignored Sep 1, 2025 7:59am

Copy link
Copy Markdown
Contributor

Copilot AI left a 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 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 basic property to control when the SELECT_WALLET event 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.

@enesozturk enesozturk changed the title chore: prevent calling select wallet event for basic chore: prevent calling SELECT_WALLET event for basic Aug 29, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 29, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.32% 34816 / 44448
🔵 Statements 78.32% 34816 / 44448
🔵 Functions 76.22% 3837 / 5034
🔵 Branches 86.71% 8223 / 9483
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/scaffold-ui/src/partials/w3m-connecting-wc-qrcode/index.ts 90.14% 94.44% 66.66% 90.14% 50-53, 71, 102, 117
packages/scaffold-ui/src/views/w3m-connecting-wc-basic-view/index.ts 28.2% 100% 0% 28.2% 27-31, 34-35, 39-60, 63-70
packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts 76.6% 62.26% 66.66% 76.6% 57-58, 66, 75, 87-88, 97, 108-109, 138-140, 159-160, 174-175, 183-184, 195, 199-202, 207, 211, 228, 232-246
Generated in workflow #14654 for commit 524e2af by the Vitest Coverage Report Action

@enesozturk enesozturk added this pull request to the merge queue Sep 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 1, 2025
@enesozturk enesozturk added this pull request to the merge queue Sep 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 1, 2025
@enesozturk enesozturk added this pull request to the merge queue Sep 1, 2025
Merged via the queue into main with commit 7495de9 Sep 1, 2025
41 checks passed
@enesozturk enesozturk deleted the enes/apkt-3606-update-appkit-core-events-from-select_wallet-to-open_qr branch September 1, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants