From 0215bcb8f3dc7dd603e03e421dd137ebee824d5c Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sun, 21 Jun 2026 20:03:37 +0200 Subject: [PATCH] feat: pool grid exposes refresh hook for profile sync Co-Authored-By: Claude Opus 4.8 --- web/grid_image_pool.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/grid_image_pool.js b/web/grid_image_pool.js index 25e55cc..030dbcd 100644 --- a/web/grid_image_pool.js +++ b/web/grid_image_pool.js @@ -593,6 +593,10 @@ function setupGridNode(node) { if (node._countEl) node._countEl.textContent = `${n} image${n === 1 ? "" : "s"}`; }; + // public hook for the Pool Profile companion: after it sets our pool_id widget + // to the selected profile id, it calls this to repaint the grid from that dir. + node._datasetePoolRefresh = () => node._gridRefresh(); + // initial width (a sensible wide default) + content-driven height; the node // stays freely resizable (no width floor) and the grid flex-wraps to fit. node._lastCount = 0;