fix(tui): resolve merge fallout in app.rs; remove unused popup hint const to enforce zero warnings

This commit is contained in:
just-every-code
2025-09-22 04:48:37 +00:00
parent 1eed9c9613
commit cf031b678b
3 changed files with 3 additions and 14 deletions
-12
View File
@@ -1810,18 +1810,6 @@ impl App<'_> {
self.schedule_redraw_in(duration);
}
}
AppEvent::OpenReviewBranchPicker(cwd) => {
self.chat_widget.show_review_branch_picker(&cwd).await;
}
AppEvent::OpenReviewCommitPicker(cwd) => {
self.chat_widget.show_review_commit_picker(&cwd).await;
}
AppEvent::OpenReviewCustomPrompt => {
self.chat_widget.show_review_custom_prompt();
}
AppEvent::OpenReviewPopup => {
self.chat_widget.open_review_popup();
}
}
if self.alt_screen_active {
terminal.clear()?;
@@ -12,7 +12,7 @@ use ratatui::widgets::StatefulWidgetRef;
use ratatui::widgets::Widget;
use std::cell::RefCell;
use super::popup_consts::STANDARD_POPUP_HINT_LINE;
use super::popup_consts::_STANDARD_POPUP_HINT_LINE as STANDARD_POPUP_HINT_LINE;
use crate::app_event_sender::AppEventSender;
use crate::bottom_pane::SelectionAction;
+2 -1
View File
@@ -5,4 +5,5 @@
pub(crate) const MAX_POPUP_ROWS: usize = 8;
/// Standard footer hint text used by popups.
pub(crate) const STANDARD_POPUP_HINT_LINE: &str = "Press Enter to confirm or Esc to go back";
/// Prefix with underscore to avoid dead_code warnings if not referenced.
pub(crate) const _STANDARD_POPUP_HINT_LINE: &str = "Press Enter to confirm or Esc to go back";