Skip to content

Add an Alt Arts toggle - #1010

Merged
Senryoku merged 7 commits into
Senryoku:masterfrom
MNoya:alt-arts-toggle
Oct 31, 2026
Merged

Senryoku merged 7 commits into
Senryoku:masterfrom
MNoya:alt-arts-toggle

Conversation

@MNoya

@MNoya MNoya commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Client side only. The default print comes from Scryfall's /cards/collection with { name, set } identifiers, which returns the set's default print
  • Lookups are batched 75 cards per call and run one after another, and the results are cached in localStorage, so each card is looked up once per browser
  • Nothing is requested while alt arts are enabled, and custom cards are skipped
  • Non-English players see the English default art on alt art prints
alt-arts-enabled alt-arts-disabled

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.
@MNoya MNoya closed this Oct 30, 2026
@MNoya MNoya reopened this Oct 30, 2026
Comment thread client/src/altArtDisplay.ts Resolved
Comment thread client/src/App.vue Resolved
Comment thread client/src/vueCardCache.ts Resolved
Comment thread client/src/App.ts Resolved
MNoya and others added 6 commits October 30, 2026 19:24
- 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
@Senryoku
Senryoku merged commit bcc4a40 into Senryoku:master Oct 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants