Skip to content

P0: Deck domain types (types.ts) #458

Description

@Doberjohn

Define the deck domain types in apps/web/src/features/deck/types.ts, the shared vocabulary for the whole feature.

Scope

  • Deck (incl. optional gameplan), DeckCard { cardId, quantity, isCore? }, DeckStats, DeckHealth, HealthAnalyzer, Vulnerability, Suggestion, Archetype (incl. 'ramp'), QualityScore, AnalysisCase, DeckFingerprint.
  • Store cardId (string), never the whole LorcanaCard — hydrate via getCardById.
  • Any type guards get focused tests.

Notes: LorcanaCard/Ink/CardType come from inkweave-synergy-engine (import type).

Part of #450 · Deck Builder & Engine Score milestone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    deck-builderDeck builder + advisor + Engine Score initiativefeatureNew feature or functionality

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions