refactor: merge workspace state into app root
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-23 03:26:11 +07:00
parent efb5761c56
commit bef96c614b
17 changed files with 374 additions and 385 deletions
+3 -3
View File
@@ -23,16 +23,16 @@ use ui::spinner::Spinner;
use ui::tabs::{Tab, Tabs};
use super::helpers::{ForkCompare, truncate_label};
use crate::app::AppRoot;
use crate::repo::commit_diff::{CommitDiffView, DiffPane};
use crate::repo::helpers::announcement_display_name;
use crate::shared::event_list::commit_list;
use crate::shared::log_dropped;
use crate::shared::panels::open_detail;
use crate::shared::progress::error_row;
use crate::workspace::Workspace;
pub struct NewPullRequestView {
workspace: WeakEntity<Workspace>,
workspace: WeakEntity<AppRoot>,
panel_id: SharedString,
pub(super) store: Entity<RepoStore>,
pub(super) repo_path: Option<PathBuf>,
@@ -61,7 +61,7 @@ pub struct NewPullRequestView {
impl NewPullRequestView {
pub fn new(
workspace: WeakEntity<Workspace>,
workspace: WeakEntity<AppRoot>,
panel_id: SharedString,
store: Entity<RepoStore>,
window: &mut Window,