From 1e0afb0e6965682955f5e3968c7a48366827ca6e Mon Sep 17 00:00:00 2001 From: bruno Date: Fri, 10 Jul 2026 21:48:21 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20rewrite=20workspace=20page=20=E2=80=94?= =?UTF-8?q?=20simplified=20Alpine,=20no=20syntax=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Complete rewrite of local_workspace.html with: - flatten() as standalone function (not in Alpine component) - wsInit() uses x-init for async loading - No optional chaining or template literals (broader compat) - :key uses array index to avoid undefined keys - Simple var declarations throughout - All modals unified with x-show toggles --- app/templates/local_workspace.html | 235 ++++++++++++++--------------- 1 file changed, 114 insertions(+), 121 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index a1ed355..c115469 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -20,17 +20,12 @@ .ws-toolbar{display:flex;gap:8px;} .ws-tree{list-style:none;margin:0;padding:0;} -.ws-tree-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;cursor:grab;transition:background 150ms;border:1px solid transparent;margin-bottom:2px;} +.ws-tree-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:6px;cursor:pointer;transition:background 150ms;border:1px solid transparent;margin-bottom:2px;} .ws-tree-item:hover{background:var(--bg-tertiary);border-color:var(--border);} -.ws-tree-item.dragging{opacity:.3;} -.ws-tree-item.drop-target{background:rgba(35,131,226,.1);outline:2px dashed var(--accent);} .ws-tree-item .icon{font-size:16px;width:20px;text-align:center;flex-shrink:0;} .ws-tree-item .name{flex:1;font-size:14px;color:var(--text);} .ws-tree-item .actions{display:none;gap:2px;} .ws-tree-item:hover .actions{display:flex;} -.ws-tree-item .chevron{width:14px;font-size:11px;color:var(--text-tertiary);cursor:pointer;flex-shrink:0;} -.ws-tree-item .chevron:hover{color:var(--text);} -.ws-tree-children{margin:0;padding:0;} .ws-act{background:none;border:none;color:var(--text-tertiary);cursor:pointer;padding:3px 6px;border-radius:4px;font-size:11px;} .ws-act:hover{background:var(--bg-hover);color:var(--text);} @@ -60,93 +55,86 @@ .delete-confirm{padding:12px;background:rgba(255,80,80,.08);border-radius:8px;margin-top:12px;font-size:13px;color:var(--text-secondary);} -
+

📁 {{ workspace_name }}

- - + +
- -
    -