undef-engine 2026-02-27
Split 11 oversized backend files, mypy strict annotations, and frontend accessibility
1104 files · 41,434+ · 41,822-

Backend module splitting and dependency injection

7 files changed
  • .pre-commit-config.yaml Aligned with bbsbot strictness (ty, mypy, codespell, reuse)
  • dep5 Updated REUSE compliance metadata
  • AGPL-3.0-or-later.txt License file updates
  • Makefile Added typecheck targets, removed dead code
  • .env.example Added frontend environment example
  • oauth_demo.py Added OAuth demo example
  • README.md Updated primitives documentation
  • Split 11 large backend files into sub-module packages for better modularity and maintainability decouple architectural
    1 file
    • Makefile
  • Split gameStore into focused sub-stores with facade pattern (merged via PRs #7, #10) decouple internal
  • Split WebSocketContext and migrated singletons to dependency injection decouple internal
  • Split oversized modules and improved error handling remediate internal

Mypy strict type annotations across core modules

3 files changed
  • AdminDashboard.tsx Type annotation updates
  • GameBoardRouter.tsx Type annotation updates
  • App.tsx Type annotation updates
  • Resolved mypy errors in src/undef/server (merged via PR #8) harden internal
  • Resolved mypy strict type errors in auth and worker modules (merged via PR #6) harden internal
  • Fixed mypy strict type errors in games/warp and games/undef_dice (merged via PR #9) harden internal
  • Added type annotations to GameContext slots and added GamePluginBase with typed WS messages harden internal

Pre-commit and build infrastructure alignment

1 file changed
  • .pre-commit-config.yaml Matched bbsbot pre-commit strictness with ty, mypy, codespell, reuse
  • Matched bbsbot pre-commit strictness with ty, mypy, codespell, and reuse tools baseline internal
    1 file
    • .pre-commit-config.yaml
  • Added typecheck targets, aligned pre-commit configuration, and removed dead code baseline internal
    1 file
    • Makefile
  • Applied ruff and prettier formatting across the codebase baseline errata

Frontend accessibility and test improvements

2 files changed
  • Lobby.tsx WCAG touch target fixes
  • Button.tsx Accessibility improvements
  • Added accessibility improvements with WCAG touch target fixes remediate behavioral
    2 files
    • Lobby.tsx
    • Button.tsx
  • Updated frontend tests to match current component behavior qualify internal

Backend quality and WebSocket optimization

1 file changed
  • .env.example Added frontend environment example
  • Fixed comprehensive backend code quality issues (merged via PR #4) remediate internal
  • Optimized WebSocket lookup in Cloudflare Durable Object adapter streamline internal
  • Added shared test fixtures and frontend .env.example qualify internal
    1 file
    • .env.example
  • Un-skipped stream routes and TP pick-winner tests; suppressed pytest warnings for provide-testkit and saga serialization qualify internal