MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.18k stars 1.12k forks source link

feat(ramp): enable buy button in asset overview #12396

Open wachunei opened 3 days ago

wachunei commented 3 days ago

Description

This PR adds the buy button to the Token (AssetOverview) page, using the Ramp Intent parameters to optimistically open the Buy flow with the token selected. The Buy button will show if the network is supported.

Happy Path / Optimistic case description:

Given:

Then:

Other cases:

Related issues

Fixes:

Manual testing steps

  1. Go to Token page
  2. Click on the Buy button

Screenshots/Recordings

Before

No Buy button

https://github.com/user-attachments/assets/7f32aa08-7fda-4cdb-b49b-a2ea5f2a7223

After

Happy Path

https://github.com/user-attachments/assets/0f52cc48-af01-45cb-bc07-503fbcf82d62

Token unavailable (default token is selected)

https://github.com/user-attachments/assets/578fbbbd-e39a-4c79-981e-6139ef7cfef4

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 3 days ago

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: be7c8187872c7b5f0cc43840d3499d56b846a51d Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ecc227aa-7fef-4311-8ad0-133f14cc26a6

[!NOTE]

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request
github-actions[bot] commented 3 days ago

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 2de74a0af3400762e58c4c17cec9d1aa6fe77b39 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ccee4fa6-3988-42ea-b61c-9f7ed2a76817

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request
github-actions[bot] commented 3 days ago

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 1cbd3bfe0be368a5cd80bd6f8a37cc59bbe62fc0 Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/46007726-deeb-4096-9633-a3084146675e

[!NOTE]

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request
sonarcloud[bot] commented 3 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
80.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud