Complete phase 3 W1 acceptance and close T16 findings

Fix Navara model display tint, overlay ordering, follow gestures and resource cleanup.
Reduce repeated aircraft work and correct fixture enrichment responses.
Strengthen dev/preview QA, preserve failure history and document verified W1 results.

Validation: 7171 ordinary tests pass, one Windows-only skip; 15 allocation probes;
37 W1 acceptance steps; contracts, shell, four performance gates; 18 identical
Cesium baseline PNGs. Known pre-existing CCTV and live-source limits are recorded.
This commit is contained in:
German Khokhlov committed 2026-10-26 23:23:25 +04:00
1 parent 766c786093
commit 0600964249
59 files changed
+2334 -701

No files matched your search

+5 -1
View File
@@ -1048,7 +1048,11 @@ export function createTracking({
} else if (flightState._renderer.fleet.visible()) {
// Fire-and-forget refresh; only while the layer is actually enabled.
// The query reads the renderer's camera (no viewer argument needed).
void flightsLayer.update(null);
void flightsLayer.update(null).catch((error) => {
// This refresh has no lifecycle-manager caller. Disabling flights
// cancels it locally; retain visibility of unexpected failures.
if (error?.name !== 'AbortError') console.error(error);
});
}
}
@@ -0,0 +1,54 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { createTracking } from './tracking.js';
function handoff(update) {
return createTracking({
flightState: {
_renderer: { fleet: { attached: () => true, visible: () => true } },
},
services: Object.fromEntries(
[
'context',
'aircraftPresentation',
'geoid',
'groundFloor',
'focus',
'militaryRegistry',
'readout',
'selection',
].map((name) => [name, {}]),
),
parts: {},
layer: { update },
});
}
test('a military-off refresh owns cancellation when flights are disabled before it settles', async (t) => {
const errors = [];
t.mock.method(console, 'error', (error) => errors.push(error));
let reject,
calls = 0;
const tracking = handoff(() => {
calls++;
return new Promise((_resolve, fail) => {
reject = fail;
});
});
tracking._onMilitaryActiveChange(false);
assert.equal(calls, 1);
reject(new DOMException('Flights update aborted', 'AbortError'));
await new Promise((resolve) => setImmediate(resolve));
assert.deepEqual(errors, []);
});
test('unexpected military-off refresh failures remain visible instead of being swallowed', async (t) => {
const error = new Error('fixture update failure');
const errors = [];
t.mock.method(console, 'error', (value) => errors.push(value));
handoff(async () => {
throw error;
})._onMilitaryActiveChange(false);
await new Promise((resolve) => setImmediate(resolve));
assert.deepEqual(errors, [error]);
});