mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
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:
1 parent
766c786093
commit
0600964249
59 files changed
+2334
-701
No files matched your search
@@ -88,8 +88,12 @@ export function createQaSources(entries, { now = () => Date.now() } = {}) {
|
||||
if (layer === 'flights')
|
||||
sources.flights = createFlightSource({
|
||||
now,
|
||||
fetchImpl: async () =>
|
||||
json(syntheticFlights({ nowMs: now(), count: count ?? 8000 })),
|
||||
fetchImpl: async (url) => {
|
||||
const request = String(url);
|
||||
if (request.includes('/api/adsbdb/')) return json({ found: false });
|
||||
if (request.includes('/api/flights/track')) return json({ path: [] });
|
||||
return json(syntheticFlights({ nowMs: now(), count: count ?? 8000 }));
|
||||
},
|
||||
});
|
||||
if (layer === 'military')
|
||||
sources.military = createMilitarySource({
|
||||
@@ -107,6 +111,8 @@ export function createQaSources(entries, { now = () => Date.now() } = {}) {
|
||||
if (layer === 'vessels')
|
||||
sources.vessels = createVesselSource({
|
||||
fetchImpl: async (url) => {
|
||||
if (String(url).includes('/api/vessels/track'))
|
||||
return json({ samples: [] });
|
||||
const params = new URL(url).searchParams;
|
||||
const area = params.has('lat')
|
||||
? {
|
||||
|
||||
@@ -86,3 +86,51 @@ test('local-adsb:fixture answers as the local receivers do (1090 MHz and UAT)',
|
||||
assert.ok(state.records.some((record) => record.band === '978'));
|
||||
assert.ok(state.records.some((record) => record.band === '1090'));
|
||||
});
|
||||
|
||||
test('flight fixture enrichment returns a not-found reply without regenerating the fleet', async () => {
|
||||
let clockReads = 0;
|
||||
const { flights } = createQaSources(
|
||||
parseQaFeed('?qaFeed=flights:synthetic:10000'),
|
||||
{
|
||||
now: () => {
|
||||
clockReads++;
|
||||
return Date.UTC(2026, 9, 16, 12);
|
||||
},
|
||||
},
|
||||
);
|
||||
for (const kind of ['type', 'route']) {
|
||||
const reply = await flights.getEnrichment({ kind, id: 'a00001' });
|
||||
assert.equal(reply.found, false);
|
||||
assert.deepEqual(Object.keys(reply), ['found']);
|
||||
}
|
||||
assert.equal(clockReads, 0);
|
||||
});
|
||||
|
||||
test('flight fixture track reads do not regenerate a snapshot', async () => {
|
||||
let clockReads = 0;
|
||||
const { flights } = createQaSources(
|
||||
parseQaFeed('?qaFeed=flights:synthetic:10000'),
|
||||
{
|
||||
now: () => {
|
||||
clockReads++;
|
||||
return Date.UTC(2026, 9, 16, 12);
|
||||
},
|
||||
},
|
||||
);
|
||||
assert.deepEqual(await flights.getTrack('a00001'), {
|
||||
records: [],
|
||||
complete: false,
|
||||
});
|
||||
assert.equal(clockReads, 0);
|
||||
});
|
||||
|
||||
test('vessel fixture answers a relative track URL and retains its full snapshot', async () => {
|
||||
const { vessels } = createQaSources(parseQaFeed('?qaFeed=vessels:fixture'), {
|
||||
now: () => Date.UTC(2026, 9, 16, 12),
|
||||
});
|
||||
assert.deepEqual(await vessels.getTrack('990000001'), {
|
||||
records: [],
|
||||
complete: false,
|
||||
});
|
||||
assert.equal((await vessels.getSnapshot({})).records.length, 12000);
|
||||
});
|
||||
Reference in new issue
Block a user