From 1ce7783a2e444608bca90f88db72a7772080b3d8 Mon Sep 17 00:00:00 2001 From: igurielidze Date: Mon, 30 Mar 2026 22:49:04 +0400 Subject: [PATCH] Fix Ignition view.json: match working Testing_View structure - Component gets meta.name + position at same level as type/props - Root container uses props.mode="percent" not direction="column" Co-Authored-By: Claude Opus 4.6 (1M context) --- svelte-app/src/lib/export.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/svelte-app/src/lib/export.ts b/svelte-app/src/lib/export.ts index f6e4b68..b1c8bf3 100644 --- a/svelte-app/src/lib/export.ts +++ b/svelte-app/src/lib/export.ts @@ -557,9 +557,13 @@ export async function deployToIgnition() { defaultSize: { height: layout.canvasH, width: layout.canvasW }, }, root: { - children: [component], + children: [{ + meta: { name: viewName }, + position: { width: 1, height: 1 }, + ...component, + }], meta: { name: 'root' }, - props: { direction: 'column' }, + props: { mode: 'percent' }, type: 'ia.container.coord', }, }, null, 2);