fix: api controller wallet filtering on mobile#4872
Conversation
🦋 Changeset detectedLatest commit: 0989938 The changes in this PR will be included in the next version bump. This PR includes changesets to release 25 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 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_linkin addition tomobile_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.
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
tomiir
left a comment
There was a problem hiding this comment.
This will filter out special cases. We need to find a different solution
Description
Fix filtering of wallets on ApiController to allow webapp wallets in mobile.
Type of change
Associated Issues
For Linear issues: Closes DAS-736
Checklist