Show the style itself on style tokens' item pages #29

Merged
matchu merged 2 commits from armin-bot/impress:claude/style-token-item-page into main 2026-11-16 19:59:16 -08:00
Contributor

Builds on #28 (this branch includes its commit, so the diff here shows both until that one merges).

Style tokens aren't wearable, so the normal item page would show a bare pet with a species picker and empty zone info. This gives them their own preview instead.

What this does

  • Shows the style the token unlocks, using the same outfit viewer as other item pages, with "Customize more" opening the wardrobe on that style.
  • Replaces the species picker and zone info with a short explanation and links: try it in the wardrobe, items that fit the style, all styles for the species, all styles in the series.
  • Writes a description ("This token unlocks the Nostalgic Alien style for your Aisha.") when we don't have the token's real one.
  • Hides the DTI 2020 link for tokens.

The header, lists form and trades tabs are unchanged.

Screenshots

Desktop:

Token item page on desktop

Phone:

Token item page on a phone

Testing

A view spec covers the preview layers, both description cases and the links. Checked in a browser at desktop and phone widths.

🤖 Generated with Claude Code

https://claude.ai/code/session_014PWWd1ky1PrtZvpAv7vhe6

Builds on #28 (this branch includes its commit, so the diff here shows both until that one merges). Style tokens aren't wearable, so the normal item page would show a bare pet with a species picker and empty zone info. This gives them their own preview instead. ## What this does - Shows the style the token unlocks, using the same outfit viewer as other item pages, with "Customize more" opening the wardrobe on that style. - Replaces the species picker and zone info with a short explanation and links: try it in the wardrobe, items that fit the style, all styles for the species, all styles in the series. - Writes a description ("This token unlocks the Nostalgic Alien style for your Aisha.") when we don't have the token's real one. - Hides the DTI 2020 link for tokens. The header, lists form and trades tabs are unchanged. ## Screenshots Desktop: ![Token item page on desktop](https://code.openneo.net/attachments/017647f1-9fb3-48bc-9ba5-c18e6dcc29e9) Phone: <img src="https://code.openneo.net/attachments/9264c1ea-9fcf-4c0c-9678-618a7a8289b6" width="390" alt="Token item page on a phone"> ## Testing A view spec covers the preview layers, both description cases and the links. Checked in a browser at desktop and phone widths. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014PWWd1ky1PrtZvpAv7vhe6
Add token items for NC Pet Styles
All checks were successful
CI / rspec (pull_request) Successful in 3m25s
CI / deploy (pull_request) Has been skipped
ec77ead038
Each Pet Style has a "token" item on Neopets.com, which people want to
search for and add to their trade lists. Tokens aren't wearable, so we
never see them in modeling data. But a style's ID *is* its token's item
ID, and the Styling Studio import already tells us the token's name and
thumbnail, so we can create the item ourselves.

Now, whenever a labeled alt style is saved, we create or update an Item
with the same ID. Tokens count as fully modeled, don't fit any pet (so
they stay out of wardrobe search), and can be filtered with `is:style`.

The Styling Studio import saves every style it sees, so it will create
tokens going forward. To backfill the rest after deploying, run
`rake alt_styles:sync_token_items`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWd1ky1PrtZvpAv7vhe6
Show the style itself on style tokens' item pages
All checks were successful
CI / rspec (pull_request) Successful in 3m21s
CI / deploy (pull_request) Has been skipped
b33b4ecbab
Style tokens aren't wearable, so the usual item preview (a pet wearing
the item, a species picker, zone info) doesn't make sense for them, and
would just show a bare pet.

Instead, we show the style the token unlocks, with a short explanation
and links to try it in the wardrobe, find items that fit it, and browse
related styles. We also write our own description when we don't have
the token's real one, and skip the DTI 2020 link.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWd1ky1PrtZvpAv7vhe6
matchu merged commit 70239197bd into main 2026-11-16 19:59:16 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenNeo/impress!29
No description provided.