The renderer seam: clicks go to the newest tool, recession and display groups through the contract, drawing at parity with Cesium

- Clicks: when two tools want the globe's clicks, the newest takes them and the older is told and turns itself off; a click is decided when it arrives, and ambient selection fires only when no tool holds the pointer. The "map is busy" paths and their strings are removed.
- Recession: the limb fade is shared (src/render/recession.js) and reaches icon and model sets through SetSpec.recede; tuning applies on the next frame.
- Display panel groups are published through src/ui/displayGroups.js; the Weather group and src/viewWeather.js are removed.
- Draw port: a set whose icons only move is moved in place, and models that did not change are not restyled each frame, so moving fleets cost what they did when drawn directly; an untinted, fully opaque model is drawn without a colour.
- Conformance: input.lease.lost checks the new lease inside onLost and reports a throwing onLost; draw.sets.recede covers model sets.
- QA scripts read the renderer host instead of internals the seam replaced.
This commit is contained in:
Sameh Khamis committed 2026-11-15 17:03:09 -08:00
1 parent a0d299523d
commit 0ab31d4fb8
130 files changed
+5438 -1674

No files matched your search

+41
View File
@@ -802,3 +802,44 @@ test('the real portal lays out once the groups have moved and puts back the focu
await nextTick();
assert.deepEqual(layouts, [true]);
});
test('a group an application adds to Effects shows its toggles, notes and sliders, and goes', async (t) => {
const { store, $ } = fixture(t);
const changes = [];
store.publishGroup('conditions', {
rows: [
{
kind: 'toggle',
id: 'live',
icon: 'partly_cloudy_day',
label: 'Live',
title: 'Live conditions',
checked: true,
onChange: (on) => changes.push(['live', on]),
},
{ kind: 'note', id: 'status', text: 'Nothing here' },
{
kind: 'slider',
id: 'level',
label: 'Level',
min: 0,
max: 100,
value: 40,
onChange: (value) => changes.push(['level', value]),
},
],
});
await nextTick();
const toggle = $('conditions-live-toggle');
assert.ok(toggle, 'its toggle is drawn');
assert.equal(toggle.checked, true);
assert.equal(toggle.closest('label').title, 'Live conditions');
assert.equal($('conditions-status').textContent.trim(), 'Nothing here');
assert.equal($('conditions-level-value').textContent.trim(), '40%');
toggle.checked = false;
toggle.dispatchEvent(new Event('change'));
assert.deepEqual(changes, [['live', false]]);
store.publishGroup('conditions', null);
await nextTick();
assert.equal($('conditions-group'), null, 'gone once removed');
});