1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers
Emi Matchu 3781c9810a Item search can filter by fitting alt styles (but missing many details!)
A query like this works for finding items containing "hat" that fit
alt style #87296 (the Faerie Acara):

http://localhost:3000/items?q%5B0%5D%5Bkey%5D=name&q%5B0%5D%5Bvalue%5D=hat&q%5B1%5D%5Bkey%5D=fits&q%5B1%5D%5Bvalue%5D%5Bspecies_id%5D=1&q%5B1%5D%5Bvalue%5D%5Bcolor_id%5D=8&q%5B1%5D%5Bvalue%5D%5Balt_style_id%5D=87296

But there's two main missing pieces still:
1. You can't do a text-filter version of this—in fact, clicking Search
   immediately on the page this loads will return an error!
2. We haven't extended this to the `with_appearances_for` parameter,
   so we add a `NotImplementedError` to that bit for now too.

I'm also thinking that the text filter should ideally be like,
`fits:nostalgic-faerie-acara` if we can pull it off; and then fall back
to the plainer `fits:alt-style-87296` if e.g. we don't know the set
it's from yet.
2024-02-27 14:32:54 -08:00
..
fundraising Move most fundraising files into a Fundraising module 2024-02-18 20:12:14 -08:00
alt_styles_controller.rb Read known_glitches when loading alt styles SWF assets 2024-02-24 16:31:05 -08:00
application_controller.rb Add mini profiler to each page 2023-10-27 19:38:49 -07:00
closet_hangers_controller.rb High-level caching for closet lists 2024-02-20 18:43:39 -08:00
closet_lists_controller.rb Use flash[:notice] instead of flash[:success] 2023-10-23 19:05:07 -07:00
contributions_controller.rb Migrate away from item translations in contributions 2024-02-20 15:52:10 -08:00
item_appearances_controller.rb Load item page restricted zones data from Rails app, not impress-2020 2023-11-11 08:49:19 -08:00
item_trades_controller.rb Oops, load the data for the bulk item quantity form on the trades page! 2024-01-21 06:42:24 -08:00
items_controller.rb Item search can filter by fitting alt styles (but missing many details!) 2024-02-27 14:32:54 -08:00
locales_controller.rb locale cookie should be long-term, not a session cookie 2013-01-24 18:24:33 -06:00
neopets_connections_controller.rb closet hangers index uses neopets connections dropdown 2014-01-18 22:50:14 -06:00
neopets_page_import_tasks_controller.rb Fix petpage etc import 2023-11-06 12:59:28 -08:00
outfits_controller.rb Migrate away from item translations in misc pages 2024-02-20 15:53:56 -08:00
pet_types_controller.rb Remove unused /colors/pet_types route 2024-02-24 15:51:40 -08:00
pets_controller.rb Migrate away from item translations in misc pages 2024-02-20 15:53:56 -08:00
sitemap_controller.rb Migrate away from item translations in misc pages 2024-02-20 15:53:56 -08:00
static_controller.rb yum, new campaigns 2015-08-05 19:26:12 -04:00
users_controller.rb Use flash[:notice] instead of flash[:success] 2023-10-23 19:05:07 -07:00