Add token items for NC Pet Styles #28
Loading…
Reference in a new issue
No description provided.
Delete branch "armin-bot/impress:claude/style-token-items"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
People have long asked to search for NC Pet Style "token" items and add them to their lists. Tokens aren't wearable, so they never show up in modeling data, and we've had no rows for them.
It turns out we already have what we need: a style's ID is its token's item ID (it's the
oiithe Styling Studio gives us, and itemdb matches tokens to our styles the same way), and the Styling Studio import already records the token's name and thumbnail on the style.What this does
AltStyleis saved, we create or update anItemwith the same ID, using the style's full name and thumbnail. That covers the Styling Studio import, the support edit form, and any future source of labels. The item's "first seen" date is the style's.is:stylesearch filter (and-is:style).rake alt_styles:sync_token_itemsto backfill.Tokens are ordinary items otherwise, so lists, trades, the item API, NC trade values and the newest-items lists pick them up with no further changes.
Things to know
itemstable directly. I haven't checked how its item page and search treat a row with no assets.After deploying
Testing
Model specs cover creation, renaming, the wearable-ID guard, modeling status and search. I also ran the backfill task and loaded the item page, trades page, JSON and search against a seeded style in dev.
🤖 Generated with Claude Code
https://claude.ai/code/session_014PWWd1ky1PrtZvpAv7vhe6