feat(game): finalize all-in logic with capped call and raise
📌 Description
- Add hasSetStartOfHandThisHandRef to prevent overwriting start chips
- Reset ref when phase returns to init/shuffle/deal
- Capture start chips only once per hand (at preflop)
- Add window focus event to refresh balance in Lobby
- Ensure chips persist correctly after each hand
🔗 Lien vers l'issue
✅ Type de changement
-
Feature (nouvelle fonctionnalité) -
Fix (correction de bug) -
Refactor (pas de changement fonctionnel) -
Docs (documentation) -
Chore (maintenance technique) -
Hotfix (urgence)
🧪 Comment tester
✅ Checklist
-
Tests unitaires ajoutés/mis à jour -
Documentation mise à jour -
Pipeline CI vert -
Relu par un reviewer
👥 Reviewers requis
-
Backend (@azra, @soheil) -
Frontend (@mohamed, @yigit) -
Sécurité (@linda, @massi) -
BDD (@elhadj)
🚨 Impact potentiel
-
Breaking change -
Performance -
Sécurité