Add sharable purchase flex card behind sharable_purchase flag#799
Merged
Conversation
After checkout, buyers get a square 1200x1200 "I bought a ___ on Stardance" social image they can copy or download from the My Orders page. The card is drawn by the existing libvips OG pipeline using the brand carousel art (moon, star mascot, Hack Club pennant) exported from the Figma design, with the item's attached image and the buyer's @Profile URL composited in. - OgImage::ShopOrderFlex renderer + preview harness entries - OgImage::Base: canvas size now resolves per subclass (square support) - Owner-only PNG endpoint at /shop/orders/:order_id/flex_image - Share module on My Orders for fresh orders: Copy image / Download PNG - Everything gated by the sharable_purchase Flipper flag
…ength font sizing, and nil shop_item - Run Prettier on share_purchase_controller.js (failing Prettier JS/TS CI) - find_sharable_order: skip rejected/refunded orders via worth_counting scope - item_font_size: size off the pre-escape name length, not the escaped string - draw_flex_text: rescue/log like the other placement steps so a nil shop_item degrades instead of 500ing the endpoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After checkout, buyers get a square 1200x1200 "I bought a ___ on Stardance" social image they can copy or download from the My Orders page. The card is drawn by the existing libvips OG pipeline using the brand carousel art (moon, star mascot, Hack Club pennant) exported from the Figma design, with the item's attached image and the buyer's @Profile URL composited in.
OgImage::ShopOrderFlexrenderer + preview harness entriesOgImage::Base: canvas size now resolves per subclass (square support)/shop/orders/:order_id/flex_imagesharable_purchaseFlipper flagSupersedes #735 (rebuilt on current main).