Compare commits

..

2 Commits

Author SHA1 Message Date
Ethanfel d9134b4e9b Merge fix/stored-text-hidden: hide text gate stored_text widget
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 14:14:55 +02:00
Ethanfel 3fb63e44a3 fix: fully hide text gate stored_text widget (widget.hidden)
computeSize alone left the collapsed pill visible in the 1.47 frontend.
Set widget.hidden=true (what getVisibleWidgets filters on), matching the
pool node's hideWidget. Value still serializes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 14:14:55 +02:00
+7 -2
View File
@@ -48,10 +48,15 @@ function syncStored(node) {
if (w) w.value = node._tg?.area?.value ?? ""; if (w) w.value = node._tg?.area?.value ?? "";
} }
// collapse the auto-created stored_text widget out of the layout (pool_id trick) // fully hide the auto-created stored_text widget (same as the pool node's
// pool_id): getVisibleWidgets() filters on `hidden`, so it's dropped from both
// draw and layout — computeSize alone (or type="hidden") does NOT hide it.
// Serialization still iterates all widgets, so stored_text is saved/sent.
function hideStoredWidget(node) { function hideStoredWidget(node) {
const w = widgetByName(node, "stored_text"); const w = widgetByName(node, "stored_text");
if (w) w.computeSize = () => [0, -4]; if (!w) return;
w.hidden = true;
w.computeSize = () => [0, -4];
} }
// reflect the persisted protected/stored_text state into the editor + UI // reflect the persisted protected/stored_text state into the editor + UI