Skip to content

Commit 4ace592

Browse files
committed
refactor: add user output architecture improvements plan
Add comprehensive refactoring plan for src/presentation/user_output.rs with 10 proposals organized in 3 phases: - Phase 0 (Quick Wins): Verbosity filtering, test infrastructure, theme support - Phase 1 (Strategic): Trait-based message system, parameterized tests - Phase 2 (Polish): Type-safe channels, buffering, builders, output sinks Key architectural decision: Use trait-based OutputMessage design where each message type (ProgressMessage, SuccessMessage, etc.) implements its own formatting, verbosity requirements, and channel routing. This achieves true Open/Closed Principle - new message types can be added without modifying existing code. Alternative considered: Enum-based messages with centralized formatter. Discarded because pattern matching on enum variants requires modifying the formatter for each new message type, violating Open/Closed Principle.
1 parent 30d1eda commit 4ace592

File tree

2 files changed

+1750
-3
lines changed

2 files changed

+1750
-3
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Active Refactoring Plans
22

3-
| Document | Status | Issue | Target | Created |
4-
| --------------------------------------------------------------------------------- | -------------- | ----- | -------------------------------------- | ----------- |
5-
| [Command Code Quality Improvements](./plans/command-code-quality-improvements.md) | 🚧 In Progress | - | `ProvisionCommand`, `ConfigureCommand` | Oct 7, 2025 |
3+
| Document | Status | Issue | Target | Created |
4+
| ----------------------------------------------------------------------------------------- | -------------- | ----- | -------------------------------------- | ------------ |
5+
| [Command Code Quality Improvements](./plans/command-code-quality-improvements.md) | 🚧 In Progress | - | `ProvisionCommand`, `ConfigureCommand` | Oct 7, 2025 |
6+
| [User Output Architecture Improvements](./plans/user-output-architecture-improvements.md) | 📋 Planning | - | `src/presentation/user_output.rs` | Oct 30, 2025 |

0 commit comments

Comments
 (0)