Skip to content

Dreamborn Import / Text Export #208

Description

@Doberjohn

Part of #204

Description

Import decklists from Dreamborn text format and export decks as plain text.

Import Format

Standard decklist text format used by most Lorcana tools:

4x Elsa - Spirit of Winter
3x Anna - Heir to Arendelle
2x Olaf - Friendly Snowman

Requirements

  • Parse Nx Card Name - Title format (paste into text area or file upload)
  • Match parsed card names against card database
  • Error handling: show which lines failed to match (unrecognized cards)
  • Validate imported deck against rules (4-copy max, 2-color max)
  • Show import summary (X cards imported, Y errors)
  • Text export: generate decklist in same format, copy to clipboard
  • Handle edge cases: duplicate entries (merge quantities), empty lines, comments

Phase

Phase 2 (weeks 3-4) — can be a separate PR from core deck builder

Files

  • apps/web/src/features/deck/utils/deckParser.ts — import/export logic

Metadata

Metadata

Assignees

Labels

featureNew feature or functionality

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions