From 288f99d81e095263ea9938b8cdfc75b617d244c0 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 22 Jul 2026 08:25:39 -0400 Subject: [PATCH] local-workspace: add Open button on file hover like Library, opens in side preview panel - Add openSidePeek(id) helper method to find node by id and open in side preview - Update renderChildren() static HTML OPEN button: replace full page nav with selectForPreview - Add OPEN button in Alpine x-for tree template actions div for file items - Uses existing preview-panel (right side panel) instead of navigating away --- app/templates/local_workspace.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 8264afd..10f7e8c 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -1123,11 +1123,11 @@ window._wsInitData = (function() { } html += ''; html += ''; - // Open button for files + // Open button for files — opens in side preview panel (like Library) if (!c.is_folder) { - html += '\u2931 Open'; + html += '\u21e2 Open'; } // Tags if (c.tags && c.tags.length > 0) { @@ -1791,6 +1791,10 @@ window._wsInitData = (function() { }, openPage(id) { window.location = '/pages/'+id; }, + openSidePeek(id) { + var node = this._findNodeById(this.tree, id) || this._findNodeById(this.displayTree, id); + if (node) this.selectForPreview(node); + }, startRename(node) { this.target = node; @@ -2441,6 +2445,9 @@ console.log('FLOWDECK v2.4.6 — IIFE done, _wsInitData keys:', Object.keys(wind +