Commit 9db229c
refactor: complete Clean Architecture reorganization
Reorganize remaining src root files and tests according to Clean Architecture:
**Domain Layer:**
- Move src/error.rs → src/domain/error.rs (domain errors)
- Move tests/unit/error_tests.rs → tests/unit/domain/error_tests.rs
**Infrastructure Layer:**
- Move src/logging.rs → src/infrastructure/logging.rs (file logging)
- Move src/repository_manager.rs → src/infrastructure/repository_manager.rs (git operations)
**Presentation Layer:**
- Move src/signal_handler.rs → src/presentation/signal_handler.rs (UI signal handling)
- Move src/sharing.rs → src/presentation/sharing.rs (social media sharing)
- Move tests/unit/sharing_tests.rs → tests/unit/presentation/sharing_tests.rs
- Move tests/unit/extractor_unit_tests.rs → tests/unit/domain/services/extractor_unit_tests.rs
- Move tests/unit/game_unit_tests.rs → tests/unit/presentation/game/game_unit_tests.rs
**Other Changes:**
- Update all import paths to reflect new module locations
- Update module declarations in lib.rs and test modules
- Clean up tests/unit/mod.rs to match src structure
- Update external imports from gittype::* paths
- No implementation changes, pure refactoring
- All 589 tests passing
The codebase now follows Clean Architecture with clear separation of concerns:
- Domain: Business logic and domain models
- Infrastructure: External system integrations
- Presentation: UI and external interfaces
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cb31b81 commit 9db229c
File tree
37 files changed
+52
-52
lines changed- src
- domain
- repositories
- infrastructure
- storage
- daos
- presentation
- cli
- commands
- views
- game
- models/loading_steps
- screens
- views
- tests/unit
- domain
- services
- presentation
- game
37 files changed
+52
-52
lines changedFile renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments