Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

mtg: show the tokens a deck creates

Aperta
#76 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
rust, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs-triage

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 file all_cards) already imports tokens as printings. Cardmarket does not stock them (see models/printing/db.rs).
  • Nothing records which card creates which token. ScryfallCard does not read Scryfall's all_parts field (entries with component: "token" / "meld_part" etc.), so there is nothing to derive the list from yet.

Rough idea

  1. Catalog sync: read all_parts and store a card -> token relation (at oracle level, since the tokens are the same for every printing of a card).
  2. Deck API: return the distinct tokens of all cards in the deck (incl. sideboard? to be decided), each with the cards that create it.
  3. 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_parts helpers (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?
Lingua principale
TypeScript
Stelle
0
Fork
1
Merge medio
10h 56m
PR unite (30g)
34

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di myOmikron/code

Tutte le issue di myOmikron/code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.