2.3 KiB
2.3 KiB
Created
Created by tickets.sh create.
Review: approve
External reviewer: tui-view-mode-reviewer-20260531
Reviewed implementation commit: bc31bfa (tui: move view mode state)
Verdict: approve
Summary:
- Moved the single-Pod history display mode type from
ui.rstoview_mode.rs. - Kept the type name
Modeand preserved variants/methods (Detail,Normal,Overview,cycle(),label()). - Updated
app.rs,ui.rs, andtool.rsto importcrate::view_mode::Mode. - Removed the state-model dependency from
app.rsto the render module for this type.
Requirements mapping:
Modenow lives in a focused state-oriented module.app.rs -> ui.rsdependency caused byModeis removed.- Rendering/key/command behavior is unchanged by inspection because the enum and methods are a straight move.
- No broad
Appprivatization, render-tree move, app split, crate/package rename, or unrelated runtime extraction was introduced. - No active
crate::ui::Mode/ui::Modereferences remain undercrates/tui/src.
Blockers: none. Non-blocking follow-ups: none.
Validation adequacy:
- Coder validation covered fmt, focused/full TUI tests, TUI check, doctor, diff-check, and
ui::Modegrep. - Reviewer additionally performed read-only diff/reference checks and found no issues.
Closed
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.