Skip to content

fix: api controller wallet filtering on mobile#4872

Merged
tomiir merged 11 commits intomainfrom
fix/show-webapp-wallets-on-mobile
Sep 3, 2025
Merged

fix: api controller wallet filtering on mobile#4872
tomiir merged 11 commits intomainfrom
fix/show-webapp-wallets-on-mobile

Conversation

@zoruka
Copy link
Copy Markdown
Contributor

@zoruka zoruka commented Aug 19, 2025

Description

Fix filtering of wallets on ApiController to allow webapp wallets in mobile.

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 DAS-736

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 19, 2025 11:03
@linear
Copy link
Copy Markdown

linear bot commented Aug 19, 2025

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 19, 2025

🦋 Changeset detected

Latest commit: 0989938

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

This PR includes changesets to release 25 packages
Name Type
@reown/appkit-wallet-button Patch
@reown/appkit-experimental Patch
@reown/appkit-controllers Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-common Patch
@reown/appkit-wallet Patch
@reown/appkit-siwe Patch
@reown/appkit-pay Patch
@reown/appkit-ui Patch
pay-test-exchange Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-core Patch
@reown/appkit-polyfills Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-universal-connector 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 19, 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 3, 2025 8:53am
appkit-demo Ready Ready Preview Comment Sep 3, 2025 8:53am
appkit-gallery Ready Ready Preview Comment Sep 3, 2025 8:53am
appkit-laboratory Ready Ready Preview Comment Sep 3, 2025 8:53am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Sep 3, 2025 8:53am
appkit-basic-sign-client-example Ignored Ignored Sep 3, 2025 8:53am
appkit-basic-up-example Ignored Ignored Sep 3, 2025 8:53am
appkit-ethers5-bera Ignored Ignored Sep 3, 2025 8:53am
appkit-nansen-demo Ignored Ignored Sep 3, 2025 8:53am
appkit-vue-solana Ignored Ignored Sep 3, 2025 8:53am
appkit-wagmi-cdn-example Ignored Ignored Sep 3, 2025 8:53am
ethereum-provider-wagmi-example Ignored Ignored Sep 3, 2025 8:53am
next-wagmi-solana-bitcoin-example Ignored Ignored Sep 3, 2025 8:53am
vue-wagmi-example Ignored Ignored Sep 3, 2025 8:53am

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 fixes wallet filtering logic in the ApiController to properly handle webapp wallets on mobile devices, addressing a bug where webapp-only wallets were being incorrectly filtered out on mobile platforms.

  • Updated mobile wallet filtering to include wallets with webapp_link in addition to mobile_link
  • Simplified custom deeplink wallet logic to include all custom deeplink wallets regardless of chain
  • Updated test cases to verify the new filtering behavior and provide comprehensive coverage

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/controllers/src/controllers/ApiController.ts Modified _filterWalletsByPlatform to include webapp wallets on mobile and simplified custom deeplink wallet handling
packages/controllers/tests/controllers/ApiController.test.ts Added comprehensive test cases for the new filtering logic and updated existing tests
packages/ui/tests/UiHelperUtil.test.ts Added timezone specification to date test cases for consistency
.changeset/giant-lines-lie.md Added changeset documentation for the bug fix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/controllers/tests/controllers/ApiController.test.ts
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 19, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.33% 34855 / 44497
🔵 Statements 78.33% 34855 / 44497
🔵 Functions 76.09% 3838 / 5044
🔵 Branches 86.66% 8225 / 9491
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/controllers/src/controllers/ApiController.ts 94.75% 93.89% 85.45% 94.75% 100-101, 163, 219, 226-227, 423-431, 458, 472, 476, 480
Generated in workflow #14772 for commit 0989938 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Collaborator

@tomiir tomiir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will filter out special cases. We need to find a different solution

Copy link
Copy Markdown
Collaborator

@tomiir tomiir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore my prev review 🤣

@tomiir tomiir enabled auto-merge September 3, 2025 08:38
@tomiir tomiir added this pull request to the merge queue Sep 3, 2025
@tomiir tomiir removed this pull request from the merge queue due to a manual request Sep 3, 2025
@tomiir tomiir merged commit 8ba484f into main Sep 3, 2025
41 checks passed
@tomiir tomiir deleted the fix/show-webapp-wallets-on-mobile branch September 3, 2025 08:58
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