impress/app/javascript/wardrobe-2020
Emi Matchu dc44b4dbb3 Oops, fix bug with saving outfits of pets loaded from Neopets.com
Okay right, the wardrobe-2020 app treats `state` as a bit of an
override thing, and `pose` is the main canonical field for how a pet
looks. We were missing a few pieces here:

1. After loading a pet, we weren't including the `pose` field in the
   initial query string for the wardrobe URL, but we _were_ including
   the `state` field, so the outfit would get set up with a conflicting
   pet state ID vs pose.
2. When saving an outfit, we weren't taking the `state` field into
   account at all. This could cause the saved outfit to not quite match
   how it actually looked in-app, because the default pet state for
   that species/color/pose trio could be different; and regardless, the
   outfit state would come back with `appearanceId` set to `null`,
   which wouldn't match the local outfit state, which would trigger an
   infinite loop.

Here, we complete the round-trip of the `state` field, from pet loading
to outfit saving to the outfit data that comes back after saving!
2024-02-08 09:51:31 -08:00
..
components Skip rendering layers without a usable image 2024-02-01 08:55:42 -08:00
images Use hourglass icon for Retired UCs 2024-02-01 06:48:40 -08:00
ItemPage Load item compatibility data from the Rails app, not impress-2020 2023-11-11 08:15:10 -08:00
loaders Oops, fix bug with saving outfits of pets loaded from Neopets.com 2024-02-08 09:51:31 -08:00
WardrobePage Make the Alt Styles list less tall on large screens 2024-02-01 07:34:39 -08:00
apolloClient.js Filter by Alt Style in item search and item appearance API calls 2024-02-01 04:58:30 -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