Add an NC Pet Styles mode to wardrobe search #38
Loading…
Reference in a new issue
No description provided.
Delete branch "armin-bot/impress:claude/pet-styles-search"
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?
Adds an NC Pet Styles mode to wardrobe search. The pose picker's Styles tab opens right over the pet, so the style you hover to preview is hidden behind the popover you're hovering in. In search, the preview pane stays uncovered.
Screenshots
Phone width
What changes for users
The pose picker's Styles tab is unchanged for now. Step 3 of the plan slims it to a row that opens this mode.
Under the hood
filterToItemKind: "STYLE"is the new query value. In that mode, zone and own/want suggestions are hidden, and the style suggestion is hidden while those filters are set. Own/want for styles is a later follow-up.SearchPanelrenders the newStyleSearchResultsforSTYLE, which filters the species' styles in the browser from the same/species/:id/alt-styles.jsonthe wardrobe already loads. No server change.previewAltStyleIdmoved fromWardrobePreviewAndControlsup toWardrobePage, so search and the pose picker share it.<New?>placeholder. Their tiles show the style's name instead.Testing
yarn lintand Prettier are clean. There's no JS test runner, so I checked these in Chromium against a local server with public data, using a Faerie Aisha (143 styles):style=lands in the URL), the pill goes away, and the picker button reads "Fluttering".A fresh-eyes review pass found the keyboard and layout issues above, now fixed. Not yet checked: a screen reader, and Firefox. (Space-to-remove has a guard for browsers that click on keyup, but I could only test Chromium.)
🤖 Generated with Claude Code
https://claude.ai/code/session_014PWWczDoFB58ZYFZ68WxeS
c737333c4f15ac44c855