feat(ui): render the Display panel's HUD and Sonar controls from the store

This commit is contained in:
Sameh Khamis committed 2026-10-30 23:01:09 -07:00
1 parent c99c0e8000
commit 3aa5a3e5e3
11 files changed
+118 -94

No files matched your search

+10 -1
View File
@@ -200,7 +200,11 @@ test('recording restores the original HUD after repeated entry and revokes retai
try {
let mode = 'auto',
variant = 'tactical';
const owner = new RecordingControls({ syncShareState() {} });
const hudSyncs = [];
const owner = new RecordingControls({
syncShareState() {},
syncHudControls: () => hudSyncs.push(variant),
});
owner.hud = {
getMode: () => mode,
getVariant: () => variant,
@@ -218,6 +222,11 @@ test('recording restores the original HUD after repeated entry and revokes retai
owner.setRecordingMode(true);
assert.equal(mode, 'auto');
assert.equal(variant, 'tactical');
assert.deepEqual(
hudSyncs,
['minimal', 'minimal', 'tactical'],
'each change shows the HUD layout it leaves',
);
assert.equal(document.body.classList.contains('recording-mode'), false);
assert.equal(
f.nodes.get('safe-frame-overlay').classList.contains('active'),