1
0
Fork 0
forked from OpenNeo/impress
impress/app/javascript/wardrobe-2020
Emi Matchu 578528f468 Better handling for items in different zones with the same name
Specifically, I was looking at the new "Stormy Cloud Kacheek" items,
and was surprised to find that, in the outfit editor, they all get
grouped under "Markings" (and therefore the UI treats them as
mutually-exclusive via hidden radio button and only bolds one at a
time), but they aren't actually conflicting because they occupy
different zones named "Markings".

In this change, we make the zone groups actually just be *by zone*
rather than jumbling all of the zones with the same label together; but
in most cases, we still keep the same simplified display. In the case
of the "Stormy Cloud Kacheek" items though, we now get a few groups:
`Glasses`, `Markings (#6)`, and `Markings (#16)`. Glasses is chosen
by coincidence because it's the first zone label for that item
alphabetically (even though that item also occupies a third "Markings"
zone), and then the other two know to disambiguate from each other.

There's an opportunity here to cheat things further, like to
*intentionally* select items like "Glasses" that are less ambiguous
when possible. I'm not aware of enough other cases like this for that
to really matter, though, so I'm just leaving it as-is!

I tested this a *bit* on other outfits, and everything looked fine at
a glance, so I'm just moving forward—but I'll make an announcement to
ask people to help take a look!
2024-02-01 03:14:00 -08:00
..
components Display alt styles in outfit editor when selected 2024-01-30 07:01:03 -08:00
images Show alt style name in the pose picker button when selected 2024-01-30 05:55:19 -08:00
ItemPage Load item compatibility data from the Rails app, not impress-2020 2023-11-11 08:15:10 -08:00
loaders Add SVG support to alt styles 2024-01-31 03:02:19 -08:00
WardrobePage Better handling for items in different zones with the same name 2024-02-01 03:14:00 -08:00
apolloClient.js Optionally use local instance of impress-2020 during development 2024-01-28 07:00:29 -08:00
AppProvider.js Remove unused initialCacheState code from wardrobe-2020 2023-11-03 18:16:57 -07:00
impress-2020-config.js Add support_staff flag to user record; they can use Support tools 2024-01-29 04:21:19 -08:00
index.js Remove the item page drawer, just link to the item page instead 2023-11-03 16:56:51 -07:00
ItemPageOutfitPreview.js Oops, fix species name in zones tooltip 2023-11-11 11:57:43 -08:00
util.js Optionally use local instance of impress-2020 during development 2024-01-28 07:00:29 -08:00