Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

mtg: show the tokens a deck creates

オープン
#76 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
技術スタック
rust, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?
主要言語
TypeScript
スター
0
フォーク
1
平均マージ
10時間 20分
マージ済み PR(30日)
36

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

myOmikron/code のほかの issue

myOmikron/code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。