feat(ui): antes on the create form — on/off, start level and size, with the schedule in the preview
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- frontend, full-stack
Research direction
The issue names Dashboard.tsx, BlindsPanel, the create form, and the level preview; start by reading the form's blind-structure handling and existing preview flow. Trace how presets and custom text map to the structure, then add the ante controls and preview behavior described in AC-1 through AC-4. Done means the preview and structure reflect the selected on/off, start level, and size, with unit tests covering mapping in both directions.
Written by the indexing model from the issue text.
Description
Overview
When creating a Sit & Go or tournament, the only way to set antes today is to type a rule into the custom blind-structure text box (e.g. ante: level >= 4 ? bb : 0, Dashboard.tsx). Organisers need simple controls. The table side already works: the Blinds tab shows the ante column and the current ante (BlindsPanel).
Engine defaults and sizes are in block52/poker-vm#2736 (big-blind ante = one full big blind, from level 4).
Controls on the create form (Sit & Go and tournament)
- Antes: On / Off (default On).
- Starts at level: a number, default 4.
- Ante size: % of the big blind, default 100% (a big-blind ante). Quick choices: 50% / 100%.
- These write the structure's
anterule (startLevel,bps). Choosing a preset fills them from the preset and the user can change them. The custom text form stays for advanced use and stays in sync. - The existing level preview table shows the Ante column so the schedule is visible before creating, e.g.:
| Level | Blinds | Ante |
|---|---|---|
| 1 | 25/50 | — |
| 2 | 50/100 | — |
| 3 | 100/200 | — |
| 4 | 200/400 | 400 |
| 5 | 400/800 | 800 |
Display
- Lobby / tournament info: "Antes from level N" (or "No antes").
- Table: the Blinds tab already lists antes. The header blinds text should include the ante once it's active, e.g. "Level 4 200/400 (400)".
Acceptance
- AC-1 Creating with antes on, level 4 and 100% gives a structure whose level 4+ ante equals the big blind. The preview shows it.
- AC-2 Antes off creates a structure with no ante. The Blinds tab shows no Ante column.
- AC-3 Changing the start level or size updates the preview immediately.
- AC-4 Unit tests for mapping the form to the ante rule and back.
Requested by @Dzeezbtc. Depends on poker-vm#2736 for the new defaults (the controls work with the current engine regardless).
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 5
- Avg merge
- 21h 38m
- Merged PRs (30d)
- 105
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from block52/ui
-
enhancement tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug: next-to-act flash stuck on the last folder when their fold closes a called all-in (fold + runout + hand_ended in one snapshot)Possibly taken @bitcoinbrisbane claimed this today. Openanimation bug game-flow sit-and-go UI Week 2
block52/ui#968 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
feat(ui): player language setting and translated player screensPossibly taken @Dzeezbtc claimed this 2 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
feat(ui): player notes and tags — click a seat to note a player; tag icons (fish, shark, tight, loose…) show by their pillPossibly taken @Dzeezbtc claimed this 5 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
architecture refactor tech debt
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
"Claude Code request is missing its initial user message" when the prompt starts with an image pathOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
earendil-works/pi-claude-code#31 ·
Maintainers usually reply within 8 days
-
bug pending triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
privatenumber/cleye#48 ·
-
Google text documents are base64-encoded twicePossibly taken @feiiiiii5 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day