impress/app/views/wardrobe/items
Emi Matchu 8d728c84d1 [WV2] Add zone badges to search results
Show which zones each item occupies in search result cards. Zone badges appear as small, muted labels (e.g., "Background", "Hat", "Static") after the NC/NP and date badges. Items that occupy multiple zones show multiple badges.

Zone badges only appear in search results, not in outfit items, since outfit items are already grouped by zone which provides sufficient context.

Implementation:
- Created zones badge partial to render zone labels from item appearances
- Updated controller to load item appearances with zone data for search results
- Pass appearance data through the rendering chain (search_results → item_card → item_card_content)
- Added subtle CSS styling for zone badges (light gray background, gray text)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 20:54:00 -08:00
..
badges [WV2] Add zone badges to search results 2026-02-15 20:54:00 -08:00
_item_card.html.haml [WV2] Add zone badges to search results 2026-02-15 20:54:00 -08:00
_item_card_content.html.haml [WV2] Add zone badges to search results 2026-02-15 20:54:00 -08:00
_search_results.html.haml [WV2] Add zone badges to search results 2026-02-15 20:54:00 -08:00