Move PR-style review to top (#4486)
<img width="469" height="330" alt="Screenshot 2025-09-29 at 10 31 22 PM" src="https://github.com/user-attachments/assets/b5e20a08-85b4-4095-8a7f-0f58d1195b7e" />
This commit is contained in:
@@ -1778,6 +1778,20 @@ impl ChatWidget {
|
|||||||
pub(crate) fn open_review_popup(&mut self) {
|
pub(crate) fn open_review_popup(&mut self) {
|
||||||
let mut items: Vec<SelectionItem> = Vec::new();
|
let mut items: Vec<SelectionItem> = Vec::new();
|
||||||
|
|
||||||
|
items.push(SelectionItem {
|
||||||
|
name: "Review against a base branch".to_string(),
|
||||||
|
description: Some("(PR Style)".into()),
|
||||||
|
is_current: false,
|
||||||
|
actions: vec![Box::new({
|
||||||
|
let cwd = self.config.cwd.clone();
|
||||||
|
move |tx| {
|
||||||
|
tx.send(AppEvent::OpenReviewBranchPicker(cwd.clone()));
|
||||||
|
}
|
||||||
|
})],
|
||||||
|
dismiss_on_select: false,
|
||||||
|
search_value: None,
|
||||||
|
});
|
||||||
|
|
||||||
items.push(SelectionItem {
|
items.push(SelectionItem {
|
||||||
name: "Review uncommitted changes".to_string(),
|
name: "Review uncommitted changes".to_string(),
|
||||||
description: None,
|
description: None,
|
||||||
@@ -1811,20 +1825,6 @@ impl ChatWidget {
|
|||||||
search_value: None,
|
search_value: None,
|
||||||
});
|
});
|
||||||
|
|
||||||
items.push(SelectionItem {
|
|
||||||
name: "Review against a base branch".to_string(),
|
|
||||||
description: None,
|
|
||||||
is_current: false,
|
|
||||||
actions: vec![Box::new({
|
|
||||||
let cwd = self.config.cwd.clone();
|
|
||||||
move |tx| {
|
|
||||||
tx.send(AppEvent::OpenReviewBranchPicker(cwd.clone()));
|
|
||||||
}
|
|
||||||
})],
|
|
||||||
dismiss_on_select: false,
|
|
||||||
search_value: None,
|
|
||||||
});
|
|
||||||
|
|
||||||
items.push(SelectionItem {
|
items.push(SelectionItem {
|
||||||
name: "Custom review instructions".to_string(),
|
name: "Custom review instructions".to_string(),
|
||||||
description: None,
|
description: None,
|
||||||
|
|||||||
Reference in New Issue
Block a user