A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
fix: retain completed scene status in current snapshots
Sameh Khamis3164405108df
diff --git a/docs/CODE-BOUNDARIES.md b/docs/CODE-BOUNDARIES.mdindex 77bad8983..abb07a114 100644--- a/docs/CODE-BOUNDARIES.md+++ b/docs/CODE-BOUNDARIES.md@@ -339,7 +339,6 @@ owners with synchronous cleanup. Existing scene, share and HUD engines retaintheir entry points. `ui/styles` loads the ordered stylesheet entry; componentfiles retain the original cascade, including responsive and dock refinements.-## UI state and Scene actions`StyleManager.subscribeShareState(listener)` supplies the current shareablediff --git a/src/cameraHandoff.test.mjs b/src/cameraHandoff.test.mjsindex b1beee7d1..6fc4b2a32 100644--- a/src/cameraHandoff.test.mjs+++ b/src/cameraHandoff.test.mjs@@ -258,7 +258,7 @@ test('deferred search releases only after its final authority check', () => {assert.match(ui, /begin: \(\) => this\._beginDeferredNavigation\('location'\)/);assert.match(ui, /beforeFly: \(generation\) => this\._reassertNavigationHandoff\(generation\)/);assert.match(ui, /isCurrent: \(generation\) =>\s*!this\._disposed && generation === this\._navigationGeneration/);- assert.match(ui, /change\.type === 'settled'\) this\._settleLocationSearchUi\(change\.generation\)/);+ assert.match(ui, /change\.type === 'settled'\)\s*this\._settleLocationSearchUi\(change\.generation\)/);assert.doesNotMatch(search.slice(0, search.indexOf('await this.search')), /_releaseFollowCamera/);});diff --git a/src/scenes/director.js b/src/scenes/director.jsindex 5a0f15c95..c4b3d854b 100644--- a/src/scenes/director.js+++ b/src/scenes/director.js@@ -404,6 +404,7 @@ export class SceneDirector {_publish(change) { this._state?.publish(change); }_shotOutcome(type, scene, shot, index = scene.shots.indexOf(shot)) {+ if (type === 'shot-loaded') this._presentation.status = `Loaded: ${scene.title} / ${shot.title}`;this._publish({ type, sceneId: scene.id, sceneTitle: scene.title, shot, index });}@@ -979,6 +980,7 @@ export class SceneDirector {link.click();link.remove();URL.revokeObjectURL(url);+ this._presentation.status = 'Project exported';this._publish({ type: 'project-exported', project: this._project });}diff --git a/src/ui/sceneControls.js b/src/ui/sceneControls.jsindex 751f8e0d4..8141d6e09 100644--- a/src/ui/sceneControls.js+++ b/src/ui/sceneControls.js@@ -100,9 +100,8 @@ export class SceneControls {this.setPlaybackActive(state.playbackActive);if (initial || type === 'playback-keyboard')this.setPlaybackKeyboardEnabled(state.keyboardEnabled);- if (type === 'project-exported') this.updateStatus('Project exported');- if (type === 'shot-loaded')- this.updateStatus(`Loaded: ${change.sceneTitle} / ${change.shot.title}`);+ if (type === 'project-exported') this.updateStatus(state.status);+ if (type === 'shot-loaded') this.updateStatus(state.status);if (type === 'run-event' && change.event === 'shot_start')this.setButtons(state.running);}diff --git a/src/ui/sceneControls.test.mjs b/src/ui/sceneControls.test.mjsindex fd208b940..c4ed99f93 100644--- a/src/ui/sceneControls.test.mjs+++ b/src/ui/sceneControls.test.mjs@@ -374,6 +374,7 @@ test('Scene controls consume current state, preserve rows on progress, and unsubf.state.progress = 0.5;channel.publish({ type: 'progress-changed' });assert.equal(f.elements.shots.children[0], row);+ f.state.status = 'Project exported';channel.publish({ type: 'project-exported' });assert.equal(f.elements.status.textContent, 'Project exported');owner.destroy();