From 3e4616dce1de3450f74b72833fc364e3b1b1a702 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Thu, 4 Dec 2025 09:21:19 -0300 Subject: [PATCH] Use HTMX for app-guides, fix warnings - Rewrote local-files.html to use HTMX instead of vanilla JS - Rewrote native-settings.html to use HTMX with CSS-only toggles - Added allow(dead_code) for tray.rs (prepared for future use) - Minimal JS approach: all interactions via hx-* attributes --- src/desktop/tray.rs | 2 + ui/app-guides/local-files.html | 270 ++++++----------- ui/app-guides/native-settings.html | 458 ++++++++++++++++------------- 3 files changed, 346 insertions(+), 384 deletions(-) diff --git a/src/desktop/tray.rs b/src/desktop/tray.rs index 33245b8..5357a0a 100644 --- a/src/desktop/tray.rs +++ b/src/desktop/tray.rs @@ -2,6 +2,8 @@ //! //! Provides system tray icon and menu for desktop platforms. +#![allow(dead_code)] // Prepared for future use + use anyhow::Result; use std::sync::Arc; use tokio::sync::RwLock; diff --git a/ui/app-guides/local-files.html b/ui/app-guides/local-files.html index 80bc8d6..4b30c1d 100644 --- a/ui/app-guides/local-files.html +++ b/ui/app-guides/local-files.html @@ -1,9 +1,80 @@ - - - - - - Local Files - General Bots +
+
+

📁 Local Files

+

+ Access and manage files on your device using native file system + access. +

+
+ +
+
+ + + + +
+ +
Loading...
+ +
+
+ 📂 +

Click "Home" or enter a path to browse files

+
+
+ +
+ + +
+
+ + + - - -
-
-

📁 Local Files

-

Access and manage files on your device using native file system access.

-
- -
-
- - - - -
- -
-
- 📂 -

Click "Home" or enter a path to browse files

-
-
- -
- - -
-
-
- - - - +
diff --git a/ui/app-guides/native-settings.html b/ui/app-guides/native-settings.html index 171438f..f78b297 100644 --- a/ui/app-guides/native-settings.html +++ b/ui/app-guides/native-settings.html @@ -1,11 +1,212 @@ - - - - - - App Settings - General Bots +
+
+

⚙️ App Settings +

Configure native desktop application preferences

+
+ +
+
+

General

+ +
+
+ +
+ Automatically start General Bots when you log in +
+
+
+ + +
+
+ +
+
+ +
+ Keep running in system tray when window is closed +
+
+
+ + +
+
+ +
+
+ +
+ Where to save downloaded files +
+
+
+ + +
+
+
+ +
+

Server Connection

+ +
+
+ +
BotServer API endpoint
+
+
+ + + +
+
+ +
+
+ +
+ Automatically reconnect when connection is lost +
+
+
+ + +
+
+
+ +
+

Notifications

+ +
+
+ +
+ Show native desktop notifications +
+
+
+ + +
+
+ +
+
+ +
+ Play sound when receiving messages +
+
+
+ + +
+
+
+ +
+ + + +
+
+ +
+ General Bots App
+ Loading version info... +
+ - - -
-
-

App Settings

-

Configure native desktop application preferences

-
- -
-

General

- -
-
-
Start on login
-
Automatically start General Bots when you log in
-
-
-
-
-
- -
-
-
Minimize to tray
-
Keep running in system tray when window is closed
-
-
-
-
-
- -
-
-
Default download location
-
Where to save downloaded files
-
-
- -
-
-
- -
-

Server Connection

- -
-
-
Server URL
-
BotServer API endpoint
-
-
- -
-
- -
-
-
Auto-reconnect
-
Automatically reconnect when connection is lost
-
-
-
-
-
-
- -
-

Notifications

- -
-
-
Desktop notifications
-
Show native desktop notifications
-
-
-
-
-
- -
-
-
Sound alerts
-
Play sound when receiving messages
-
-
-
-
-
-
- -
- - -
- -
- General Bots App
- Version: 6.1.0
- Platform: - -
-
- - - - +