c0fe10e664
Three things were missing: a way to get many decklists in at once, a UI that works on a phone, and somewhere to keep the state of a game in progress. Batch import — ImportDialog now takes a folder of .txt files or a pasted block and splits it on `-----` runs or on each list's own `// name` header, and reads a JSON backup directly (auto-detected by first character). Settings gains a matching Restore. Names resolve against the card index in 150-name chunks; unresolved names keep their entry with an empty id so the rules panel names them instead of the deck silently arriving short. importDecks merges by id, so restoring the same backup twice updates rather than duplicates. Mobile — the root cause of the layout problems was .app/.main, which had no min-width:0 and let every page overflow its viewport by 22px at 390. Fixed that, then stacked the three-column layouts at 1180, made Browse's card detail a modal below that breakpoint instead of a display:none third column, and added 44px targets under `pointer: coarse`, dvh units, safe-area insets and a 16px input floor to stop iOS zoom. Table mode — new /table route, one board for the game rather than one per device. src/lib/table.js is plain JS on purpose so node --test exercises the same reducer the UI imports: 40 life, poison on every seat, per-commander damage, arbitrary counters, and a turn/phase tracker that rotates the active player. Wake lock and fullscreen keep the screen up, and damage changes are announced through one role="status" region (WCAG 4.1.3). 58 tests, up from 49. Co-Authored-By: Claude Code <noreply@anthropic.com>
23 lines
784 B
HTML
23 lines
784 B
HTML
<!doctype html>
|
|
<html lang="en" data-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
|
|
/>
|
|
<meta name="theme-color" content="#080b0a" />
|
|
<title>MAGIK — Commander Deck Builder</title>
|
|
<meta
|
|
name="description"
|
|
content="Build legal Magic: The Gathering Commander (EDH) decks. Search every Commander-legal card, track colour identity, singleton and banned-list legality in real time."
|
|
/>
|
|
<link rel="preconnect" href="https://cards.scryfall.io" crossorigin />
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|