feat(ui): antes on the create form — on/off, start level and size, with the schedule in the preview

Open
#891 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@bitcoinbrisbane is already working on this.

Since Oct 29, 2026.

  • #919 by @bitcoinbrisbane — open

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

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

feature lobby sit-and-go

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 ante rule (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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from block52/ui

All issues in block52/ui

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.