Repository navigation
feat(rsi): add store SKUs, upgrades and buy-backs to the RSI cart - #182
Merged
Merged
Conversation
3 of 5 tasks
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.
Adds an
addToCartaction, so Fleetyards' hangar planner can put its buy list into the RSI cart (fleetyards/fleetyards#6409).What changed
addToCarttakes up to 50 items, each a store SKU, an upgrade (from the store, or bought back when it names a pledge) or a buy-back. Items are named by numeric ids only, and anything else gets a 400.csrf-tokenmeta tag on the cart page.unavailable,buybackInvalid,buybackNotAloneorfailed, with RSI's message attached.healthlists the new action, so older Fleetyards pages never call it.The calls were captured from a signed-in session on RSI's own pages, then replayed directly with the same headers. The reference is in Fleetyards'
docs/findings/rsi-cart.md.Test plan
vitest run: 114 passed, including the newcart.test.tsvue-tsc --noEmit🤖