feat(#7): Admin panel with ban, clear board, maintenance mode #29

Merged
ti-paul merged 1 commit from feature/7-admin-panel into main 2026-06-12 12:07:48 +00:00
Member

Closes #7

New: server/admin.js

  • Ban/unban users with reason
  • Clear board + reset history
  • Force reset (nuclear)
  • Maintenance mode toggle
  • Admin audit log
  • ASCII dashboard

23 tests. 187 total pass.

Closes #7 ## New: server/admin.js - Ban/unban users with reason - Clear board + reset history - Force reset (nuclear) - Maintenance mode toggle - Admin audit log - ASCII dashboard 23 tests. **187 total pass.**
feat(#7): Admin panel with ban, clear board, maintenance mode
Some checks failed
CI / test (pull_request) Failing after 1s
d0343f742e
New module server/admin.js:
- banUser/unbanUser: user banning with reason tracking
- isUserBanned/getBanInfo: ban status queries
- clearBoard: admin board reset with history
- forceReset: nuclear reset (clears all state)
- enableMaintenance/disableMaintenance: maintenance mode
- getAdminLog: audit trail with filtering
- getAdminStats: admin dashboard summary
- renderAdminDashboard: ASCII display
- isAdmin: simple admin check

23 new tests. All 187 tests pass. Closes #7.
ti-paul left a comment
No description provided.
23 tests, 187 total. Admin panel + ban + maintenance. LGTM.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/pixel-clash!29
No description provided.