Open
Conversation
Owner
Author
|
Resolved the merge conflict in studio/decks/page.tsx again, same situation as the other PR. Kept the decks list with card counts and size validation. The DeckBuilderClient component is still in components/DeckBuilderClient.tsx, just not being used / wired up together yet. |
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.
Summary
Bundles the initial Cards + Decks foundation work:
What’s Included
Cards
/studio/cards/[id]card detail page/studio/cards/[id]/editcard edit page + server action validation + redirectDecks
/studio/decksdecks index page (list decks)/studio/decks/newcreate deck page + server action/studio/decks/[id]minimal deck builder (add/remove cards via deck_cards)Rules / DB
games.min_deck_size+games.max_deck_size(backend source of truth)decksanddeck_cards(ownership enforced via parent game/deck)How to Test
/studio/cards/<id>and/studio/cards/<id>/edit?updated=1/studio/decks/new/studio/decks, open a deck builderdeck_cardsupdates + builder view updatesKnown Issue
/studio/deckscan appear stale after navigating back from the builder due to client-side caching/prefetch. Data is correct in DB and builder view; UI refresh behavior will be addressed in a follow-up PR. Still trying to figure this out.