62

Singular render/data display priorities and database indexing issues

  • Live

Avatar
Adam Steeber

Some NFTs are not rendering properly or not at all. I was told this is an indexing issue but I'm really not sure. Examples can be found in this collection:

singular.app/collections/32b258d8-DXD

Also, I noticed that when you visit an NFT's page that is equipped to another NFT it renders the slot resource even if there is a mediaUri field in the metadata. I've been using the "mediaUri" key for catalog images in off-chain metadata. Here are my thoughts:

When visiting an NFT's page, the image that should appear should be determined as follows:
-The highest priority resource that does not contain a slot value and has a src or base value should render the src or base
-If there is no such resource, the off-chain metadata mediaUri value should render
-If all of the above are absent, then the highest priority resource should render its src value, regardless of whether it contains a slot value.
-If all of these are absent, the NFT should render nothing, even if a thumbnailUri is present (i.e. unrevealed)

The "name" and "description" that should display on an NFT's page should be as follows:
-Even if there is a top priority resource with a name value and a description value, these should not display as the NFT's name and description. This is because the name and description of a resource is not necessary the name and description of the NFT itself. Resource names and descriptions should only display in the resources pop-up.
-If an NFT has no metadata values for name and description, the highest priority resource's name and description should display as the NFT's name and description.

Thumbnails for child NFTs should display in their parent NFT's inventory pop-up as follows:
-If there is an on-chain thumb value in a resource that is compatible with the parent, that thumbnail image should display in the inventory pop-up
-If there is a thumbnailUri value in the off-chain metadata of a resource that is compatible with the parent, then that thumbnail image should display in the inventory pop-up if an on-chain thumb value is absent.
-If there is neither an on-chain thumb value in a resource nor a thumbnailUri in the resource's metadata, the child NFT's metadata thumbnailUri should display in the parent NFT's inventory.
-If none of the above are present, then the highest priority compatible resource slot src should render as the thumbnail, sized appropriately.
-If that is absent, then the child NFT's metadata mediaUri value should display as the thumbnail in the parent NFT's inventory.

In general (i.e. when viewing outside of an inventory pop-up), NFT thumbnails should display as follows:
-If an NFT has an on-chain thumb value or an off-chain thumbnailUri, one of these should display instead of resource thumbnails. This is because a resource is not necessary the NFT.
-If an NFT does not have any of the above in their MINT extrinsic, then the highest priority resource's on-chain thumb value should display as the thumbnail image. If this is absent, then the thumbnailUri in the resource's metadata should display.
-If an NFT has none of the above, then the mediaUri should display as the thumbnail, sized appropriately.
-If there is no off-chain mediaUri the highest priority resource base or src should render as the thumbnail, sized appropriately.

I hope that all makes sense and is consistent with the spec. Please let me know if anything is unclear and I will attempt to be more explicit/ provide examples.

Thank you very much!
Adam

A

Activity Newest / Oldest

R

RMRK Team

Status changed to: Live

Avatar

michael newman

Team RMRK please fix svg issues


  • Avatar
R

RMRK Team

Please create separate Upvoty ticket with more details about SVG issues.


  • Avatar
Avatar

Adam Steeber

The Dino NFTs are not SVGs, they are PNGs.


  • Avatar
R

RMRK Team

Status changed to: Under review

R

RMRK Team

We investigated the issue and there were some conflicting ids in parts to resources mappings. Some rules were relaxed and RESADD was processed.
Let us know if it's any better now.


  • Avatar
  • Avatar
Avatar

Adam Steeber

Wonderful! The composable base resources are now rendering properly! Thank you!

The descriptions aren't as important but it would be nice if the "description" in the NFT's metadata is used on the NFT's page instead of using the "description" in the base resource's metadata (see images).


Avatar

Adam Steeber

Additionally, there are dedicated item thumbnails that should be used when a user is viewing a parent NFT's inventory (see images). These thumbnail images are referenced in the items' "thumbnailUri" metadata field.

Similarly, when viewing a child NFT's page, if there is a "mediaUri" for that NFT in its metadata and the NFT only has slot resources, that mediaUri should display instead of the slot resource.


R

RMRK Team

can you link this NFT please


R

RMRK Team

Status changed to: In progress