You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: move presentation/game files to proper domain layers
Reorganize architecture by moving files from presentation/game to appropriate domain layers:
- Move static UI data (ascii_digits, ascii_rank_titles, rank_colors, rank_messages) to domain/models/ui/
- Move models (SessionState, SessionConfig, SessionAction, GameMode, StageConfig, ProcessingOptions, InputResult, CodeContext) to domain/models/session/, domain/models/stage/, domain/models/typing/
- Move loading steps to domain/models/loading/
- Move services (typing_core, text_processor, context_loader) to domain/services/
- Move presentation events to domain/events/presentation_events.rs
- Remove duplicate definitions in presentation/game/session_manager.rs and stage_repository.rs
- Update all import paths in src/ and tests/ to reflect new structure
- Fix all type mismatches and visibility issues
This change establishes proper layering:
- domain/models: Pure data models without business logic
- domain/services: Business logic and services
- domain/events: Domain and presentation events
- presentation/: UI layer only (screens, views, CLI)
All tests passing: 1419 passed, 0 failed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments