fix(bot): keep Capacity and PickClub wizard steps consistent (v3.9.5) #128

Closed
Toutsu wants to merge 0 commits from fix/issue-127-wizard-capacity-club into main
Owner

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit e3e6e841b844b175e971a117312136164a628c72; release v3.9.5 is published.

Merged via local no-ff fallback because the Gitea PR merge API returned HTTP 405. Main contains merge commit e3e6e841b844b175e971a117312136164a628c72; release v3.9.5 is published.
Toutsu added 2 commits 2026-06-08 22:36:37 +03:00
Fix two wizard FSM bugs reported after v3.9.4:

1. Capacity waitlist buttons could still advance the draft without a
   numeric MaxPlayers value. The final submit validation then rejected
   the draft with 'Не заполнены поля: лимит мест'. Now waitlist:on/off
   stay on Capacity until MaxPlayers is set; users must either enter a
   numeric limit or explicitly choose '♾ Без лимита'.

2. PickClub computed NextAfterVisibility before SetClubId, so the first
   club click left the wizard on PickClub and the second click advanced.
   Now ClubId is saved first and NextAfterVisibility is evaluated after
   that mutation, so a valid club click advances on the first try.

TDD:
- WaitlistChoiceWithoutCapacity_StaysOnCapacityStep covers waitlist:on/off.
- PickClub_ValidGuid_AdvancesToPublishOnFirstClick covers the single-click club path.
- Stale Capacity waitlist callback test updated to the safer no-advance contract.

Closes #127
chore: bump version 3.9.4 -> 3.9.5
PR Checks / test-and-build (pull_request) Successful in 10m22s
a0a84965b3
Bugfix patch release for issue #127. Sync the four canonical version sources:
- Directory.Build.props
- compose.yaml (bot, discord, web image tags)
- .gitea/workflows/deploy.yml (VERSION env)
- src/GmRelay.Web/Components/Layout/NavMenu.razor (visible nav-version)
Toutsu closed this pull request 2026-06-08 23:05:13 +03:00
Some checks are pending
PR Checks / test-and-build (pull_request) Successful in 10m22s

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Toutsu/GmRelayBot#128