fix: mobile popup blocking and improve fund wallet ux#4880
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
11 Skipped Deployments
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes mobile popup blocking issues and improves the fund wallet user experience by updating the popup creation mechanism and adding real-time balance updates.
- Replaced
CoreHelperUtil.openHrefwithCoreHelperUtil.returnOpenHrefto avoid mobile popup blocking - Added automatic balance updates after successful deposits
- Updated API URL construction to include SDK metadata in query parameters
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/scaffold-ui/src/views/w3m-deposit-from-exchange-view/index.ts | Added balance update after successful deposit completion |
| packages/controllers/src/controllers/ExchangeController.ts | Updated popup creation to use returnOpenHref method to avoid blocking |
| packages/controllers/src/controllers/ConnectionController.ts | Added updateBalance method to trigger balance refresh |
| packages/controllers/src/utils/ExchangeUtil.ts | Refactored URL construction to use URL API and moved SDK parameters to query string |
| packages/controllers/tests/utils/ExchangeUtil.test.ts | Updated tests to include SDK metadata in URL expectations |
| packages/controllers/tests/controllers/ExchangeController.test.ts | Updated test to use new popup creation mechanism |
| .changeset/violet-rivers-pump.md | Added changeset documentation for the fix |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
Fixed an issue where fund wallet popup was blocked on mobile, updated balance realtime and improved ux
Type of change
Associated Issues
For Linear issues: Closes APKT-3610,APKT-3613,APKT-3607,APKIT-3611
Checklist