Skip to content

Support ordered main traits#63

Open
Snepsid wants to merge 1 commit into
Ethereum-Phunks:developmentfrom
nakamingos:feature/main-traits-priority
Open

Support ordered main traits#63
Snepsid wants to merge 1 commit into
Ethereum-Phunks:developmentfrom
nakamingos:feature/main-traits-priority

Conversation

@Snepsid
Copy link
Copy Markdown

@Snepsid Snepsid commented May 15, 2026

Summary

Adds support for mainTraits as an ordered list instead of a single mainTrait.

This lets collections define fallback traits for the item header rarity display. For example, a collection can use Type first, but fall back to Name for special items that do not have a Type trait, without making Name filterable or muddying up trait counts.

Changes

  • Migrates collections.mainTrait to collections.mainTraits text[]
  • Updates collection preview RPCs to return mainTraits
  • Updates frontend collection model
  • Updates the existing main trait promotion behavior to support ordered main traits
  • Updates item view “One of X” display to use the first available configured main trait
  • Falls back to Name when no main traits are configured

Testing

  • Ran marketplace build successfully

@Snepsid Snepsid force-pushed the feature/main-traits-priority branch from 2cef03c to 8abd29a Compare May 15, 2026 02:06
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.

1 participant