feat/set-selection-card-details #32

Merged
l30n merged 4 commits from feat/set-selection-card-details into main 2026-04-14 23:09:35 +02:00
Owner

Summary

  • Set selection: Redesigned lobby set selection with set icons and improved groupings
  • Card details modal: New modal showing card stats ("Übrig", "Bei dir", draw probability table)
  • Card peek: Hold a card during selection to preview it large; uses native-resolution rendering via GPU transform for sharper display
  • Tap to select: Short tap toggles selection with a full-card checkmark overlay
  • Fix: Sessions now load immediately on app start (race condition between useEffect/useFocusEffect resolved)

Test plan

  • Set selection in lobby shows correct icons and groupings
  • Tapping an offered card toggles selection (checkmark visible)
  • Holding an offered card shows large peek, disappears on release
  • Tapping a card in "Meine Karten" opens the details modal with stats
  • "Übrig" badge shows total − youOwn, not raw deck count
  • Open sessions appear immediately on app start without navigating away first
Summary - Set selection: Redesigned lobby set selection with set icons and improved groupings - Card details modal: New modal showing card stats ("Übrig", "Bei dir", draw probability table) - Card peek: Hold a card during selection to preview it large; uses native-resolution rendering via GPU transform for sharper display - Tap to select: Short tap toggles selection with a full-card checkmark overlay - Fix: Sessions now load immediately on app start (race condition between useEffect/useFocusEffect resolved) Test plan - Set selection in lobby shows correct icons and groupings - Tapping an offered card toggles selection (checkmark visible) - Holding an offered card shows large peek, disappears on release - Tapping a card in "Meine Karten" opens the details modal with stats - "Übrig" badge shows total − youOwn, not raw deck count - Open sessions appear immediately on app start without navigating away first
Set Selection (#22):
- Group sets by expansion (Original, Beach Cup, City & Rainbow) with emoji icons
- Auto-select 5 random sets on session creation; admin can re-randomise with one tap
- Persist selection to sessions.selected_sets so all lobby participants see it live via Supabase Realtime
- Show active sets in draft screen header
- New migration and update_selected_sets RPC

Card Details (#27):
- Tap any card in "Meine Karten" or long-press an offered card to open details
- Modal shows full-size card image, total copies, deck/owned counts
- Draw probability table: per possible opponent ownership count, shows remaining copies and pull chance

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add placeholder PNG for each of the 14 sets in assets/icons/ (replace with real artwork)
- Introduce lib/setIcons.ts with static Metro-compatible require() map
- Correct set groups:
  - Original: Burg, Jahrmarkt, Weltraum, Filmstudio, Geisterhaus, Schiffswrack
  - Beach Cup: Märchenwald, Spieleladen, Bergspitze, Geheimlabor, Strandclub, Universität
  - City & Rainbow: Stadt, Regenbogen
- Replace emoji Text with Image component in lobby chips and draft set tags

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
l30n merged commit d160ea4ff6 into main 2026-04-14 23:09:35 +02:00
l30n deleted branch feat/set-selection-card-details 2026-04-14 23:09:35 +02:00
l30n referenced this pull request from a commit 2026-04-14 23:09:36 +02: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!32
No description provided.