chore: rework pull request detail into a split layout
Rust / build (macos-latest, stable) (push) Canceled after 0s
Rust / build (ubuntu-latest, stable) (push) Canceled after 0s
Rust / build (windows-latest, stable) (push) Canceled after 0s

This commit is contained in:
2026-11-26 21:11:05 +07:00
parent bc39668f5d
commit db3d53f2aa
11 changed files with 596 additions and 551 deletions
File diff suppressed because it is too large Load Diff
+7 -29
View File
@@ -371,35 +371,13 @@ impl Render for PullRequestsView {
.border_color(cx.theme().colors.border)
.hover(|this| this.bg(cx.theme().colors.muted_hover))
.on_click(move |_, window, cx| {
let id = SharedString::from(format!("pr:{pr_id}"));
let workspace_for_build = workspace.clone();
let store = store.clone();
log_dropped(workspace.update(cx, |root, cx| {
root.panels().clone().update(
cx,
|panels, cx| {
panels.open(
PanelSlot::Main,
id,
move |window, cx| {
cx.new(|cx| {
PullRequestDetailView::new(
workspace_for_build
.clone(),
store.clone(),
pr_id,
window,
cx,
)
})
},
window,
cx,
)
},
)
}));
PullRequestDetailView::open(
&workspace,
store.clone(),
pr_id,
window,
cx,
);
})
.child(
h_flex()