Skip to content

feat: [#165] create views layer by renaming user_output to views - #167

Merged
josecelano merged 1 commit into
mainfrom
165-create-views-layer
Nov 12, 2025
Merged

josecelano merged 1 commit into
mainfrom
165-create-views-layer

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

This PR implements issue #165 by creating a views layer in the presentation module following MVC terminology. The implementation renames the user_output directory to views to complete the four-layer presentation architecture.

Changes Made

  • Directory Rename: Renamed src/presentation/user_output/ to src/presentation/views/
  • Module Updates: Updated module declarations in src/presentation/mod.rs
  • Import Updates: Updated all import statements across 47 files in the codebase
  • Documentation Fixes: Updated all doctest examples to use new import paths

Architecture Impact

This change completes the four-layer presentation architecture:

Input → Dispatch → Controllers → Views (formerly user_output)

The views layer now properly follows MVC terminology where:

  • Views: Handle user interface output and formatting (renamed from user_output)
  • Controllers: Handle command logic and orchestration
  • Dispatch: Handle routing and context management
  • Input: Handle CLI parsing and validation

Technical Details

  • Pure Rename Operation: No functional changes, only structural reorganization
  • Zero Breaking Changes: All functionality preserved
  • Complete Import Updates: Updated paths from presentation::user_output to presentation::views
  • Documentation Updated: Fixed all doctest imports and references

Quality Assurance

✅ All tests pass (1178 unit tests + 271 doc tests)
✅ Pre-commit checks pass (linting, unused dependencies, E2E tests)
✅ Documentation builds successfully
✅ No functional regressions

Files Changed

  • 23 files renamed: Complete views directory structure
  • 24 files updated: Import statements and module declarations

Closes #165

@josecelano josecelano self-assigned this Nov 12, 2025
@josecelano

Copy link
Copy Markdown
Member Author

ACK c0f4f71

@josecelano
josecelano merged commit e3fbc75 into main Nov 12, 2025
@josecelano josecelano mentioned this pull request Nov 12, 2025
14 tasks done
@josecelano
josecelano deleted the 165-create-views-layer branch April 15, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal 4: Create Views Layer

1 participant