From c5e6f67d5307146569e2fd1a37033c9dddb680c4 Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Wed, 14 Oct 2026 15:47:21 +0200 Subject: [PATCH] feat: give full-code app previews the deployed app's window.ctx (#11763) * feat: give full-code app previews the deployed app's window.ctx * chore: pin the UI Builder build that sets window.ctx in the preview * fix: hold the editor preview until the viewer belongs to the app's workspace * fix: let Rebuild retry a failed viewer lookup in the editor preview --- cli/src/commands/app/dev.ts | 17 +++++++-- frontend/scripts/ui_builder_artifact.json | 4 +-- .../components/raw_apps/RawAppEditor.svelte | 36 +++++++++++++++++-- .../src/lib/components/raw_apps/templates.ts | 36 +++++++------------ 4 files changed, 64 insertions(+), 29 deletions(-) diff --git a/cli/src/commands/app/dev.ts b/cli/src/commands/app/dev.ts index fdf26fa7da..fa8b8fceb8 100644 --- a/cli/src/commands/app/dev.ts +++ b/cli/src/commands/app/dev.ts @@ -67,7 +67,7 @@ const DEFAULT_PORT = 4000; const DEFAULT_HOST = "localhost"; // HTML template with live reload and SQL migration modal -const createHTML = (jsPath: string, cssPath: string) => ` +const createHTML = (jsPath: string, cssPath: string, appCtx: unknown) => `
@@ -228,6 +228,7 @@ const createHTML = (jsPath: string, cssPath: string) => ` +