-
Notifications
You must be signed in to change notification settings - Fork 635
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
Implement NFTs V2 Arc endpoint #5973
Conversation
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.
looks pretty good, just minor comments. i saw a few places where we're relying on react query's isFetching
- just want to double check that that's what we want vs. isLoading
. also i noticed in your screenshot that the height of the "Collect Now" button is messed up
src/components/asset-list/RecyclerAssetList2/NFTLoadingSkeleton.tsx
Outdated
Show resolved
Hide resolved
src/components/asset-list/RecyclerAssetList2/core/useMemoBriefSectionData.ts
Outdated
Show resolved
Hide resolved
Yeah I played around with this a bit and think isLoading would remove the data on pull to referesh whereas isFetching wouldn't. I think that's the behavior we want. |
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.
It takes a second or two for the context menu text to switch from one option to the other. It should switch immediately after the user makes the selection even if the data is still loading. not sure what's causing the lag
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-09.at.16.49.06.mp4
…@matthew/fix-nfts-stuff
this is fixed now |
Fixes APP-1594
What changed (plus any additional context for devs)
The major part of this PR includes consuming a new and faster nftV2 endpoint from Arc that @welps wrote. This cuts down nft fetching time by about 3x on average. There are still improvements to be made to it, but at least with his endpoint in, accounts with large amounts of NFTs should be able to see their collectibles again.
Other minor changes included removing the check or if the NFT section was empty, instead we now show an empty state and allow the user to peek through to the featured mint section if they wish to collect.
We needed to remove the check to remove the NFT section on empty because the NFT endpoint now fetches and sorts from the backend, so each time the user changed the sort method the Collectibles header would disappear.
We also now have a skeleton loader for when the NFT fetch is in-flight and no data is present. This helps let the user know that their collectibles are loading instead of just removing the section altogether.
Screen recordings / screenshots
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-08-01.at.09.58.17.mp4
What to test