feat(admin): add an 'open' filter to the console games list
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 9s
CI / integration (pull_request) Successful in 16s
CI / ui (pull_request) Successful in 45s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m8s

The games-list status filter offered only active/finished; add 'open' (auto-match games awaiting an opponent) to the subnav and accept it in normalizeGameStatus. Render test covers the new filter link.
This commit is contained in:
Ilia Denisov
2026-06-13 11:08:57 +02:00
parent efaf633691
commit 94534ad0f2
3 changed files with 3 additions and 1 deletions
@@ -678,7 +678,7 @@ func consolePage(c *gin.Context) int {
// normalizeGameStatus keeps only a recognised game status filter, else "" (all).
func normalizeGameStatus(s string) string {
switch s {
case game.StatusActive, game.StatusFinished:
case game.StatusActive, game.StatusFinished, game.StatusOpen:
return s
}
return ""