1
0
Fork 0
forked from OpenNeo/impress
impress/spec
Emi Matchu 97ffffb67a Add configurable full name field to alt styles
Sigh, the "Valentine Plushie" series is messing with me again! It
doesn't follow the previously established pattern of the names being
"<series> <color> <species>", because in this case the base color is
considered "Valentine".

Okay, well! In this change we add `full_name` as an explicit database
field, and set the previous full name value as a fallback. (We also
extract the generic fallback logic into `ApplicationRecord`, to help us
express it more concisely.)

We also tweak `adjective_name` to be able to shorten custom `full_name`
values, too. That way, in the outfit editor, the Styles options show
correct values like "Cherub Plushie" for the "Cherub Plushie Acara".

I also make some changes in the outfit editor to better accommodate the
longer series names, to try to better handle long words but also to
just only use the first word of the series main name anyway. (Currently,
all series main names are one word, except "Valentine Plushie" becomes
"Valentine".)
2025-02-15 21:52:47 -08:00
..
fixtures Use PetType's created_at to predict who an item might be compatible with 2024-11-19 16:41:50 -08:00
models Add configurable full name field to alt styles 2025-02-15 21:52:47 -08:00
services Fix bug parsing discount time when importing from NC Mall 2025-01-18 10:49:04 -08:00
support Add failing test for modeling bug where we break existing connections 2024-11-06 14:08:32 -08:00
rails_helper.rb Move modeling tests to RSpec 2024-10-21 16:03:58 -07:00
spec_helper.rb Use alias they in specs instead of it, when it reads better 2024-10-25 13:38:02 -07:00