Merge origin/main into german/navara

Brings in 190 commits from main. Integration on the engine contract:

- News and Shipwrecks draw, pick and keep their selection through the
  contract and shared map markers, so they follow engine switches.
- Aircraft tracking uses main's segmented trails with contract frame
  numbers.
- Decoded weather tiles move into the Cesium adapter and are injected
  through the renderer registry; Navara hides those sources on globe
  surfaces (docs/KNOWN-ISSUES.md).
- Street-vehicle GPU depth occlusion stays Cesium-only; Navara keeps
  the geometric visibility checks (docs/KNOWN-ISSUES.md).
- Transit includes the heading-neutral atlas icons.
This commit is contained in:
German Khokhlov committed 2026-11-11 13:41:30 +04:00
commit 1856477e0a
346 files changed
+41247 -1649

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ import { compareLedgers, drawLedger } from './ledger.mjs';
// Each group needs four page starts and two picker switches within 300 seconds.
export const COLD_START_GROUPS = {
markers: { layers: ['news', 'shipwrecks'], view: [49, 36, 1000000] },
aircraft: {
layers: ['flights', 'military'],
view: [40.2539, -125.5779, 21130],
+8
View File
@@ -337,6 +337,14 @@ function installFeeds({ group, epoch, groups, ghost, launches, firms }) {
})
: response,
);
if (path === '/api/shipwrecks')
return json({ records: [{ id: 'fixture-wreck', name: 'Fixture wreck', source: 'wikidata', lat: 49.2, lon: 36.2, year: 1912, casualties: 12 }], version: 'fixture', fetchedAt: epoch, sources: { emodnet: true, wikidata: true } });
if (path === '/api/news/hotspots')
return json({ hotspots: [{ id: 'fixture-area', name: 'Fixture area', bbox: [35, 48, 37, 50], focus: { lat: 49, lon: 36 }, counts: { last24h: 1 } }] });
if (path === '/api/news/feed')
return json({ reports: [{ id: 'fixture-report', title: 'Fixture report', url: 'https://example.com/report', publishedAt: new RealDate(epoch - 600_000).toISOString(), publisher: 'Example', category: 'strike', severity: 3, relevance: 'major', hotspotId: 'fixture-area', geo: { lat: 49, lon: 36, place: 'Fixture place', mappable: true } }], nextBefore: null });
if (path === '/api/news/outline')
return json({ polygons: [{ outer: [[35, 48], [37, 48], [37, 50], [35, 50]], holes: [] }], borders: [], disputed: [] });
if (path === '/api/flights')
return json({
time: epoch / 1000,
+13
View File
@@ -10,6 +10,8 @@ import { createTrafficDisplay } from '../../src/layers/traffic/render/display.js
import { createAnimation } from '../../src/layers/traffic/animation.js';
import { createRecentImagerySource } from '../../src/layers/recentImagery/source.js';
import { createThumbnailLoader } from '../../src/layers/recentImagery/thumbnails.js';
import { createShipwrecksSource } from '../../src/layers/shipwrecks/source.js';
import { createNewsSource } from '../../src/layers/news/source.js';
const origin = 'http://127.0.0.1:4309';
test('every group has valid strict fixture routes', async () => {
@@ -161,6 +163,17 @@ test('the page fetch guard delegates NASA snapshot APIs to their image fixture',
await assert.rejects(page.fetch('/api/v1/snapshot'), /No cold-start fixture/);
});
test('marker fixtures pass the real news and shipwreck source decoders', async () => {
const page = await installedPage('markers');
const news = createNewsSource({ fetchImpl: page.fetch });
const wrecks = createShipwrecksSource({ fetchImpl: page.fetch });
assert.ok((await wrecks.getSnapshot()).records.length);
const { hotspots } = await news.getHotspots();
assert.ok(hotspots.length);
assert.ok((await news.getFeed()).reports.length);
assert.ok((await news.getOutline(hotspots[0].id)).polygons.length);
});
test('every TLE group has matching deterministic SATCAT records on both pages', async () => {
const a = await installedPage('space'),
b = await installedPage('space');
+2 -2
View File
@@ -1,7 +1,7 @@
import assert from 'node:assert/strict';
import test from 'node:test';
import { execFileSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
import { existsSync, readFileSync } from 'node:fs';
import { optionSpecs, REGISTRY_BY_ID } from '../../src/data/layerState.js';
import { createFakeEngine } from '../../src/globe/testing/fakeEngine.js';
import { createOsmPlacesLayer } from '../../src/layers/osmPlaces/index.js';
@@ -35,7 +35,7 @@ test('every declaration is covered by a real handoff exercise, without extra fie
.trim()
.split('\n');
const found = {};
for (const file of files.filter((file) => file.endsWith('.js'))) {
for (const file of files.filter((file) => file.endsWith('.js') && existsSync(file))) {
const text = readFileSync(file, 'utf8');
for (const match of text.matchAll(/sessionState\s*:\s*(\[[^\]]*\])/g)) {
assert.ok(!found[file], `Duplicate declaration in ${file}`);