From 5517dc83a85e8e60a22cf1c81825930cb5f4cba6 Mon Sep 17 00:00:00 2001 From: bruno Date: Sat, 11 Jul 2026 21:43:14 -0400 Subject: [PATCH] =?UTF-8?q?feat:=205+=20am=C3=A9liorations=20finales=20?= =?UTF-8?q?=E2=80=94=20empty=20state,=20offline,=20pin,=20th=C3=A8me=20vie?= =?UTF-8?q?wer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit B6 Empty state: message contextuel (racine vs dossier). Offline banner. E6 Thème cohérent: file viewer respecte le thème via request cookies. G4 Offline: bannière rouge 'You are offline', listeners online/offline. E4 Pin: togglePin(id) persisté localStorage, icône 📌 sur items hover. F3 Touch: _haptic() via navigator.vibrate intégré à pin. B6 Empty actions: boutons icônes dans l'état vide. Online state reactif (navigator.onLine + event listeners). --- app/templates/local_workspace.html | 41 ++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 925189e..d7ffe63 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -77,6 +77,14 @@ .modified-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;margin-left:4px;flex-shrink:0;display:none;} .modified-dot.show{display:block;} +/* Offline banner */ +.offline-banner{position:fixed;top:0;left:0;right:0;background:#f85149;color:#fff;text-align:center;padding:6px 12px;font-size:12px;z-index:500;font-weight:500;} + +/* Pinned indicator */ +.pin-icon{font-size:10px;color:var(--text-tertiary);cursor:pointer;margin-left:4px;opacity:0;transition:opacity 150ms;} +.ws-tree-item:hover .pin-icon{opacity:1;} +.pin-icon.pinned{opacity:1;color:var(--accent);} + .modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:999;backdrop-filter:blur(4px);} .modal-box{background:#1F1F1F;border:1px solid var(--border-strong);border-radius:16px;padding:28px;width:420px;max-width:90vw;box-shadow:0 20px 60px rgba(0,0,0,.5);} .modal-box h3{font-size:16px;margin-bottom:6px;display:flex;align-items:center;gap:8px;} @@ -336,14 +344,19 @@
📁
-

Empty folder

-

Create a new file or folder to get started

+

+

+ +
+ ⚠️ You are offline. Changes will sync when connection is restored. +
+