metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

[ENHANCEMENT] Favorite Collectibles

Open gantunesr opened this issue 4 years ago • 9 comments

Description

This development simplifies the Collectibles Favorite logic by adding a favorites property to the CollectibleMetadata object in the controllers.

⚠️ Blockers

  • ~PR #3380~
  • ~PR #3638~

Tasks

  • [x] Remove previous favorite code.
  • [x] Add controllers update
  • [x] Update tests
  • [x] Update snapshots (if necessary)
  • [x] Update controllers version

QA Test Case

  1. Upgrade the app from the previous release commit to this version and ensure that the favorites feature behaves as expect.
  2. Favorites feature as expected, there should be no changes in the behaviour.

References

gantunesr avatar Nov 04 '21 01:11 gantunesr

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

github-actions[bot] avatar Dec 02 '21 14:12 github-actions[bot]

Let's clear the conflicts

Cal-L avatar Feb 04 '22 18:02 Cal-L

@Cal-L addressed your comments in f69c6e0 and de37439

gantunesr avatar Feb 08 '22 19:02 gantunesr

Scenario: Upgrade the app from the previous release commit to this version and ensure that the favorites feature behaves as expect.

Given I have multiple NFT's in my MetaMask mobile wallet And I have some NFT's as favorite When I upgrade MetaMask mobile And I navigate to Wallet And I tap NFT's tab Then all my NFT's are displayed And my NFT favorites are the same before upgrade When I add another NFT to favorites Then favorites list is displayed with recently favorited NFT When I remove an NFT from favorites Then favorites list is displayed without recently removed favorite NFT

This scenario is PASSED.

chrisleewilcox avatar Apr 08 '22 22:04 chrisleewilcox

NFT's images/content is not displaying. Will write up another issue to deal with it separately.

chrisleewilcox avatar Apr 08 '22 22:04 chrisleewilcox

Seeing an error after building and launching app on Android device. image

https://recordit.co/JnggvKA6mx

Last time I ran into this issue I updated branch with main, rebuild and launch on android device. Branch is again out of sync with main. Will re-sync branch with main and try again.

UPDATE: updated main branch build to this PR branch and was able to reproduce the error above. This did not seem to cause any further issues. I was able to test the scenario described above and import NFTs on Rinkeby.

chrisleewilcox avatar Jun 14 '22 21:06 chrisleewilcox

Does this need to be tested with TestFlight and release apk from Bitrise?

chrisleewilcox avatar Jun 17 '22 15:06 chrisleewilcox

Conflict needs to be resolved. Also, we need determine if this can only be tested properly with a TestFlight or Bitrise build. If this can be tested in another way please advise.

chrisleewilcox avatar Jul 07 '22 18:07 chrisleewilcox

@chrisleewilcox I'll provide the test bitrise builds today

gantunesr avatar Jul 11 '22 13:07 gantunesr

I will remove the needs QA label on this guy for now. @gantunesr can you handle the merge conflicts and update this branch one last time?

cc @sethkfman

cortisiko avatar Dec 16 '22 15:12 cortisiko

Stalled

gantunesr avatar Feb 01 '23 16:02 gantunesr