V1 #16

Merged
l30n merged 15 commits from prototype into main 2026-03-23 14:25:49 +01:00
Owner
No description provided.
l30n added 15 commits 2026-03-23 14:24:36 +01:00
- Draft screen with 3 difficulty-based deck stacks (B/C, A, S)
- Atomic offer_cards RPC for race-condition-safe simultaneous drafting
- Configurable offer/keep count set by admin before draft starts
- Real-time deck count updates via Supabase subscriptions
- SheetCard component for sprite-sheet card rendering
- Migration SQL for offer_count/keep_count columns and RLS policy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fetches all non-finished sessions the user participates in and displays
them as tappable cards with status badge and participant count.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix duplicate home screens by using router.replace for session navigation
- Navigate directly to draft screen for active sessions from home
- Reorder home screen: join section appears before open sessions
- Add card size slider to draft screen
- Replace horizontal card scroll with vertical wrapping grid
- Add delete session button for admin in draft screen

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Always draw 5 cards per deck click (offer_count from session no longer used)
- Remove keep_count limit: player selects any number of cards freely
- "Neu ziehen" button: keeps selected cards to hand, discards the rest,
  draws (shown - kept) new cards from the same deck
- "Behalten · Ablegen" confirm button finalises the current offered set
- Delete button (✕) on each hand card to discard it back to the pile
- Unify offered and hand card sizes (100×140 scaled)
- Remove draft config modal (offer/keep count inputs) from session screen;
  draft starts immediately with hardcoded defaults
- Add redraw_cards RPC + update offer_cards to accept explicit p_count

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Admin can now choose which sets to include before starting a draft.
Only cards from selected sets are loaded into the session's deck.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closes #10

Reviewed-on: #15
Co-authored-by: L30n <leon@l30n.de>
Co-committed-by: L30n <leon@l30n.de>
l30n added this to the v1.0.0 milestone 2026-03-23 14:24:42 +01:00
l30n merged commit c9e6fe2120 into main 2026-03-23 14:25:49 +01:00
l30n deleted branch prototype 2026-03-23 14:25:50 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
l30n/Challengers-Draft!16
No description provided.