Repository navigation
Add an Alt Arts toggle - #1010
Merged
Merged
Conversation
Adds an Alt Arts personal setting next to the foil effect toggle. While it is disabled, alt art prints show the default art of the same card from the same set, which the client looks up from Scryfall's collection endpoint by name and set in batches of 75 and caches in localStorage.
Senryoku
requested changes
Oct 30, 2026
- Rename the setting to Replace Alt. Arts and turn it off by default, so cards keep their original images unless a player enables it - Explain in the tooltip which cards get replaced and that only the player's own view changes - Keep the default print cache in memory so it does not compete with draft logs for localStorage space
Matches the image format of the rest of the card data and drops the deprecated border_crop JPG, so a replaced card loads the same URL as its default print.
- Retry a failed batch the next time those cards render, so a one-off Scryfall error no longer keeps their alt art for the whole session - Use arrow functions for the default print helpers - Compute the draft log tooltip image once per card
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 Alt Arts personal setting next to the foil effect toggle. While it's disabled, alt art prints like showcase, borderless and extended art show the default art of that card from the same set.
/cards/collectionwith{ name, set }identifiers, which returns the set's default print