Phase 13 - Refactoring: Final integration and cleanup#189
Draft
lorenzoberts wants to merge 10 commits into
Draft
Phase 13 - Refactoring: Final integration and cleanup#189lorenzoberts wants to merge 10 commits into
lorenzoberts wants to merge 10 commits into
Conversation
This commit removes placeholder command-dispatch and transition types that were never wired into the App actor loop. AppMessage is trimmed to the variants the runtime actually uses, simplifying the actor control path ahead of the AppHandle surface cleanup in the follow-up commit. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
… channel This commit resolves the Phase 12 follow-up by narrowing AppHandle to the single method main actually uses. The AppMessage control channel and its matching actor select branch are removed; the app loop runs on input events alone, and shutdown is driven by closing the input subscriber channel. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
…no callers This commit trims LoreApiHandle and RenderHandle to the methods exercised by production flows. Unused message variants, handle methods, and their test-only paths are removed, and stale dead_code suppressions on the actor protocol modules are dropped now that every remaining item has a caller. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit removes a ratatui dependency from application state by storing rendered preview content as raw strings and deferring Text conversion to the view-model projection layer. from_rendered_preview becomes infallible, keeping presentation types on the UI side of the actor boundary. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
…xpect This commit replaces silent unwrap calls in production app and config paths with expect messages that document the program invariants each site depends on. Success-path is_ok plus unwrap pairs in screen flows are collapsed into straightforward Result handling. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds structured tracing at LoreAPI, Render, and Config boundaries inside the main application flows. Patchset loading, list refresh, bookmark persistence, and configuration saves are now observable in the log stream without changing behavior. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
…rdown This commit replaces implicit actor teardown on channel drop with explicit Shutdown messages on LoreApiActor and RenderActor. main retains handles to those actors after AppActor finishes and shuts them down in a documented order before UI and terminal teardown, so long-running actor tasks stop predictably. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds integration tests that exercise real LoreApiActor and RenderActor instances through AppActor startup, and verifies that a terminal poll error propagates through InputActor to close the app subscriber channel. These paths were previously covered only with stub channels or left untested. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit documents the hybrid actor model where developers read code: module-level comments on each actor describe responsibility and handle boundaries, and README adds an Architecture section covering actor roles, communication rules, and the shutdown order after run_until_done. This commit is part of the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit removes leftover placeholder types, unused error variants, and stale migration comments so the codebase reflects what is actually wired today. Test-only protocol surface is moved behind cfg(test), and error enums are trimmed to variants that production code constructs. This commit completes the architecture's refactoring phase 13. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.