Skip to content

Deck Local Persistence #207

Description

@Doberjohn

Part of #204

Description

Save and load decks locally using localStorage.

Requirements

  • Save deck to localStorage on every change (auto-save)
  • Load saved decks on app startup
  • Multiple deck support (create, rename, delete)
  • Deck list/selector UI (switch between saved decks)
  • Handle storage limits gracefully (warn if approaching quota)

Data Model (Draft)

interface SavedDeck {
  id: string;           // UUID
  name: string;
  cards: { cardId: string; quantity: number }[];
  createdAt: string;    // ISO date
  updatedAt: string;    // ISO date
}

Phase

Phase 2 (weeks 3-4) — built alongside Deck Builder UI

Files

  • apps/web/src/features/deck/hooks/useDeckStorage.ts — persistence hook

Metadata

Metadata

Assignees

Labels

featureNew feature or functionalityuiUser interface

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions