Stories: GEV scenes as stories on the live globe

A Stories button (top right) opens Explore: a feed of GEV scenes over
GEV's own Cesium globe, with a pin per story. Explore opens at country
level over the first story and, while idle, flies on from story to story
for a minute. A picked story is framed in the middle of the view; a pin
plays its story on a second click. The Story page plays the scene through
SceneDirector with a timeline, chapters, key moments, sources and
background, then Close (or Back) puts the person's camera, clock, layers,
style and AUTHORING selection back. Open in GEV hands the scene to the
Scenes panel at its current shot.

Stories lists the scenes GEV ships with a camera path (while they are in
the project), the scenes saved with SAVE TO STORIES in AUTHORING, and the
person's other scenes as drafts. The person's own stories live in the
project on this device, so they have no Share; a link to a story that is
not here opens Explore and says so. Each shipped story's
context comes from what GEV knows: what it shows, the place each shot goes,
and each layer's data sources as DATA_SOURCES.md lists them; the Nepal
story carries the event pack's facts and CC BY-NC sources. Card images are
a captured THUMBNAIL or drawn from the keyless Esri World Imagery.

AUTHORING has no scene picker: it starts with no scene, NEW SCENE (or
CAPTURE SHOT) makes one, and Stories' Open in GEV selects one. Before SAVE
TO STORIES it offers topic tags and THUMBNAIL. A scene's stories flag,
storyThumb and storyTags are saved with the project and kept through
export and import.

Only the closed state loads with the page; the screens, styles, story data
and controller load on first open. Stories keeps its place in the query
(one history entry per screen) and holds the share link's hash writes
while open. Keyboard input and voice tools stay with Stories while it is
open. Explore's pins move on every drawn frame without asking for frames;
the idle tour and tile settling are bounded.

All strings are translated in the 13 locales.
This commit is contained in:
Manjunath committed 2026-11-16 20:12:10 +05:30
1 parent da81cf743b
commit 5418438339
77 files changed
+14975 -260

No files matched your search

+27
View File
@@ -320,6 +320,9 @@
"src/ui/scenes.js",
"src/ui/sceneControls.js",
"src/ui/scenePresentation.js",
"src/scenes/storyThumb.test.mjs",
"src/scenes/storyThumb.js",
"src/scenes/storyTags.js",
"src/ui/sceneControls.test.mjs",
"scripts/qa-scene-controls.mjs",
"scripts/qa-action-buttons.mjs",
@@ -1318,6 +1321,30 @@
"src/ui/stores/owners.test.mjs",
"src/ui/stores/panels.test.mjs",
"src/ui/stores/status.js",
"src/stories/catalog.js",
"src/stories/format.js",
"src/stories/gevLogo.js",
"src/stories/storyMeta.js",
"src/stories/thumbs.js",
"src/stories/thumbs.test.mjs",
"src/stories/controller.js",
"src/stories/gevPlayer.js",
"src/stories/gevPlayer.test.mjs",
"src/stories/boot.js",
"src/stories/keyboard.js",
"src/stories/keyboard.test.mjs",
"src/stories/boot.test.mjs",
"src/stories/controller.test.mjs",
"src/ui/storiesCredit.test.mjs",
"src/ui/styles/stories.css",
"src/ui/styles/stories-entry.css",
"src/ui/views/stories/ExploreScreen.vue",
"src/ui/views/stories/StoriesHeader.vue",
"src/ui/views/stories/StoryContext.vue",
"src/ui/views/stories/StoryRail.vue",
"src/ui/views/stories/StoryScreen.vue",
"src/ui/views/stories/StoryTimeline.vue",
"src/ui/stores/stories.js",
"src/ui/statusChipsView.test.mjs",
"src/ui/statusChipOwners.test.mjs",
"src/ui/toast.js",
+42 -9
View File
@@ -77,6 +77,19 @@
"src/app/application.js",
"src/ui/vueRuntime.js",
"src/ui/views/index.js",
"src/ui/views/StoriesView.vue",
"src/ui/views/stories/StoryContext.vue",
"src/ui/views/stories/StoriesHeader.vue",
"src/ui/views/stories/ExploreScreen.vue",
"src/ui/views/stories/StoryScreen.vue",
"src/ui/views/stories/StoryRail.vue",
"src/ui/views/stories/StoryTimeline.vue",
"src/ui/stores/stories.js",
"src/ui/styles/stories.css",
"src/stories/format.js",
"src/stories/keyboard.js",
"src/stories/storyMeta.js",
"src/stories/gevLogo.js",
"src/ui/views/CockpitView.vue",
"src/ui/views/panels/CockpitProgress.vue",
"src/cockpitProgress.js",
@@ -123,7 +136,6 @@
"src/ui/views/ProviderSettingsView.vue",
"src/ui/views/SceneChromeView.vue",
"src/ui/views/WelcomeView.vue",
"src/ui/views/SceneOptions.vue",
"src/ui/views/SceneShotList.vue",
"src/ui/stores/scenes.js",
"src/ui/scenePresentation.js",
@@ -236,7 +248,8 @@
"src/ui/kit/UiIcon.vue",
"src/ui/stores/worldTime.js",
"src/ui/views/panels/WorldTimeline.vue",
"src/ui/surfaceKeyboard.js"
"src/ui/surfaceKeyboard.js",
"src/scenes/storyTags.js"
],
"external": ["vue", "pinia", "vue-i18n"]
},
@@ -1212,7 +1225,6 @@
"src/ui/sceneControls.js",
"src/ui/scenePresentation.js",
"src/ui/stores/scenes.js",
"src/ui/views/SceneOptions.vue",
"src/ui/views/SceneShotList.vue",
"src/i18n/index.js",
"src/i18n/locale.js",
@@ -1416,7 +1428,6 @@
"src/ui/sceneControls.js",
"src/ui/scenePresentation.js",
"src/ui/stores/scenes.js",
"src/ui/views/SceneOptions.vue",
"src/ui/views/SceneShotList.vue",
"src/ui/scenes.js",
"src/ui/shareFollow.js",
@@ -1655,7 +1666,9 @@
"src/director/sharing/preview.js",
"src/i18n/marker.js",
"src/director/sharing/lifetime.js",
"src/director/authoring.js"
"src/director/authoring.js",
"src/scenes/storyTags.js",
"src/scenes/storyThumb.js"
],
"external": []
},
@@ -1714,7 +1727,6 @@
"src/ui/sceneControls.js",
"src/ui/scenePresentation.js",
"src/ui/stores/scenes.js",
"src/ui/views/SceneOptions.vue",
"src/ui/views/SceneShotList.vue",
"src/contextModePolicy.js",
"src/director/clock.js",
@@ -1786,7 +1798,9 @@
"src/render/cesium/zoomOutGuard.js",
"src/render/cesium/sceneOcclusionProbe.js",
"src/render/occlusion/depthProbe.js",
"src/data/detectionOcclusion.js"
"src/data/detectionOcclusion.js",
"src/scenes/storyTags.js",
"src/scenes/storyThumb.js"
],
"external": ["cesium", "vue", "pinia", "vue-i18n", "kdbush"]
},
@@ -4116,6 +4130,24 @@
"src/render/cesium/applicationViewer.js",
"src/render/cesium/ctrlWheelZoom.js",
"src/render/cesium/starrySky.js",
"src/stories/catalog.js",
"src/stories/format.js",
"src/stories/keyboard.js",
"src/stories/storyMeta.js",
"src/stories/gevLogo.js",
"src/stories/boot.js",
"src/stories/controller.js",
"src/stories/gevPlayer.js",
"src/stories/thumbs.js",
"src/ui/views/StoriesView.vue",
"src/ui/views/stories/StoryContext.vue",
"src/ui/views/stories/StoriesHeader.vue",
"src/ui/views/stories/ExploreScreen.vue",
"src/ui/views/stories/StoryScreen.vue",
"src/ui/views/stories/StoryRail.vue",
"src/ui/views/stories/StoryTimeline.vue",
"src/ui/stores/stories.js",
"src/ui/styles/stories.css",
"src/sky/stars.js",
"src/app/atmosphereCompat.js",
"src/bloom.js",
@@ -4664,7 +4696,6 @@
"src/ui/sceneControls.js",
"src/ui/scenePresentation.js",
"src/ui/stores/scenes.js",
"src/ui/views/SceneOptions.vue",
"src/ui/views/SceneShotList.vue",
"src/ui/scenes.js",
"src/ui/shareFollow.js",
@@ -5366,7 +5397,9 @@
"src/layers/flights/placed.js",
"src/data/placementProvider.js",
"src/data/courseFromFixes.js",
"src/time/frameWait.js"
"src/time/frameWait.js",
"src/scenes/storyTags.js",
"src/scenes/storyThumb.js"
],
"external": [
"hls.js",
+19 -67
View File
@@ -36,7 +36,6 @@ try {
);
const inventory = await page.evaluate(() => {
const selects = [
'scene-select',
'cctv-camera-select',
'hud-layout-select',
'radio-filter',
@@ -45,7 +44,7 @@ try {
return {
ids: selects.map((node) => node.id),
shared:
selects.length === 5 &&
selects.length === 4 &&
selects.every((node) => node.classList.contains('gev-field')),
native: selects.every(
(node) =>
@@ -57,7 +56,7 @@ try {
};
});
check(
'all five panel dropdowns retain native select semantics and shared surface',
'all four panel dropdowns retain native select semantics and shared surface',
inventory.shared && inventory.native,
inventory,
);
@@ -76,12 +75,6 @@ try {
persist: false,
syncShare: false,
});
window.__qaFormChanges = [];
document
.getElementById('scene-select')
.addEventListener('change', (event) =>
window.__qaFormChanges.push(event.target.value),
);
});
const ownerSetup = await page.evaluate(() => {
const owner = window.__godsEyeView.styleManager._cctvControls;
@@ -176,7 +169,7 @@ try {
window.__qaFormCalls = [];
document.getElementById('cctv-camera-select').disabled = true;
});
await page.focus('#scene-select');
await page.focus('#hud-layout-select');
await page.focus('#cctv-camera-select');
check(
'disabled native selects cannot receive keyboard focus',
@@ -288,7 +281,7 @@ try {
for (const width of [1440, 620, 390]) {
await page.setViewport({ width, height: 900 });
const layout = await page.evaluate(() => {
const ids = ['scene-select', 'cctv-camera-select', 'hud-layout-select'];
const ids = ['cctv-camera-select', 'hud-layout-select'];
return ids.map((id) => {
const node = document.getElementById(id),
rect = node.getBoundingClientRect(),
@@ -317,7 +310,7 @@ try {
document.documentElement.dataset.uiTheme = 'cyber';
});
const cyber = await page.$eval(
'#scene-select',
'#cctv-camera-select',
(node) => getComputedStyle(node).backgroundColor,
);
check(
@@ -340,62 +333,23 @@ try {
window.__qaFormCalls.length === 2,
),
);
// Scene selection can restore application settings. Exercise it after the
// fixture-owned CCTV phase so those asynchronous effects cannot replace ports.
page.once('dialog', (dialog) => dialog.accept('Baseline selection fixture'));
await page.click('#scene-new-btn');
await page.waitForFunction(() =>
[...document.querySelectorAll('#scene-select option')].some(
(option) => option.textContent === 'Baseline selection fixture',
),
);
// Authoring has no scene picker: NEW SCENE selects the scene it creates and
// the panel names it. Exercise it after the fixture-owned CCTV phase.
page.once('dialog', (dialog) => dialog.accept('QA selection fixture'));
await page.click('#scene-new-btn');
await page.waitForFunction(
() => document.querySelectorAll('#scene-select option').length > 1,
() =>
document.getElementById('scene-name')?.textContent ===
'QA selection fixture',
);
const targetSceneId = await page.$eval(
'#scene-select',
(node) =>
[...node.options].find(
(option) => option.textContent === 'QA selection fixture',
).value,
);
const baselineSceneId = await page.$eval(
'#scene-select',
(node) =>
[...node.options].find(
(option) => option.textContent === 'Baseline selection fixture',
).value,
);
await page.select('#scene-select', baselineSceneId);
await page.waitForFunction(
(id) => window.__godsEyeView.sceneDirector._getSelectedScene().id !== id,
{},
targetSceneId,
);
await page.evaluate(() => {
window.__qaFormChanges = [];
});
await page.focus('#scene-select');
// Typeahead is native even when headless Chrome does not drive OS popups.
await page.keyboard.press('q');
const sceneSelection = await page.evaluate(() => ({
id: document.getElementById('scene-select').value,
selected: window.__godsEyeView.sceneDirector._getSelectedScene().id,
changes: window.__qaFormChanges,
focus: document.activeElement.id,
outline: getComputedStyle(document.activeElement).outlineStyle,
}));
check(
'native typeahead reaches the Scene owner and keeps focus',
sceneSelection.id === targetSceneId &&
sceneSelection.selected === targetSceneId &&
sceneSelection.changes.at(-1) === targetSceneId &&
sceneSelection.focus === 'scene-select',
sceneSelection,
'NEW SCENE selects and names the new scene',
await page.evaluate(
() =>
window.__godsEyeView.sceneDirector._getSelectedScene().title ===
'QA selection fixture' && !document.getElementById('scene-select'),
),
);
check('keyboard focus remains visible', sceneSelection.outline === 'solid');
const localized = new URL(page.url());
localized.searchParams.set('lang', 'ru');
await page.goto(localized.href, { waitUntil: 'domcontentloaded' });
@@ -420,11 +374,9 @@ try {
});
});
const translated = await page.evaluate(() => {
const nodes = [
'scene-select',
'cctv-camera-select',
'hud-layout-select',
].map((id) => document.getElementById(id));
const nodes = ['cctv-camera-select', 'hud-layout-select'].map((id) =>
document.getElementById(id),
);
return (
document.documentElement.lang === 'ru' &&
nodes.every(
+4 -5
View File
@@ -48,9 +48,7 @@ try {
await page.click('[data-collapse-target="scene-panel"]');
await page.click('#scene-new-btn');
await page.waitForFunction(
() =>
document.querySelector('#scene-select option:checked')?.textContent ===
'QA Scene',
() => document.querySelector('#scene-name')?.textContent === 'QA Scene',
);
check(
'New creates and selects a persisted empty scene',
@@ -368,7 +366,7 @@ try {
await page.screenshot({ path: path.join(shots, 'narrow.png') });
check(
'Scene controls stay inside the narrow viewport',
await page.$eval('#scene-select', (element) => {
await page.$eval('#scene-name', (element) => {
const rect = element.getBoundingClientRect();
return rect.width > 0 && rect.left >= 0 && rect.right <= innerWidth;
}),
@@ -398,7 +396,8 @@ try {
await page.evaluate(
() =>
window.__godsEyeView.sceneDirector._project.scenes.length > 0 &&
document.querySelectorAll('#scene-select option').length > 0,
document.querySelector('#scene-name')?.textContent ===
window.__godsEyeView.sceneDirector._getSelectedScene()?.title,
),
);
check(