From 29f4456154553fa0d58dcdb5f7ec8667fae2421d Mon Sep 17 00:00:00 2001 From: astar76 Date: Thu, 19 Nov 2026 00:35:39 -0600 Subject: [PATCH] S029: SFTP connections in the UI Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 3 +- Cargo.lock | 2 + Plans/10 Network/S029-sftp-ui.md | 10 +- Plans/INDEX.md | 2 +- crates/tunal-net/examples/sftp-ls.rs | 9 +- crates/tunal-net/src/auth.rs | 54 +- crates/tunal-net/src/lib.rs | 2 + crates/tunal-net/src/session.rs | 145 +++-- crates/tunal-net/src/sftp.rs | 45 +- crates/tunal/Cargo.toml | 2 + crates/tunal/src/actions.rs | 5 + crates/tunal/src/config.rs | 12 + crates/tunal/src/main.rs | 8 +- crates/tunal/src/net_bridge.rs | 645 ++++++++++++++++++++ crates/tunal/src/settings.rs | 9 + crates/tunal/src/shell/mod.rs | 52 ++ crates/tunal/ui/app.slint | 74 ++- crates/tunal/ui/components/icon.slint | 6 + crates/tunal/ui/components/text-field.slint | 3 + crates/tunal/ui/dialogs/connection.slint | 145 +++++ crates/tunal/ui/dialogs/host-key.slint | 54 ++ crates/tunal/ui/dialogs/secret-prompt.slint | 41 ++ crates/tunal/ui/dialogs/settings.slint | 77 ++- crates/tunal/ui/gallery.slint | 46 +- crates/tunal/ui/shell/sidebar.slint | 22 + crates/tunal/ui/views/details-view.slint | 26 + docs/PROGRESS.md | 8 + 27 files changed, 1442 insertions(+), 65 deletions(-) create mode 100644 crates/tunal/src/net_bridge.rs create mode 100644 crates/tunal/ui/dialogs/connection.slint create mode 100644 crates/tunal/ui/dialogs/host-key.slint create mode 100644 crates/tunal/ui/dialogs/secret-prompt.slint diff --git a/CLAUDE.md b/CLAUDE.md index d850d73..90efcf7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -89,11 +89,12 @@ Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~ | `XDG_DATA_HOME=/data cargo run -p tunal-core --example ops -- ` (refuses unless XDG_DATA_HOME is inside ``) | job engine + trash smoke run: conflicts, cancel, trash/restore/empty | S007 | | `cargo run -p tunal -- --gallery --screenshot [--dark] --size 1200x1000` (`--gallery` alone opens it in a window) | every control in rest/hover/pressed/focused/disabled; press squeeze not drawn by the software renderer | S004 | | `cargo run -p tunal -- --gallery --page menu\|dialog --screenshot [--dark] --size 960x640` | open menu + submenu + two toasts, or dialog + indeterminate toast, over a stand-in folder | S005 | -| `TUNAL_SETTINGS=<0-4> cargo run -p tunal -- --screenshot --size 1000x700` (`XDG_CONFIG_HOME=`) | settings dialog page over a folder | S013 | +| `TUNAL_SETTINGS=<0-5> cargo run -p tunal -- --screenshot --size 1000x700` (`XDG_CONFIG_HOME=`) | settings dialog page over a folder | S013 | | `TUNAL_DRAG=x1,y1,x2,y2[,hold] TUNAL_REDUCED_MOTION=1 cargo run -p tunal -- --screenshot --size 1200x760` (`XDG_CONFIG_HOME=`) | drags between window points and drops (drop menu) or holds (glow + drag image) before the frame | S014 | | `TUNAL_APPEARANCE=1 XDG_CONFIG_HOME= cargo run -p tunal -- --screenshot --size 1000x760` | folder appearance dialog for `` (theme icons looked up at once); `cargo run -p tunal-dirmeta --example roundtrip -- ` sets `Icon` in `/.directory` and prints the old values | S015 | | `TUNAL_PLAY=