fix(app): the Navara notice no longer calls voice unavailable

Voice runs on Navara since 18b5475b (the viewer-only actions refuse with
UNAVAILABLE_ON_ENGINE); the notice still listed it as unavailable.
This commit is contained in:
German Khokhlov committed 2026-10-16 22:53:35 +04:00
1 parent 18b5475b8a
commit ba039f7974
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -29,8 +29,8 @@ export function navaraModeNotice(availability) {
return Object.freeze({
label: 'Experimental Navara engine',
detail: names.length
? `Data layers: ${names.join(', ')}; the other layers, cockpit, director and voice are unavailable`
: 'No data layers on this engine yet; cockpit, director and voice are unavailable',
? `Data layers: ${names.join(', ')}; the other layers, cockpit and director are unavailable`
: 'No data layers on this engine yet; cockpit and director are unavailable',
});
}
+2 -2
View File
@@ -113,14 +113,14 @@ test('without a viewer the tools run the governor on the engine, show the notice
]);
assert.match(
`${notice.label}: ${notice.detail}`,
/^Experimental Navara engine: no data layers on this engine yet; cockpit, director and voice are unavailable$/i,
/^Experimental Navara engine: no data layers on this engine yet; cockpit and director are unavailable$/i,
);
// With Navara renderers, the notice names the layers it shows.
const registry = createRendererRegistry();
registry.register('navara', { satellites: () => ({}), flights: () => ({}) });
assert.equal(
navaraModeNotice(createLayerAvailability('navara', { registry })).detail,
'Data layers: Live Flights, Satellites; the other layers, cockpit, director and voice are unavailable',
'Data layers: Live Flights, Satellites; the other layers, cockpit and director are unavailable',
);
// The governor drives the engine's continuous rendering.
assert.equal(isRenderGovernorInstalled(engine), true);