impress-2020/pages
Matchu cc9a540cec Fix Juppie Swirl bug in /api/validPetPoses
Oops, the new Juppie Swirl color has ID 114, and there's no released color #113 yet. But our `/api/validPetPoses` code, when deciding how large to make the byte array, uses the _number_ of colors in the database.

This meant that, when Juppie Swirl was released, there wasn't a 114th slot allocated, and the loop stopped at color ID #113—so the new Juppie Swirl color #114 wasn't included in the results. This made it impossible to select Juppie Swirl as a starting color. (You could, however, model a Juppie Swirl Chia, and the wardrobe would load it successfully; and you would see the color/species picker with the correct options selected, but in a red "invalid" state.)

Now, we instead use the largest ID in the database to determine the size of the array. This means Juppie Swirl is now included correctly!

There would be network perf implications if the color IDs were a sparser space, but it's dense enough to be totally fine in practice. (But let's not release an April Fools color #9999 or anything!)
2022-02-23 00:01:10 -08:00
..
api Fix Juppie Swirl bug in /api/validPetPoses 2022-02-23 00:01:10 -08:00
outfits [WIP] Use Next.js for outfit page SSR 2021-11-01 23:03:19 -07:00
[[...slug]].tsx [WIP] Run cra-to-next codemod to be on Nextjs 2021-11-01 21:49:23 -07:00
_app.tsx [WIP] Run cra-to-next codemod to be on Nextjs 2021-11-01 21:49:23 -07:00
_document.tsx [WIP] Run cra-to-next codemod to be on Nextjs 2021-11-01 21:49:23 -07:00