mtg: show the tokens a deck creates
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- rust, typescript
- Domain
- databases, full-stack
Research direction
Start by reading services/mtg/src/utils/catalog_sync.rs and models/printing/db.rs, then trace how catalog data reaches the deck API and deck view. The issue proposes storing oracle-level card-to-token relations, returning distinct tokens with creator cards, and displaying token images; the UI location, included deck zones, helper types, counts, and export behavior are still open decisions.
Written by the indexing model from the issue text.
Description
What
In a deck, I want to see somewhere which tokens its cards create (e.g. Soldier 1/1, Treasure, Clue, Emblems), so I know which tokens to bring when I play it.
Current state
- The catalog sync (
services/mtg/src/utils/catalog_sync.rs, bulk fileall_cards) already imports tokens as printings. Cardmarket does not stock them (seemodels/printing/db.rs). - Nothing records which card creates which token.
ScryfallCarddoes not read Scryfall'sall_partsfield (entries withcomponent: "token"/"meld_part"etc.), so there is nothing to derive the list from yet.
Rough idea
- Catalog sync: read
all_partsand store a card -> token relation (at oracle level, since the tokens are the same for every printing of a card). - Deck API: return the distinct tokens of all cards in the deck (incl. sideboard? to be decided), each with the cards that create it.
- Frontend: a "Tokens" section/tab in the deck view with token images and "created by" hints.
Open questions
- Where in the deck UI: own tab, collapsible section below the list, or a dialog?
- Include sideboard / maybe-board cards?
- Show emblems and dungeons/other
all_partshelpers (Initiative, Monarch, etc.) too, or tokens only? - Count per token (how many to bring) or just the list?
- Should the MPCFill export offer to include the tokens?
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 1
- Avg merge
- 10h 56m
- Merged PRs (30d)
- 34
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from myOmikron/code
-
wayfinder:task
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
wayfinder:task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
myOmikron/code#102 · 2 comments ·
Maintainers usually reply within 1 day
-
ready-for-agent
Difficulty 5/5 Over a week Newbie friendliness 18/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phivk/rubiks-lab#33 ·
Maintainers usually reply within 1 day
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be editedPossibly taken @ManyaJain111 claimed this today. Openbug enhancement possible-duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
AOSSIE-Org/PictoPy#1637 · 4 comments ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chaitin/MonkeyCode#1437 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
area:cards enhancement migration ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
fil-donadoni/tolaria#6309 ·
Maintainers usually reply within 1 day