impress-2020/src/app/components
Matchu 43ae248e87 Migrate /items/[itemId] to Next routing
The tricky part here was that `returnPartialData` seems to behave differently during SSR. On the page itself, this seems to cause us to always get back at least an empty object, but in SSR we can sometimes get null—which means that a LOT of code that expects the item object to exist while in loading state gets thrown off.

To keep this situation maximally clear, I added a bunch of null handling with `?.` to `ItemPageLayout`. An alternative would have been to check for null and put in an empty object if not, but this feels more resilient and more true to the situation.

The search bar here is a bit tricky, but is pretty straightforwardly adapted from how we did the layouts in App.js. Fingers crossed that it works as smoothly as expected when the search page is migrated too! (Right now typing in there is all messy because it hops over to the fallback route and does its whole separate thing.)
2022-09-14 22:26:59 -07:00
..
HangerSpinner.js fix large-icon visual bug 2021-01-04 03:11:55 +00:00
HTML5Badge.js Handle OFFICIAL_SWF_IS_INCORRECT for pet layers 2021-08-14 16:46:05 -07:00
ItemCard.js Migrate /items/[itemId] to Next routing 2022-09-14 22:26:59 -07:00
ItemSearchPageToolbar.js Migrate /items/[itemId] to Next routing 2022-09-14 22:26:59 -07:00
LoginModal.js Account creation is ready! 2022-09-13 21:11:48 -07:00
MarkdownAndSafeHTML.js Add underline to item list description links 2021-09-06 14:08:43 -07:00
OutfitMovieLayer.js [WIP] Migrate /internal/assetImage to Next routing 2022-09-14 19:27:48 -07:00
OutfitPreview.js [WIP] Fix bug loading movies 2021-11-02 00:11:23 -07:00
OutfitThumbnail.js Use standard image URLs on Your Outfits page 2021-09-03 15:37:38 -07:00
PaginationToolbar.js [WIP] Migrate /your-outfits to Next.js routing 2022-09-14 21:55:03 -07:00
SpeciesColorPicker.js Stop passing null value in SpeciesColorPicker 2021-11-01 16:19:17 -07:00
SquareItemCard.js [WIP] Add lint exceptions for <img> tags 2021-11-02 00:55:21 -07:00
useCurrentUser.js Oops, fix mistakes turning on experimental log 2022-09-14 18:12:34 -07:00
useOutfitAppearance.js Move getVisibleLayers to a new shared directory 2021-05-13 17:35:58 -07:00
WIPCallout.js [WIP] Fix app images in Next.js 2021-11-02 00:50:39 -07:00