From ed172009e6fcc1019363ad2128e3dccab2990571 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 13 Sep 2026 05:45:20 -0700 Subject: [PATCH] build: declare scene policy ownership in the director export --- scripts/package-boundaries.json | 3 ++- src/scenes/director.js | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/package-boundaries.json b/scripts/package-boundaries.json index ae0c7c6a2..db1021966 100644 --- a/scripts/package-boundaries.json +++ b/scripts/package-boundaries.json @@ -561,7 +561,8 @@ "src/app/stateChannel.js", "src/ui/scenes.js", "src/ui/sceneControls.js", - "src/ui/scenePresentation.js" + "src/ui/scenePresentation.js", + "src/contextModePolicy.js" ], "external": ["cesium"] } diff --git a/src/scenes/director.js b/src/scenes/director.js index c4b3d854b..d56a82e41 100644 --- a/src/scenes/director.js +++ b/src/scenes/director.js @@ -394,10 +394,6 @@ export class SceneDirector { } catch { /* toast is best-effort */ } } - /** - * Wire up all scene-panel DOM event listeners and render the initial UI state. - * Exits silently if the scene-select element is missing (headless/test mode). - */ /** Immutable playback snapshots and completed editing actions. */ subscribe(listener, options) { return this._state.subscribe(listener, options); } @@ -408,6 +404,10 @@ export class SceneDirector { this._publish({ type, sceneId: scene.id, sceneTitle: scene.title, shot, index }); } + /** + * Wire up all scene-panel DOM event listeners and render the initial UI state. + * Exits silently if the scene-select element is missing (headless/test mode). + */ _initUI() { this._controls = new SceneControls({ subscribe: (listener) => this.subscribe(listener),