From 63773cb9048e2b9e3094feb78068da709e195952 Mon Sep 17 00:00:00 2001 From: bruno Date: Mon, 20 Jul 2026 11:21:14 -0400 Subject: [PATCH] =?UTF-8?q?fix:=204=20correctifs=20UX=20=E2=80=94=20worksp?= =?UTF-8?q?ace=20+,=20library=20empty,=20settings=20spacing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Workspaces: bouton bleu '+' maintenant centré, 48px, min-height 140px (plus coupé) - Library no-workspace: 'Open a Workspace...' avec lien Go to Workspaces au lieu de Loading - Library: boutons '+ Add new' et 'New page' cachés quand pas de workspace - Settings: espacement bouton Upload photo (margin-bottom, margin-top augmentés) - 143 tests passent --- app/templates/library.html | 23 +++++++++++++++++++---- app/templates/settings.html | 4 ++-- app/templates/workspaces.html | 4 ++-- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/app/templates/library.html b/app/templates/library.html index c174b41..3837f36 100644 --- a/app/templates/library.html +++ b/app/templates/library.html @@ -186,7 +186,7 @@

Library

- @@ -302,8 +302,14 @@
-
-

Loading…

+
+

Loading…

+
+
📁
+

No workspace open

+

Open a workspace to browse and manage your library items.

+ Go to Workspaces +
@@ -325,7 +331,7 @@
-
Add new @@ -501,6 +507,9 @@ function libraryPage() { moveModalOpen: false, moveIds: [], moveSearchQuery: '', + + // No workspace guard + noWorkspace: false, moveCandidates: [], _moveAllCandidates: [], @@ -804,6 +813,12 @@ function libraryPage() { this.isGiteaActive = (giteaEl ? giteaEl.textContent : '0') === '1'; this.giteaOwner = (document.getElementById('lib-gitea-owner') || {}).textContent || ''; this.giteaRepo = (document.getElementById('lib-gitea-repo') || {}).textContent || ''; + // Detect no workspace: no local wsId AND no Gitea active + if (!this.workspaceId && !this.isGiteaActive) { + this.noWorkspace = true; + this.loading = false; // don't show loading spinner + return; + } console.log('[Library] workspaceId=' + this.workspaceId + ' isGitea=' + this.isGiteaActive); var params = new URLSearchParams(window.location.search); var t = params.get('tab'); diff --git a/app/templates/settings.html b/app/templates/settings.html index d67b23a..f1485db 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -113,11 +113,11 @@ {{ user.get('full_name', user.get('login',''))[:1].upper() }}
-
diff --git a/app/templates/workspaces.html b/app/templates/workspaces.html index f793541..a13c4aa 100644 --- a/app/templates/workspaces.html +++ b/app/templates/workspaces.html @@ -68,8 +68,8 @@
-
- + +
+ +