Show matching NC Pet Styles on a shelf above item search results #43
Loading…
Reference in a new issue
No description provided.
Delete branch "armin-bot/impress:claude/style-shelf"
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?
Step 4 of the NC Pet Styles plan: when an item search matches some styles, a shelf above the results shows them. This replaces the blue "check the emotion picker" hint.
Screenshots
Phone width
What changes for users
Under the hood
SearchResultsdoes the style matching itself, so it knows whether there's a shelf. With one,firstSearchResultRefgoes on the shelf's worn (or first) tile, and the first item and the shelf point at each other for Up and Down.StyleShelfrenders only as many tiles as fit. It measures before the first paint and follows resizes with aResizeObserver, so no tile is hidden from the keyboard.matchesQueryinStyleTiles.jsnow always matches word starts.SearchNCStylesHintandgetSearchNCStylesMessage.Testing
yarn lintand Prettier are clean. In Chromium against a local server with public data (Faerie Aisha, 143 styles):A fresh-eyes review pass found the wrapping arrow keys, the mismatched counts, the lost focus after See all, and a one-frame flash of extra tiles. All are fixed in the last commit.
🤖 Generated with Claude Code
https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS
Now that NC Pet Styles have a home in search, the PosePicker doesn't need its own Styles tab, which opened right over the pet you were previewing. - With no style worn, the popover shows the expressions, then an "NC Pet Styles" row with the species' style count. The row closes the popover and opens the NC Pet Styles search, with the cursor in the field. - With a style worn, the popover shows that style instead, with "Change style" (to the search) and "Remove", plus a note that styles come with their own expression. - The outfit list starts with an "NC Pet Style" group when one is worn: the token's thumbnail, the style's full name, NC and Pet Style badges, and Change, Remove and More info actions. For the full name ("Nostalgic Faerie Aisha"), the alt styles JSON now includes `full_name`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS2336166253a261dd3b35