feat(ui): dynamic blind labels for Post Required Blinds Now button

Aperta
#58 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
api, backend, frontend

Direzione di ricerca

Start with ui/src/components/playPage/Table/components/PlayerActionButtons.tsx, then trace the player data through sdk/src/types/game.ts and pvm/ts/src/engine/texasHoldem.ts. Confirm how missed blinds should be tracked and exposed before updating the button label. Done means the UI distinguishes missed big blind, small blind, or both and displays the corresponding blind amounts.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

animation UI visual

Parent Issue

block52/ui#51 — Section 3: Sit In Options

Problem

The "Post Required Blinds Now" sit-in button currently uses a generic label. Per block52/ui#50 AC, the UI text must state exactly what will be posted based on which blinds were missed.

Current Behavior

[ Post Required Blinds Now ]   ← generic, no blind info

Required Behavior

The button label should dynamically reflect the exact blinds to be posted:

Missed BB only:
  [ Post Big Blind ($0.20) Now ]

Missed SB only:
  [ Post Small Blind ($0.10) Now ]

Missed both:
  [ Post Small Blind + Big Blind ($0.30) Now ]

Blocked By

The PVM does not currently expose missed blind data on the player DTO. This feature requires:

  1. PVM: Track missed blinds per player and expose on the player DTO (e.g., missedBlinds: { sb: boolean, bb: boolean } or requiredPost: string)
  2. SDK: Add missed blind fields to PlayerDTO
  3. UI: Read missed blind data and render dynamic label

Key Files

  • ui/src/components/playPage/Table/components/PlayerActionButtons.tsx — button label
  • pvm/ts/src/engine/texasHoldem.ts — player state / missed blind tracking
  • sdk/src/types/game.ts — PlayerDTO type

Related Issues

  • block52/ui#51 — Parent epic
  • block52/ui#50 — Sit-in method persistence (AC references dynamic labels)
  • block52/ui#38 — Sit-in method selection UI (current generic implementation)

🤖 Generated with Claude Code

Lingua principale
TypeScript
Stelle
2
Fork
5
Merge medio
22h 35m
PR unite (30g)
91

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di block52/ui

Tutte le issue di block52/ui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.