Skip to content

Add hide preview toggle to visual nodes#109

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-hide-previews-feature
Draft

Add hide preview toggle to visual nodes#109
Copilot wants to merge 2 commits intomainfrom
copilot/add-hide-previews-feature

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

Visual nodes lacked a way to hide their canvas preview while keeping the rendering pipeline active — complementary to the existing pause/freeze functionality.

Changes

  • ObjectPreviewLayout.svelte — Added hidePreview prop + Eye/EyeOff toggle button in the node toolbar (hover-revealed, consistent with existing pause button). Toggles hidePreview in persisted node data via updateNodeData. Preview container hidden via class:hidden (layout preserved, rendering continues).

  • CanvasPreviewLayout.svelte — Passes hidePreview through to ObjectPreviewLayout.

  • All visual nodes — Added hidePreview?: boolean to each node's data type and forwarded it to the layout: P5CanvasNode, HydraNode, GLSLCanvasNode, JSCanvasNode, SwissGLNode, ButterchurnNode, TextmodeNode, ThreeNode, CanvasDom, TextmodeDom, ThreeDom, DomNode, VueNode, AiImageNode, AiTextNode. Nodes missing {nodeId} in their layout call (SwissGLNode, ButterchurnNode, AiImageNode, AiTextNode) had it added to enable the toggle button.

State is persisted in node data, so hidden previews survive reloads. The rendering pipeline continues uninterrupted when hidden.

Original prompt

Let's add a feature to hide previews in visual nodes, complementary to freezing frames


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: heypoom <4714175+heypoom@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 25, 2026

Deploying patchies with  Cloudflare Pages  Cloudflare Pages

Latest commit: 647b55d
Status: ✅  Deploy successful!
Preview URL: https://c7d5b0ba.patchies.pages.dev
Branch Preview URL: https://copilot-add-hide-previews-fe.patchies.pages.dev

View logs

Copilot AI changed the title [WIP] Add feature to hide previews in visual nodes Add hide preview toggle to visual nodes Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants