Repository navigation
Release v1.1.2
? Release v1.1.2
Version Bumps Applied:
- Major: false
- Minor: false
- Patch: true
Triggered by: PR #39 - Replace track switch cooldown with race-activity check
Merged by: @LinaBell
Changes in this PR
Summary
- Replaced the 30-minute track switch cooldown (based on
trackLastSwitchedDate) with a 5-minute check based onlastRaceStartedDate, which records when any user last started a race - Non-admins are blocked from switching tracks if a race was started < 5 minutes ago (disabled button with tooltip)
- Admins see a confirmation modal warning that a race may be in progress but can proceed
- Removed
trackLastSwitchedDatefrom the client state and switch track flow
Test plan
- Start a race and confirm
lastRaceStartedDateis set on the world data object - As a non-admin, navigate to Switch Track within 5 minutes of a race starting — button should be disabled with a hover tooltip
- As an admin, navigate to Switch Track within 5 minutes — button is enabled, clicking shows a confirmation modal warning about active races
- Wait 5+ minutes after last race start — any user can switch tracks freely with no restrictions
This release was automatically created by the Auto Release workflow
What's Changed
- Update documentation and env-example by @LinaBell in #38
- Replace track switch cooldown with race-activity check by @LinaBell in #39
Full Changelog: v1.1.1...v1.1.2