From 08469ecbf6ae8c70905af4f424f0b6df337f3756 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Mon, 12 Jan 2026 00:25:31 -0300 Subject: [PATCH] fix(social): remove auto-loading API calls that cause 404 errors - Remove hx-trigger='load' from social sidebar sections - Replace loading placeholders with static empty state messages - Add empty-state CSS styling - Prevents page from breaking when backend APIs are not available --- ui/suite/social/social.css | 27 ++++++++++++--- ui/suite/social/social.html | 67 ++++++++++--------------------------- 2 files changed, 41 insertions(+), 53 deletions(-) diff --git a/ui/suite/social/social.css b/ui/suite/social/social.css index b8d9d48..bf99071 100644 --- a/ui/suite/social/social.css +++ b/ui/suite/social/social.css @@ -290,20 +290,39 @@ } @keyframes spin { - to { transform: rotate(360deg); } + to { + transform: rotate(360deg); + } } .loading-placeholder { height: 60px; - background: linear-gradient(90deg, var(--bg) 25%, var(--surface-hover) 50%, var(--bg) 75%); + background: linear-gradient( + 90deg, + var(--bg) 25%, + var(--surface-hover) 50%, + var(--bg) 75% + ); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; } @keyframes shimmer { - 0% { background-position: 200% 0; } - 100% { background-position: -200% 0; } + 0% { + background-position: 200% 0; + } + 100% { + background-position: -200% 0; + } +} + +.empty-state { + color: var(--text-secondary); + font-size: 0.875rem; + text-align: center; + padding: 1rem; + margin: 0; } .modal { diff --git a/ui/suite/social/social.html b/ui/suite/social/social.html index 3f14e11..f666a7c 100644 --- a/ui/suite/social/social.html +++ b/ui/suite/social/social.html @@ -86,36 +86,21 @@
@@ -183,40 +168,24 @@
-
-
-
- Loading... +
+
+

No posts yet. Be the first to share something!