git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commita658be06a47381a1f8d35fef8313e5f12b8fde00
parent471ba89749
authorLucas Galante <[email protected]>
date2026-06-10 22:00
Update browse and network page layout handling

 src/main.rs          | 1 +
 src/pages/browse.rs  | 2 +-
 src/pages/network.rs | 5 ++++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index e828b97..a71bc7f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,6 +5,7 @@ use glyphon::{Attrs, Buffer, FontSystem, Metrics};
 
 use clear_ui::engine::{Application, LogicalPosition, LogicalSize, WindowSettings};
 use clear_ui::widget::{MouseButton, ElementState, MouseScrollDelta, KeyEvent, TextItem, Element};
+use clear_ui::widget::{GraphController, PathController};
 
 use pages::Page;
 use pages::browse::is_project_dir;
diff --git a/src/pages/browse.rs b/src/pages/browse.rs
index f832c31..5525e13 100644
--- a/src/pages/browse.rs
+++ b/src/pages/browse.rs
@@ -3,7 +3,7 @@ use std::os::unix::fs::PermissionsExt;
 use std::path::{Path, PathBuf};
 
 use crate::pages::PageContent;
-use clear_ui::widget::{Element, Breadcrumb};
+use clear_ui::widget::{Element, Breadcrumb, PathController};
 use clear_ui::layout::SectionContext;
 
 // ── Data ────────────────────────────────────────────────────────────
diff --git a/src/pages/network.rs b/src/pages/network.rs
index c5a16b2..aea26ab 100644
--- a/src/pages/network.rs
+++ b/src/pages/network.rs
@@ -1,7 +1,7 @@
 use std::path::{Path, PathBuf};
 use crate::pages::PageContent;
 use crate::pages::browse::{BrowseState, DirEntry};
-use clear_ui::widget::{Graph, GraphNode, Element, Breadcrumb};
+use clear_ui::widget::{Graph, GraphNode, Element, Breadcrumb, GraphController, PathController};
 
 pub struct NetworkState {
     pub graph: Graph,
@@ -48,6 +48,7 @@ impl NetworkState {
                 .unwrap_or_else(|| "/".to_string());
             let name = format!("📁 .. ({})", parent_name);
             nodes.push(GraphNode {
+                id: String::new(),
                 name: name.clone(),
                 position: (3.0, 0.0),
                 parameters: Vec::new(),
@@ -72,6 +73,7 @@ impl NetworkState {
         };
 
         nodes.push(GraphNode {
+            id: String::new(),
             name: current_node_name.clone(),
             position: (3.0, 1.0),
             parameters: current_params,
@@ -88,6 +90,7 @@ impl NetworkState {
             let row = 2.0 + (idx / 7) as f32;
 
             nodes.push(GraphNode {
+                id: String::new(),
                 name: node_name,
                 position: (col, row),
                 parameters: vec![("input".to_string(), current_node_name.clone(), "string".to_string())],