805 B
805 B
Moved single-Pod view/history mode state out of the render module.
Implementation:
- Added
crates/tui/src/view_mode.rs. - Moved
Modefromui.rstoview_mode.rswithout changing variants or methods. - Updated
app.rs,ui.rs, andtool.rsimports to usecrate::view_mode::Mode. - Removed the
app.rs -> ui.rsdependency caused solely byMode. - Kept render/key/command behavior unchanged.
Review:
- External reviewer
tui-view-mode-reviewer-20260531approved implementation commitbc31bfa.
Validation after merge:
cargo fmt --checkcargo test -p tui modecargo test -p tuicargo check -p tui(passed with existing dead-code warnings)./tickets.sh doctorgit diff --checkrg "crate::ui::Mode|ui::Mode" crates/tui/src || trueproduced no active source hits.