Replace admin user ban select with a toggle #1020
No reviewers
Labels
No labels
automated
code-quality
component: admin dashboard
component: backend
component: billing
component: content management
component: faqs
component: game genres
component: game lists
component: game reviews
component: game search
component: games
component: internal notifications
component: platforms
component: security
component: tests
component: user api
component: user badges
component: user blogs
component: user consoles
component: user favorites
component: user friends
component: user notifications
component: user profiles
component: user site notifications
component: user wishlists
component: web design
dependencies
javascript
php
priority
high
priority
low
priority
medium
security-hotspot
source: codex
source: sonarqube
status
awaiting feedback
status
backlog
status
done
status
in progress
status
in queue
status
in review
status
needs codex review
status
needs investigation
status
wontfix
type: bug
type: documentation
type: feature
type: improvement
type: regression
type: task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MyVideoGameList/myvideogamelist.com!1020
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/issue-1012-banned-toggle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace the admin user edit form’s Banned select with a styled toggle.
A hidden N value makes unchecked submissions explicitly save the unbanned state, while checked submissions retain the existing Y value. The toggle preserves submitted state after validation errors and uses the existing controller, authorization, and ban behavior.
Verification: 72 feature tests passed (404 assertions), including toggle rendering, banning/unbanning, validation, admin authorization, profile fields, session invalidation, and Fider synchronization. Pint, PHPStan, frontend build, and diff checks passed.
Fixes #1012