1
0
Fork 1
impress/config
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  (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
..
environments
initializers Remove asset_hosts initializer 2024-02-24 15:05:37 -08:00
locales Item search can filter by fitting alt styles (but missing many details!) 2024-02-27 14:32:54 -08:00
application.rb
basic_type_hashes.yml
boot.rb Upgrade to Rails 7.0.6 2023-10-23 19:05:07 -07:00
cable.yml Upgrade to Rails 6.0.6.1 2023-10-23 19:05:06 -07:00
credentials.yml.enc
database.yml
environment.rb
locale_meta.yml
routes.rb Remove unused /colors/pet_types route 2024-02-24 15:51:40 -08:00
storage.yml