Skip to content
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

fix: collectibles view quirks #73

Merged
merged 1 commit into from
Oct 22, 2024
Merged

fix: collectibles view quirks #73

merged 1 commit into from
Oct 22, 2024

Conversation

meeh0w
Copy link
Member

@meeh0w meeh0w commented Oct 18, 2024

no ticket, fixes for issues found during blue build testing (+ some additional quirks)

Fixed issues

  • the weird UI issue where ERC-1155 balances would show up bunched together before the images load
  • toggling visibility of NFTs (previously we would toggle based on NFT's address only, but it's possible to have multiple NFTs of the same address but different tokenId -- this resulted in hiding entire batches of NFTs when trying to hide a specific NFT)
  • the Collectibles tab appearing in grid view for a fraction of a second even if the user switched to list view (extension takes a moment to load the preferred state from storage)

Testing

Go to the Collectibles tab and play around

Checklist for the author

  • I've covered new/modified business logic with Jest test cases.
  • I've tested the changes myself before sending it to code review and QA.

Comment on lines +152 to +153
// We used to (wrongly) index by address only.
const isHidden = (visibility[key] ?? visibility[nft.address]) === false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a schema upgrade would be the best for this, but I don't think it's worth the effort (+ we don't have the tokenId in the current storage data anyway). After toggling once it "fixes itself" for all NFTs sharing a given address.

Copy link
Contributor

@vvava vvava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the previous one was a wrong account :D

@meeh0w meeh0w merged commit aedec29 into main Oct 22, 2024
4 of 5 checks passed
@meeh0w meeh0w deleted the fix/nft-quirks branch October 22, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants