New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TEAM1-47] Hidden NFTs #3659
[TEAM1-47] Hidden NFTs #3659
Conversation
TEAM1-47 [Hide NFTs] Read remote data and filter hidden NFTs in-app
Should filter hidden NFTs into a separate "Hidden" collection that is collapsed by default. Only the account owner should be able to see this collection. |
7be8b83
to
9d81b32
Compare
9d81b32
to
f44ca32
Compare
I would use here MMKV tbh |
@osdnk agreed, we should move everything to MMKV when we can. There are other issues with the showcase/hidden (web data) functionality e.g. network switching, read-only wallet behavior, privacy settings handling, and I think we can wait to migrate things until we have better patterns in place for those things. The intention here is to copy existing functionality to reduce the chance of bugs. |
@@ -31,6 +33,7 @@ export default React.memo(function WrappedTokenFamilyHeader({ | |||
familyImage={image} | |||
isOpen={isFamilyOpen} | |||
onPress={handleToggle} | |||
testID={testID} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing this through to the root component
src/components/asset-list/RecyclerAssetList2/core/RowRenderer.tsx
Outdated
Show resolved
Hide resolved
if (isHiddenAsset) { | ||
removeHiddenToken(asset); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pattern removes from Showcase if it's added to Hidden, and vice versa.
src/components/expanded-state/unique-token/UniqueTokenExpandedStateHeader.tsx
Outdated
Show resolved
Hide resolved
Tested on Android locally with my latest commits — looks good to me 👍 |
4fa24e1
to
fb14fd7
Compare
/testflight |
fb14fd7
to
79a75e8
Compare
4d47017
to
e7daad2
Compare
/testflight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏎️
This reverts commit d494781.
Removed toasts, sheet now hides instead: Simulator.Screen.Recording.-.iPhone.11.-.2022-08-03.at.14.50.24.mp4 |
/testflight |
Fixes: RNBW-47
Designs: https://www.figma.com/file/ltTsiWrgEbHvuqeDucwSiM/Hide-NFTs?node-id=3%3A389
What changed (plus any additional context for devs)
Adds the ability to hide an NFT from the overflow menu on the single token expanded view. This PR contains code that's essentially a copy of our Showcase functionality.
TODO
PoW (screenshots / screen recordings)
Wallet owner interactions:
https://user-images.githubusercontent.com/4732330/179275050-16e7015f-2605-459f-9d7d-a30404b33d1b.mp4
Read-only wallet interactions:
https://user-images.githubusercontent.com/4732330/179275087-06d868e6-1744-439b-9916-01cb7df5b7da.mp4
Dev checklist for QA: what to test
How to test locally
API is live, so you can test this without running Firebase emulators locally.
Final checklist