feat(cockpit): teleport the shared Display groups into Cockpit's popover

The Cockpit display portal publishes the Display popover's slots to the
gev-display store while Cockpit is on, and the Display panel teleports its
HUD, Detection, Parameters and 3D groups into them and back, each only
while its own slot is published. The portal no longer moves the groups:
it keeps each surface's scroll position, puts back focus the move
dropped, and lays the surfaces out once Vue has moved them. The popover's
uses-shared-display-controls class renders from the store, and the right
rail no longer re-homes the parameters panel the markup already places.
This commit is contained in:
Sameh Khamis committed 2026-11-01 15:01:41 -08:00
1 parent 9ed9098593
commit fd4b69ff52
12 files changed
+250 -49

No files matched your search

+14
View File
@@ -83,6 +83,18 @@ export const useDisplayStore = defineStore('gev-display', () => {
parameters.value = next && markRaw(next);
}
/**
* The Cockpit's Display popover slots while Cockpit shows the Display
* controls, `{hud, detection, parameters, models3d}` (elements); null while
* they stay in the Display panel. The panel teleports its groups there.
*/
const cockpitPortal = shallowRef(null);
/** @param {?object} next The slots, or null to bring the groups home. */
function publishCockpitPortal(next) {
cockpitPortal.value = next && markRaw(next);
}
/** The phone shell's tab bar; null until the shell first presents it. */
const phoneShell = shallowRef(null);
@@ -104,6 +116,8 @@ export const useDisplayStore = defineStore('gev-display', () => {
publishStyle,
parameters,
publishParameters,
cockpitPortal,
publishCockpitPortal,
phoneShell,
publishPhoneShell,
mapSource,