feat: Add view stack to BottomPane (#4026)
Adds a "View Stack" to the bottom pane to allow for pushing/popping bottom panels. `esc` will go back instead of dismissing. Benefit: We retain the "selection state" of a parent panel (e.g. the review panel).
This commit is contained in:
@@ -1645,7 +1645,6 @@ impl ChatWidget {
|
||||
title: "Select a review preset".into(),
|
||||
footer_hint: Some(STANDARD_POPUP_HINT_LINE.to_string()),
|
||||
items,
|
||||
on_escape: None,
|
||||
..Default::default()
|
||||
});
|
||||
}
|
||||
@@ -1684,7 +1683,6 @@ impl ChatWidget {
|
||||
items,
|
||||
is_searchable: true,
|
||||
search_placeholder: Some("Type to search branches".to_string()),
|
||||
on_escape: Some(Box::new(|tx| tx.send(AppEvent::OpenReviewPopup))),
|
||||
..Default::default()
|
||||
});
|
||||
}
|
||||
@@ -1726,7 +1724,6 @@ impl ChatWidget {
|
||||
items,
|
||||
is_searchable: true,
|
||||
search_placeholder: Some("Type to search commits".to_string()),
|
||||
on_escape: Some(Box::new(|tx| tx.send(AppEvent::OpenReviewPopup))),
|
||||
..Default::default()
|
||||
});
|
||||
}
|
||||
@@ -1737,8 +1734,6 @@ impl ChatWidget {
|
||||
"Custom review instructions".to_string(),
|
||||
"Type instructions and press Enter".to_string(),
|
||||
None,
|
||||
self.app_event_tx.clone(),
|
||||
Some(Box::new(|tx| tx.send(AppEvent::OpenReviewPopup))),
|
||||
Box::new(move |prompt: String| {
|
||||
let trimmed = prompt.trim().to_string();
|
||||
if trimmed.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user