Remove the Cyber HUD layout and keep its sonar as a visual style

Display > HUD > Sonar now turns the sonar sweep on over Tactical or
Minimal. It is off by default, ON reveals its five sliders, and it keeps
its guards: an OFF control, the sweep only while the HUD is visible and
outside Cockpit, no animation under reduced motion, and repaint timers
re-armed only after a drawn frame that still shows contacts.

The Cyber layout, its shell skin and its Cockpit lanes are removed. Share
links, scenes, saved views and set_hud that name Cyber open Tactical with
Sonar on; links and scene shots record Tactical with Sonar under the same
code, and a restored state that names another layout turns Sonar off.
set_cyber_sonar keeps its name and works under any layout. A newer Sonar
toggle or voice setting wins over a share-link restore that lands later.

From 1200px wide the command dock and World Timeline sit 74px above the
bottom edge, as in the Omnibar layout, leaving the bottom row to the map
attribution (left) and the Power Up corner row (right). The attribution
moves to the bottom right when the page runs right to left, where the
corner row sits at the bottom left, and a long credit line wraps upward
before reaching the corner row. The Tactical bottom-right readout sits
8px above Power Up and the coordinates start level with it. The World
Timeline is narrowed to sit between the corners. Toasts keep clear of
the raised dock and the chat and voice panel height budgets subtract its
rise. Below 1200px the layout is unchanged. The left rail treats the
centered World Timeline and voice control as obstacles only where they
reach a laid-out panel.

On top of the Omnibar: sonar.css replaces cyber.css after the Omnibar
imports, the Omnibar's HUD guide step now says Layout picks Tactical or
Minimal, and the Omnibar's Tactical bottom-right readout keeps the same
8px above Power Up.

Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
Manjunath PaparajuandSameh Khamis authored and Sameh Khamis committed 2026-11-18 15:47:27 -08:00
1 parent 35b87c75f2
commit d68adcea21
112 files changed
+1433 -5239

No files matched your search

+3
View File
@@ -114,6 +114,9 @@ export const SHARE_VIEW_ENUMS = Object.freeze({
'esri-imagery',
'osm',
]),
// Removed layouts keep their index so old links decode: Operator opens in
// Tactical. Cyber means Tactical with the Sonar style on; the app still
// writes it for that state.
hudVariant: Object.freeze(['tactical', 'operator', 'minimal', 'cyber']),
detectionMode: Object.freeze(['OFF', 'SPARSE', 'BALANCED', 'DENSE']),
detectionAllocation: Object.freeze(['ELASTIC', 'WEIGHTED']),
+14 -2
View File
@@ -440,6 +440,15 @@ test('precision: coordinates 1e-4 degrees, angles and lengths whole units', () =
assert.deepEqual([wild.lat, wild.lon, wild.pitch], [90, -170, -90]);
});
test('links made with a retired HUD layout still decode to its name', () => {
// The app restores Operator as Tactical and Cyber as Tactical with Sonar on
// (VisualSettings._setHudVariant); the codec only keeps the name.
for (const hudVariant of ['operator', 'cyber']) {
const state = { ...createDefaultShareViewState(), hudVariant };
assert.equal(decodeOk(encodeShareView(state)).state.hudVariant, hudVariant);
}
});
test('defaults travel as frozen meanings that match today’s app defaults', () => {
const defaults = createDefaultShareViewState();
// When an app default moves, these tests should be updated to document the
@@ -448,7 +457,8 @@ test('defaults travel as frozen meanings that match today’s app defaults', ()
assert.equal(defaults.bloomVersion, BLOOM_SCALE_VERSION);
assert.equal(defaults.hudVariant, HUD_LAYOUTS[0]);
// Codes are append-only: the retired Operator layout keeps code 1 so old
// links still parse, and the app restores them as Tactical.
// links still parse, and the app restores them as Tactical. The retired
// Cyber layout keeps code 3; the app restores it as Tactical with Sonar on.
assert.deepEqual(SHARE_VIEW_ENUMS.hudVariant, [
'tactical',
'operator',
@@ -456,7 +466,9 @@ test('defaults travel as frozen meanings that match today’s app defaults', ()
'cyber',
]);
assert.deepEqual(
SHARE_VIEW_ENUMS.hudVariant.filter((variant) => variant !== 'operator'),
SHARE_VIEW_ENUMS.hudVariant.filter(
(variant) => variant !== 'operator' && variant !== 'cyber',
),
[...HUD_LAYOUTS],
);
// Snow is retired; its code stays reserved (see the retired-style test).