Repository navigation
Conversation
…k editor Deck editor gallery gains a sort control (card type, type and stage, rarity, name) persisted in localStorage, a "Hide prices" toggle for a builder-focused view, and complete planned tiles now show ×N when more than one copy is required so physical copies are easy to count out. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…opy badge Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
dmoptimal
marked this pull request as draft
October 27, 2026 21:21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User problem
When building a planned deck from a physical collection, the deck editor gallery is hard to use as a pick list:
Change
sortDeckEntries(entries, mode)gainstype(unchanged default),stage,rarity(rarest first), andnamemodes, exported asDECK_SORT_MODES. Unknown modes fall back totype.localStorageunder the existingpokecollector.deckEditor.*prefix.CardRequirementProgressrenders×Nbeside the green check when the requirement is complete andN > 1. Single-copy tiles are unchanged.CardListGallerytolerates anullformatPriceso the builder view can suppress prices without touchingCardDisplay.decks.*keys inen.js; other bundles fall back to English.docs/CARD_LISTS.mddescribes the controls.Tests
deckProgress.test.js: stage ordering across all three categories, rarity-first ordering, name ordering, unknown-mode fallback.CardSystem.test.js:×Nshown for a complete multi-copy requirement, not shown for a single copy.npm run check:translationspasses;vitest run src51 files / 341 tests pass;vite buildpasses.scripts/configure-public-mode.test.mjsfails on macOS because the entrypoint uses GNUsed -isyntax. That is pre-existing and unrelated; it passes on Linux.Screenshots
Will add once the branch is deployed on my own instance, if useful.
🤖 Generated with Claude Code