From faaabefc1c7620400662679b70663536c57c74d7 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Sun, 4 Jan 2026 08:48:28 -0300 Subject: [PATCH] Fix All Applications dropdown order to match main menu - Reorder apps: Chat, Paper, Mail, Drive, Calendar, Tasks first - Then other apps: Research, Meet, Analytics, Monitoring --- ui/suite/index.html | 78 +- ui/suite/js/htmx-app.js | 26 + ui/suite/meet/meet.html | 803 +++++++--- ui/suite/paper/paper.html | 2936 ++++++++++++++++++++-------------- ui/suite/settings/index.html | 2 +- 5 files changed, 2419 insertions(+), 1426 deletions(-) diff --git a/ui/suite/index.html b/ui/suite/index.html index 626bc92..32c6b97 100644 --- a/ui/suite/index.html +++ b/ui/suite/index.html @@ -321,34 +321,6 @@ Chat - - - - Research - - Paper + + + + Mail + + Tasks - + - Mail + Research diff --git a/ui/suite/js/htmx-app.js b/ui/suite/js/htmx-app.js index 1a3942e..084d76f 100644 --- a/ui/suite/js/htmx-app.js +++ b/ui/suite/js/htmx-app.js @@ -43,6 +43,21 @@ // If target doesn't exist or response is 404, prevent the swap if (!target || status === 404) { event.detail.shouldSwap = false; + console.warn("HTMX swap prevented: target not found or 404 response"); + return; + } + + // Check if target is actually in the DOM (prevents insertBefore errors) + if (!document.body.contains(target)) { + event.detail.shouldSwap = false; + console.warn("HTMX swap prevented: target not in DOM"); + return; + } + + // Check if target has a parent (required for most swap operations) + if (!target.parentNode) { + event.detail.shouldSwap = false; + console.warn("HTMX swap prevented: target has no parent"); return; } @@ -55,6 +70,17 @@ } }); + // Handle swap errors gracefully + document.body.addEventListener("htmx:swapError", (event) => { + console.error("HTMX swap error:", event.detail); + // Don't show notification for swap errors - they're usually timing issues + }); + + // Handle HTMX errors more gracefully + document.body.addEventListener("htmx:onLoadError", (event) => { + console.error("HTMX load error:", event.detail); + }); + // Handle successful swaps document.body.addEventListener("htmx:afterSwap", (event) => { // Auto-scroll messages if in chat diff --git a/ui/suite/meet/meet.html b/ui/suite/meet/meet.html index 4f5a51f..863386d 100644 --- a/ui/suite/meet/meet.html +++ b/ui/suite/meet/meet.html @@ -3,19 +3,37 @@
- Meet -

Meet + Meet +

Meet

-
+
@@ -50,10 +71,13 @@

Scheduled Meetings

-
+
@@ -63,17 +87,25 @@

Recent Meetings

-
+
-