Skip to content

Commit 406e815

Browse files
authored
Merge pull request #817 from multiplex55/codex/create-note-graph-dialog-component
Implement interactive Note Graph dialog UI with canvas, search, filters, and tests
2 parents a2c68da + 72aa8da commit 406e815

3 files changed

Lines changed: 659 additions & 17 deletions

File tree

src/gui/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4546,7 +4546,12 @@ impl eframe::App for LauncherApp {
45464546
notes_dlg.ui(ctx, self);
45474547
self.notes_dialog = notes_dlg;
45484548
let mut graph_dlg = std::mem::take(&mut self.note_graph_dialog);
4549-
graph_dlg.ui(ctx, self);
4549+
let data_cache: *const DashboardDataCache = &self.dashboard_data_cache;
4550+
// SAFETY: `data_cache` points to a stable field on `self` for this call. The dialog
4551+
// only reads through `&DashboardDataCache` while `self` is mutably borrowed for app
4552+
// actions; no mutation of `dashboard_data_cache` occurs here.
4553+
let data_cache = unsafe { &*data_cache };
4554+
graph_dlg.ui(ctx, self, data_cache, crate::plugins::note::note_version());
45504555
self.note_graph_dialog = graph_dlg;
45514556
let mut assets_dlg = std::mem::take(&mut self.unused_assets_dialog);
45524557
assets_dlg.ui(ctx, self);

0 commit comments

Comments
 (0)