From 50071d39f482f36b6df1bbbbae7514c862768d23 Mon Sep 17 00:00:00 2001 From: faumaray Date: Wed, 28 Oct 2026 09:25:47 +0300 Subject: [PATCH] voelin-gpui: TreeModel watches the one AREAS list; docs/ui.md's signals intro names the parity ruling (review minors) Co-Authored-By: Claude Fable 5.1 --- crates/voelin-gpui/src/shell/tree_model.rs | 8 ++------ docs/ui.md | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/voelin-gpui/src/shell/tree_model.rs b/crates/voelin-gpui/src/shell/tree_model.rs index 3384a64..8fff4fc 100644 --- a/crates/voelin-gpui/src/shell/tree_model.rs +++ b/crates/voelin-gpui/src/shell/tree_model.rs @@ -189,12 +189,8 @@ impl TreeModel { let state = app.read(cx); (Snapshot::of(state), state.signals().clone()) }; - let subscriptions = signals.watch( - app, - &[Area::Tree, Area::Toolbar, Area::MemberCard], - cx, - |this: &mut Self, _, cx| this.refresh(cx), - ); + let subscriptions = + signals.watch(app, &AREAS, cx, |this: &mut Self, _, cx| this.refresh(cx)); Self { app: app.clone(), seen: generations(app, cx), diff --git a/docs/ui.md b/docs/ui.md index fe4986f..dfd68cf 100644 --- a/docs/ui.md +++ b/docs/ui.md @@ -1487,8 +1487,8 @@ What is on screen: #### Per-area signals and cached panes The foundation's and the shell's reviews left the design for this slice: a -change of the channel tree must not draw the rail, and a talker must not draw -the tree. Two parts of it came from reading gpui-pre 0.3.10 and were checked by +change of the channel tree must not draw the rail, and a talker draws the tree +and the members panel and nothing else (the gate's parity ruling, below). Two parts of it came from reading gpui-pre 0.3.10 and were checked by the tests: - **`Update.refresh` is raised as signals** (`signals.rs`). The root state