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
Merge branch 'main' into fix/director-scene-results-971
Sameh Khamis75b1c660063f
diff --cc src/scenes/director.jsindex 4c4d80c21,1a6fed403..000c02681--- a/src/scenes/director.js+++ b/src/scenes/director.js@@@ -316,9 -320,11 +322,11 @@@ export class SceneDirector_saveProject() {if (this._storageReadError) {this._toastStorageError(- 'Scene not saved — existing saved project could not be read. Export edits or import a valid file.',+ t(+ 'Scene not saved — existing saved project could not be read. Export edits or import a valid file.',+ ),);- return;+ return false;}this._project.updatedAt = new Date().toISOString();try {@@@ -335,11 -345,12 +348,13 @@@e,);this._toastStorageError(- e instanceof SceneDocumentError- ? `Scene not saved — ${e.message}`+ invalid+ ? t('Scene not saved — {reason}', {+ reason: sceneSaveFailureReason(e),+ }): undefined,);+ return false;}}@@@ -898,11 -928,21 +932,21 @@@this._renderSceneSelect();this._renderShotList();}- if (announce) {+ if (announce && saved) {this._updateStatus(marker- ? `Updated ${patchedShotCount} ${patchedShotCount === 1 ? 'shot' : 'shots'}: ${recipe.title}`- : `Appended ${appendedShots.length} shots: ${recipe.title}`,+ ? tn(+ patchedShotCount,+ 'Updated {count} shot: {scene}',+ 'Updated {count} shots: {scene}',+ { scene: t(recipe.title) },+ )+ : tn(+ appendedShots.length,+ 'Appended {count} shot: {scene}',+ 'Appended {count} shots: {scene}',+ { scene: t(recipe.title) },+ ),);}return {@@@ -943,9 -984,14 +988,16 @@@scene.shots.push(shot);this._selectedShotId = shot.id;- this._saveProject();+ const saved = this._saveProject();this._shotOutcome('shot-captured', scene, shot);- if (saved) this._updateStatus(`Captured: ${scene.title} / ${shot.title}`);- this._updateStatus(- t('Captured: {scene} / {shot}', {- scene: displaySceneTitle(scene),- shot: displayShotTitle(shot.title, shot, scene),- }),- );++ if (saved) {++ this._updateStatus(++ t('Captured: {scene} / {shot}', {++ scene: displaySceneTitle(scene),++ shot: displayShotTitle(shot.title, shot, scene),++ }),++ );++ }}/**@@@ -971,9 -1017,14 +1023,16 @@@shot.visual = this.styleManager.getVisualState();shot.layers = this._captureLayerStates();- this._saveProject();+ const saved = this._saveProject();this._shotOutcome('shot-updated', scene, shot);- if (saved) this._updateStatus(`Updated: ${scene.title} / ${shot.title}`);- this._updateStatus(- t('Updated: {scene} / {shot}', {- scene: displaySceneTitle(scene),- shot: displayShotTitle(shot.title, shot, scene),- }),- );++ if (saved) {++ this._updateStatus(++ t('Updated: {scene} / {shot}', {++ scene: displaySceneTitle(scene),++ shot: displayShotTitle(shot.title, shot, scene),++ }),++ );++ }}/**@@@ -2021,9 -2090,9 +2101,9 @@@this._selectedShotId =selection?.shotId || project.scenes[0]?.shots[0]?.id || null;this._loadedSceneId = null;- this._saveProject();+ const saved = this._saveProject();this._publish({ type: 'project-imported', project });- if (saved) this._updateStatus(`Imported ${file.name}`);- this._updateStatus(t('Imported {file}', { file: file.name }));++ if (saved) this._updateStatus(t('Imported {file}', { file: file.name }));return true;} catch (error) {if (